-
Notifications
You must be signed in to change notification settings - Fork 90
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
VsCode under OSX - hie not working #36
Comments
This happens to me too, but only on just a couple of projects: https://github.com/haskell-works/hw-haskell-avro is one of them. |
Did you delete the build directory after installing HIE? |
On that thread I saw this comment:
Note that it only makes sense to use the 8.2.2 version if your project is
8.2.2 too - ghc versions must match
I recompiled my project with 8.2.2 and things seem to be improving :-)
Now it seems to report issues on all files, it doesn't get stuck as before.
I will keep on using it and report my findings.
…On 20 December 2017 at 14:47, R. Patrick. Huang ***@***.***> wrote:
Did you delete the build directory after installing HIE? Curretnly that
causes problems. See haskell/haskell-ide-engine#400
<haskell/haskell-ide-engine#400>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#36 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABYwY-y28h5R9N3_zI-sj6afbcOjZFaks5tCQ_qgaJpZM4RIOZZ>
.
--
Dr. Pasqualino "Titto" Assini
http://networkpolitics.svbtle.com
http://quid2.org/
|
BTW, if it depends on a specific GHC version, should it not do as intero
that recompiles itself for every project using the current stack
configuration?
On 20 December 2017 at 15:45, Pasqualino "Titto" Assini <
[email protected]> wrote:
… On that thread I saw this comment:
Note that it only makes sense to use the 8.2.2 version if your project is
8.2.2 too - ghc versions must match
I recompiled my project with 8.2.2 and things seem to be improving :-)
Now it seems to report issues on all files, it doesn't get stuck as before.
I will keep on using it and report my findings.
On 20 December 2017 at 14:47, R. Patrick. Huang ***@***.***>
wrote:
> Did you delete the build directory after installing HIE? Curretnly that
> causes problems. See haskell/haskell-ide-engine#400
> <haskell/haskell-ide-engine#400>
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#36 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AABYwY-y28h5R9N3_zI-sj6afbcOjZFaks5tCQ_qgaJpZM4RIOZZ>
> .
>
--
Dr. Pasqualino "Titto" Assini
http://networkpolitics.svbtle.com
http://quid2.org/
--
Dr. Pasqualino "Titto" Assini
http://networkpolitics.svbtle.com
http://quid2.org/
|
OK, so the issue was definitely due to a GHC version mismatch. All the features now seem to work, I just found this minor issue:
However, I get a lot of these: Now my cabal file is actually fine. I guess that this is due to the fact that I have test source files in a separate test directory and that hie tries to compile them and cannot locate the src files? Is this the issue? How much hie actually understand of the structure of the cabal file and its different targets? If this is actually an hie issue and not a vscode-hie-server problem, I will report it there. |
|
Different parts of I vote for closing this bug as a duplicate of haskell/haskell-ide-engine#391 |
@nponeccop I'll second that. I think we can close this issue, since the original problem (mismatch between hie's GHC version and the project's) has been resolved. If you still have other issues, let's open some new specific issues for those :) (the current one being tracked in haskell/haskell-ide-engine#391) |
I was having the same problem (features like tooltips and reformatting stopped working) until I restored the build directory that I had deleted after some time. Is there some reason I have to keep the build directory around? That doesn't seem right. |
Hi,
I would like to help debug vscode-hie-server under osx.
The behaviour I observe is that vscode/hie seems to work correctly, for example by detecting hlint issues, only on the first haskell file that it opens.
Afterwards, when I hover on some symbol or some hlint issue I see a 'Loading' message and nothing happens. Also code formatting does not seem to do anything.
I have installed the latest hie and vscode-hie-server from github.
I have modified hie-vscode.sh to run hie in log writing mode:
hie --lsp -d -l /tmp/hie.log | tee /tmp/hie-wire.log
I can see by the hie.log that hie continues to receive commands but the output in hie-wire.log stops shortly after startup.
The log files:
hie.log
hie-wire.log
The text was updated successfully, but these errors were encountered: