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

Adding a package does not resolve an error #233

Closed
worm2fed opened this issue Jun 4, 2020 · 3 comments
Closed

Adding a package does not resolve an error #233

worm2fed opened this issue Jun 4, 2020 · 3 comments

Comments

@worm2fed
Copy link

worm2fed commented Jun 4, 2020

When I use imports in my code and there are no package in my project two things happen:

  1. If I use quick fix (add package as dependency) vscode corrupts the order of lines in package.yaml
    BEFORE:
    image

AFTER:
image

and no effect then
2) I still see the error (in first case and if I manually add a dependency)
image

The error occurs till I reopen my workspace

@fendor
Copy link
Collaborator

fendor commented Jun 4, 2020

Thank you for your bug report!
I am assuming you are using Haskell IDE Engine.
This is a known problem, we currently do not reload the session if there are changes to relevant files such as package.yaml, *.cabal files, etc...
Unfortunately, this will not be solved in Haskell IDE Engine.

The good news is that it is implement in Haskell Language Server and ghcide! Neither of the projects have feature parity with Haskell IDE Engine, yet, but we are slowly getting there!

@worm2fed
Copy link
Author

worm2fed commented Jun 4, 2020

thanks for information

@jneira
Copy link
Member

jneira commented Mar 9, 2021

Hi, haskell-ide-engine in no longer supported and haskell-language-server still does not have the feature. It is tracked here: haskell/haskell-language-server#155

I hope this bug will be not present when the feature would be added

@jneira jneira closed this as completed Mar 9, 2021
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