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

lsp: Simplifier phase 0/"main" not found #45

Open
unhammer opened this issue Jan 8, 2022 · 2 comments
Open

lsp: Simplifier phase 0/"main" not found #45

unhammer opened this issue Jan 8, 2022 · 2 comments

Comments

@unhammer
Copy link

unhammer commented Jan 8, 2022

When I turn this on, haskell-language-server just says Simplifier phase 0/"main" not found and gives none of the other hints. Is there some additional setup required to get this to work with lsp or should I just turn it off in .cabal while developing?

@harendra-kumar
Copy link
Member

This happens because fusion-plugin requires optimization to be turned on. When you use it with ghci or with lsp which is the same thing, then you will get this error. Maybe we can add a workaround in the fusion-plugin so that it does nothing in this case. But for now you can put fusion-plugin under a build flag. When that flag is on makes sure optimization is on. Like in streamly-examples.cabal.

@unhammer
Copy link
Author

unhammer commented Jan 8, 2022

OK, thanks, the workaround seems to do the trick :)

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