You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.
If an error is present in app/Main.hs any goto on definition in the same file) will send me to empty file like /tmp/ghc-mod15112/Main15110-415110-22.hs
Does this happen only on this branch? Or did you only notice it on this branch?
Because, iirc, there is an issue about that somewhere.
Also, is there something to reproduce it?
We update the reverse file mapping according to the state of the mapped files when the parsed module is generated. However, the old typechecked module that is retained still contains SrcSpans generated according to the previous state of the mapped files. So, when we use information from the typechecked module to answer queries, we are not able to map the temporary file to the real file.
Hopefully this class of issues will be solved once and forall in GHC 8.8+ by @DanielG fixing GHCs support for memory mapped files. Until then, I am pushing a fix.
If an error is present in
app/Main.hs
any goto on definition in the same file) will send me to empty file like/tmp/ghc-mod15112/Main15110-415110-22.hs
I'm using an update hie with alanz/ghc-mod#20.
The text was updated successfully, but these errors were encountered: