haskell-ide-engine icon indicating copy to clipboard operation
haskell-ide-engine copied to clipboard

HIE go-to-definition between components is inconsistent

Open santiweight opened this issue 5 years ago • 1 comments

So I think I have a lot of misunderstandings here... I have a project with a library component (in my .cabal) and a test component (also in my .cabal). I can use definitions from the library component in my test files, but when I try to go-to-definition I get "No defintion found...". Sometimes however, it does work, other times it does not. Is there a way to have this configuration be consistent. My understanding is that by using an hie.yaml file, I can no longer jump between the different library components? Is this true?

santiweight avatar Mar 28 '20 01:03 santiweight

Unfortunately, go-to-definition and go-to-type-definition does not work cross-component, due to how we compile mulitple component projects. Fixing this would require a fair amount of work and we will probably not fix it, since this project will be superseded by haskell-language-server soon. Existing issue is #1566.

fendor avatar Mar 28 '20 10:03 fendor