-
-
Notifications
You must be signed in to change notification settings - Fork 390
Navigation between multiple components #44
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
I don't know if this belongs here or in another issue: one feature we LOVE in my team with Intellij-Haskell is the capacity to also navigate to library code using "Jump to definition". This is incredibly useful to learn the language and/or learn how to use a library. Let me know if this is a completely different matter and I'll open another issue |
Afaict, this should work now. Both components need to be loaded, e.g. a file from each component has been opened at some point, and then goto cross component works. |
We just tested with a coworker today, and none of us succeeded in navigating between 2 components (from a test component to a main one) 🤔 Have you successfully made it work on some project? |
Yeah, I am positive that I've seen this feature work (and I am actively using it). A reproducible example would be great! |
I keep look at this thread and thinking there is a mis-communication. Please forgive me if I'm wrong. The behavior I observe:
This fails and that failure is expected.
This works because both |
@TomMD don't worry, I was well-aware of this limitation! I just tested on an empty project and indeed, cross component (from a test to a main component) seems to work fine. Maybe this doesn't work on our project because we see some typecheck errors (which I will report in other issues, because compilation in shell works just fine)? Could this impact navigation? |
Yeah, that could be a problem |
This only works for me if I the language server uses cabal, it doesn't work with stack. |
@sir4ur0n @akshaymankar @backuitist Maybe we should close this one as too generic and open new issues it it does not work for some cases, as the navigation between components should work. |
It would be nice to be able to navigate between symbols of different components in a multi cradle setup. Currently it says "no definition found".
I created a simple test project to try this out: https://github.com/backuitist/nix-haskell-multi-package
This issue was originally raised on HIE: haskell/haskell-ide-engine#1656
The text was updated successfully, but these errors were encountered: