-
Notifications
You must be signed in to change notification settings - Fork 39
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
Blocking dependency on ghc-mod #350
Comments
Not currently I'm afraid. Help on DanielG/ghc-mod#900 would be appreciated though. |
@bgamari What do you recommend for folks who are using GHC 8.2.X? Should we disable/remove |
Any news on this? |
@orome Sadly I don't think so. I'd track that ghc-mod ticket for progress, but currently, there doesn't appear to be any. |
@carymrobbins Will do. Thx. |
Just to confirm that I understand the error I'm seeing. Is the issue that the GHC used to compile I ask because it seems like one way around this would simply be not to care what GHC has been specified elsewhere or is being used globally on the command line (if that's were the incompatibility arises), or to provide an additional setting to point to a matching GHC (e.g. off the path somewhere). (And for that matter, if I'm building with stack, why is the "Haskell Compiler" setting for GHC relevant at all: I could be using any GHC, as specified in my |
Yes, that part is possible and doesn't need ghc-mod, you can do that with hlint and/or your formatter directly. Also, I just recently discovered that there are working ghc-mod builds for GHC >= 8.2 available in this fork - https://github.com/alanz/ghc-mod/tree/ghc-8.4-hie I'm currently using the GHC 8.4 build and it seems to be working pretty well. |
I don't see any linting or formatting inspections at all. How can I confirm that it's working? (I do get some auto-completion though). I have no entry for |
@orome Check the Haskell Tools Console. It should show you the output for your configured tools. If you don't see it, it might have to do with the checking for Haskell modules and the way you created the project. If you are using |
@orome Just to double check, you do have hlint configured in the Haskell Tools, correct? |
Yes. It's setup there. I see hlint output on the Haskell Tools Console, but I don't see any inspections or highlighting in the IDE editor window. My package is listed under modules in the Project Structure. Are there other setting there that need to be just so (e.g., I don't have a project SDK configured, just Haskell as a module SDK, whatever that means). |
@orome Do you see the Haskell Tools Console at the bottom of your IDE? |
Yes. |
Ok, so then do you see the output from hlint there? |
Yes, see above. But I see nothing in the IDE editor window. Should I? |
That seems strange. Maybe copy/paste the output you see from hlint into a gist and link here? |
I get, for example:
And this changes as expected in response to annotations or specs in |
And I assume you are looking for lint warnings in
|
Here's what the command above produces. |
@orome Ah ok, I think that's a bug introduced by hlint >= 2.1.5 where the JSON format changed. I have fixed it in commit 9a8612e; however, I haven't released it. I have a few bug fixes that are probably ready to be released as well as an experimental auto-import feature, so I'll get those packaged up and released in the next couple of days. In the meantime, you can probably build HaskForce from source, which is pretty straight forward. |
Is there any way to also add a feature that allows picking a GHC to use with the executables ( |
If you are using Project Preferences > Build, Execution, Deployment > Compiler > Haskell Compiler |
Exactly; and those affect my builds, meaning that I'd have to limit them to 8.0.2 just to use |
The GHC version of ghc-mod has to match your project, otherwise it won't work. |
Ah, so |
This seems mostly resolved so long as you're not using GHC 8.2 (which I believe is the only GHC that ghc-mod doesn't support). |
But |
Actually no, I'm currently using LTS 13.x and ghc-mod works. I have some steps outlined here that might help - http://caryrobbins.com/dev/installing-ghc-mod/ Ideally, we should get something like this workflow packaged up to make it easier for folks to install and configure ghc-mod (which is related to #304). |
I may have this wrong, but it appears there's no way to use this with recent GHC, because
ghc-mod
doesn't work with GHC 8.2.2 (DanielG/ghc-mod#900).Is there a way to get an
ghc-mod
executable that works with GHC 8.2.2?The text was updated successfully, but these errors were encountered: