-
-
Notifications
You must be signed in to change notification settings - Fork 389
Multi Cradle: No prefixes matched #1971
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
Comments
Hi! Thank you for the bug report! Unfortunately, I can't reproduce an issue locally and the logs also look fine, is there something special about your setup (e.g. the path |
Interesting. A The above error includes:
so it looks like HLS is matching Reproduce
|
I meet the same problem in similar situation. I tried to run HLS as a container in the Docker, on VSCode. I build the HLS in the container, and assigned VSCode the built HLS executable. It seems that VSCode will run the HLS from the workspace folder, while the workspace folder is actually a mounted path. Reproduce
Several screenshots: For my problem, I suspect there should be a workaround to change the pwd, so that it is not exactly the workspace folder. But I haven't found out a way to do it yet. |
I resolved my own issue this afternoon. In my version of "workspaceMount": "source=${localWorkspaceFolder},target=/home/haskeller/hls/,type=bind,consistency=delegated",
"workspaceFolder": "/home/haskeller/hls/", And the |
Could someone help, I have this error too on reflex |
Closing this, since the original issue was solved. We have a somewhat related issue #3695, but that's only for cabal. |
appears on the first line, then disappears. After editing something and saving, the error reappears. Regardless, no LSP features work. The only solution is to use this
hie.yaml
:Although this setup leads to some strange results.
Your environment
Output of
haskell-language-server --probe-tools
orhaskell-language-server-wrapper --probe-tools
:haskell-language-server version: 1.2.0.0 (GHC: 8.10.4) (PATH: /home/winston/.local/bin/haskell-language-server) (GIT hash: 9f4220fe645c21b2732ddc10ae0a8a6eb158b254) Tool versions found on the $PATH cabal: 3.4.0.0 stack: 2.7.1 ghc: 8.10.4
Which OS do you use: Manjaro 64-bit
Which lsp-client do you use: OSS VSCode
Describe your project (alternative: link to the project):
stack new hlstest simple
Contents of
hie.yaml
:Steps to reproduce
Do
stack new hlstest simple
. Open the project with the Haskell VSCode plugin enabled.Expected behaviour
LSP should work in a clean project.
Actual behaviour
No LSP features are available.
Include debug information
Execute in the root of your project the command
haskell-language-server --debug .
and paste the logs here:Debug output:
Paste the logs from the lsp-client, e.g. for VS Code
LSP logs:
The text was updated successfully, but these errors were encountered: