Skip to content

hie-server running but not sending any rpc messages to vscode. #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SamDM opened this issue Oct 12, 2018 · 3 comments
Closed

hie-server running but not sending any rpc messages to vscode. #118

SamDM opened this issue Oct 12, 2018 · 3 comments

Comments

@SamDM
Copy link

SamDM commented Oct 12, 2018

I have a fresh install of hie using the Arch package on AUR (https://aur.archlinux.org/packages/haskell-ide-engine-git/).

When opening a haskell file, the extension does not seem to do anything. No code completion, no linting, nothing (except for syntax highlighting). Enabling the logs, I see that the hie server is running. The log file reflects the actions I perform in vscode such as moving the cursor, etc.

When I look at the server dump, nothing is sent back to vscode. In neither of the log files is there any indication that something is going wrong. It is only by logging the output using --vomit that something pops up:

hie-8.4.3: user error (Failed to find requested hint files:
  /usr/bin/data/hlint.yaml
)

Do I need a global installation of hlint to make this work? Why? Shoulnd't it use hlint from stack?

Attached are the 1) my custom hie wrapper to enable the logs, 2) the log, 3) the server dump and 4) the stderr from hie containing information from --vomit.

hie-vscode.sh.txt
hie.log
hie-wire.log
hie-stderr.log

If I can do anything to help or if any additional info is required, let me know.

@chiroptical
Copy link

chiroptical commented Oct 26, 2018

@SamDM I am facing a similar issue. If I simply create a sym link from hlint.yaml to that location I can get past that error. The next one I hit is hie-8.4.3: Could not find $libexecdir/cabal-helper-wrapper. All output:

hie-8.4.3: Could not find $libexecdir/cabal-helper-wrapper

If you are a cabal-helper developer you can set the environment variable
`cabal_helper_libexecdir' to override $libexecdir[1]. The following will
work in the cabal-helper source tree:

    $ export cabal_helper_libexecdir=$PWD/dist/build/cabal-helper-wrapper

[1]: $HOME/.cache/yay/haskell-ide-engine-git/src/haskell-ide-engine/.stack-work/install/x86_64-linux-tinfo6/lts-12.11/8.4.3/libexec/x86_64-linux-ghc-8.4.3/cabal-helper-0.8.1.0

If you don't know what I'm talking about something went wrong with your
installation. Please report this problem here:

    https://github.com/DanielG/cabal-helper/issues

Note that the directory listed by [1] doesn't exist. I tried stack install cabal-helper and I get: Couldn't find executable cabal-helper-wrapper in directory $HOME/.stack/snapshots/x86_64-linux-tinfo6/lts-9.21/8.0.2/bin

@chiroptical
Copy link

@SamDM I would try this suggestion: haskell/haskell-ide-engine#483 (comment). After copying the cabal-helper-wrapper to my ~/.local/bin it worked fine.

@jneira
Copy link
Member

jneira commented Jan 9, 2020

Hie no longer use cabal-helper-wrapper, otoh the runtime dependency on the hlint data file is known issue, tracked (and about to be fixed!) in: haskell/haskell-ide-engine#1143

@jneira jneira closed this as completed Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants