Skip to content
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

Why is plugin falling back on lts 18? #690

Open
jantonisito opened this issue Aug 18, 2022 · 2 comments
Open

Why is plugin falling back on lts 18? #690

jantonisito opened this issue Aug 18, 2022 · 2 comments

Comments

@jantonisito
Copy link

I have GHCup installation - stack 2.7.7 and ghc 9.0.2. I built the stack project that has resolver: lts-19.19 setting with stack build --test --haddock --no-haddock-hyperlink-source. I installed the plugin, restart and try to do New Project wizard select Import project from external model and check Haskell Stack. Select 2.7.5 as SDK. Plugin then installs ghc-8.10.7 into C:\Users\USER\AppData\Local\Programs\stack\x86_64-windows\ghc-8.10.7 and installs Haskell Tools (HLint, Hoogle, Ormolu, and Stylish Haskell) into C:\Users\USE\AppData\Local\rikvdkleij\intellij-haskell\cache\lts-18.
Why is that? Why is resolver: lts-19.19 (local stack.yaml) ignored?

@rikvdkleij
Copy link
Owner

That’s the LTS version used by the plugin to build the tools, not for your project. You can build the tools yourself and refer to them in Settings.

@jantonisito
Copy link
Author

jantonisito commented Aug 19, 2022

Thanks - as I said this is the first day (after a year or so) that work with you plugin. Thank you for replying.

Edit: I tried building Stylish Haskell, Ormolu, HLint and Hoogle using stack install .. but the problem is that all of them require different combination of versions of ghc-lib-parser-ex and ghc-lib-parser to build.

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

2 participants