haskell / haskell-ide-engine

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

hie hangs in typechecking module step with ghc version mismatch (project 8.6.4/hie 8.6.5) #1386

Open jneira opened 4 years ago

jneira commented 4 years ago

https://github.com/haskell/haskell-ide-engine/blob/098b1800c16ec1348fe9d380b946ec4ffa884f38/hie-plugin-api/Haskell/Ide/Engine/Ghc.hs#L192-L201

fendor commented 4 years ago

In the logs, a mismatching ghc version is mentioned. Just for completeness, can you check if the same happens for a matching ghc version?

jneira commented 4 years ago

Sure, i ve just tested it with the same result: hie.log

jneira commented 4 years ago

It worked for me not much time ago so i've installed version e2f8e321 and it works. hie.log I'll try to identify the commit that causes the hang...

jneira commented 4 years ago

Ok, @fendor was right and it seems the cause is i am trying to open a stack project with ghc-8.6.4 with hie compiled with ghc-8.6.5, and it already was warning me. Not sure if it is the expected behaviour cause hie-wrapper falls back to hie-8.6 (that is, ghc-8.6.5 in my case) when it has not the exact version. Anyway this has a clear workaround and a existing warning so imho has not a high priority.