-
Notifications
You must be signed in to change notification settings - Fork 64
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
Trouble with symbolic links #133
Comments
What happens if you run |
I'm not sure what you mean there. Using the full path to the project
Please let me know if that's not what you had in mind. |
I meant:
I know you said you ran |
I see. It's just a bare bones stack project so I checked |
I'm still not sure I understand what you're doing. You're saying that the entire project is in a symlinked directory, or that specific files are symlinked? It does sound like this might be an emacs issue, you might want to ask in |
The project root is a subdirectory of a symlinked directory. There are no symlinks within the project's directories. I'll head over to the |
If you can reproduce something weird happening with just the HLS binary then it might be a HLS issue, that's why I asked about that. |
I think I have the same problem, and it's maybe related to this: haskell/haskell-language-server#1971 let's say
1. By choosing "import project by selecting root directory interactively" and then picking ~/htest, HLS will always fail with "Multi Cradle: No prefixes matched". lsp-haskell::stderr
2. If instead I choose the real path, it works. lsp-haskell::stderr
Both 1. and 2. are true while vistiting .hs files under the symlinked path or the real one.
I did a lot of testing taking care of killing emacs before each test, removing the .lsp-sessions-v1 file, etc. Also I tried with and without hie.yaml files, with single and multi component projects, with HLS 1.2 and then 1.4 and finally reduced the problem to this which happens in any case. EDIT: Of course, I could always select the real project root (as in 2.) but then, emacs will keep asking for the project root every time I load the same .hs file by visiting the symlink. Also my real path under /mnt is in fact quite harder to find, I just simplified things here. |
When accessing a buffer via a symbolic link I got an error:
Multi Cradle: No prefixes matched
. It's a brand new project set up via withstack new
, I only changed the resolver version to 8.10.4 and removedSetup.hs
. When accessing the same buffer by its proper path everything seems to work. I don't get any errors from haskell-language-server nor from hie-bios executed on the terminal. I saved the output ofgen-hie
tohie.yaml
in the project's root. I'm on versions 8.10.4 for haskell-language-server, 0.5.1 for hie-bios and a recent install of gen-hie. What's wrong here?Here's the log of a session with error:
And here's the log of an error-free session:
The text was updated successfully, but these errors were encountered: