Git Product home page Git Product logo

haskell-ide-engine's People

Contributors

dogwith1eye avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

haskell-ide-engine's Issues

Problem with usage of HIE in Docker

I try to use HIE remotely, like is describing in (your?) post in Medium - I have own Dockerfile based on other image. So, I compiled HIE in the Docker, and now I have in my ~/.local/bin (in Docker):

hie
hie-8.6
hie-8.6.5
hie-wrapper
hlint
stack

Then I added Docker root as a workspace with "DockerWS: Add Docker Folder To Workspace..." VSCode command. After it I open Main.hs file, the extension "Haskell Language Server" (last version) is running, but I see only syntax highlighting and no any types hints and so on - Haskell language support does not work.

I use LTS-13.20, ghc-8.6.5, VSCode 1.41.1, OS - Linux OS OpenSuse Tumbleweed. I found in the VSCode logs (Window) this message only:

[2020-01-24 13:37:57.025] [renderer1] [error] spawn /home/rut/.vscode/extensions/adamvoss.vscode-languagetool-3.8.0/lib/languagetool-languageserver/build/install/languagetool-languageserver/bin/languagetool-languageserver-live EACCES: Error: spawn /home/rut/.vscode/extensions/adamvoss.vscode-languagetool-3.8.0/lib/languagetool-languageserver/build/install/languagetool-languageserver/bin/languagetool-languageserver-live EACCES
	at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
	at onErrorNT (internal/child_process.js:456:16)
	at processTicksAndRejections (internal/process/task_queues.js:84:9)

anything else looks OK.

It seems I missed something, maybe I should install other Haskell tools? As I understand, VSCode, its extensions are outside of the Docker, and VSCode starts extensions on the host machine. I have not problems with Haskell projects without Docker (I mean locally, outside Docker). The file /home/rut/.vscode/extensions/adamvoss.vscode-languagetool-3.8.0/lib/languagetool-languageserver/build/install/languagetool-languageserver/bin/languagetool-languageserver-live exists, I have access to open it but if I try to run it, then I get error:

App.main
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
	at App.main(App.java:14)

I tried to run hie in the Docker, it completed with error code 0, so it seems to work. I had some error that it cannot define flags for Setup.hs, so I removed Setup.hs and now it works only with one note: Note: loading of 'Setup.hs' is not supported.. Everything else looks fine.

In the root (added to workspace) I have a folder named ".devcontainer/" with one file "devcontainer.json" which content is:

{
  "name": "Something",
  "dockerFile": "../Dockerfile.vscode",
  "appPort": 9000,
  "startup":true,
  "extensions": [
    "alanz.vscode-hie-server"
  ]
}

The referenced "../Dockerfile" is multi-stage. Actually, I tried simple Dockerfile too (with one stage only), the result is the same: Haskell IDE related functionality does not work.

Actually I have not idea where to dig. Would you tell me what might be the case?

Q: what are files created by install data?

I use multi-stage Dockerfile, so I build everything in the 1st stage then I copy binaries to the final image. I build haskell-ide-engine in the 1st stage and copy the result binaries from ~/.local/bin/* to the same folder in the final image. As I understand it's for install.hs hie-8.6.5. But what are the files generating by install.hs data (so to add also them to the COPY docker instruction) ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.