haskell / haskell-ide-engine

The engine for haskell ide-integration. Not an IDE
BSD 3-Clause "New" or "Revised" License
2.38k stars 213 forks source link

HIE go-to-definition between components is inconsistent #1713

Open santiweight opened 4 years ago

santiweight commented 4 years ago

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?

fendor commented 4 years ago

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.