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
haskell-process-load-file on a file with a relative import and a type error fails with "Unexpected response from haskell process" instead of showing the error
#1642
Closed
rntz opened this issue
Apr 5, 2019
· 2 comments
· Fixed by #1850
How to replicate: Make a directory with two files, A.hs and B.hs, like so:
-- In A.hs:
module A where {}
-- In B.hs:
import A
x = unbound -- or any other code that shouldn't typecheck
Then visit B.hs and run C-c C-l, that is, haskell-process-load-file.
Expected result: I get a nice error message in *haskell* telling me Variable not in scope: unbound.
Actual result: I get a message in the minibuffer saying: Haskell process command errored with: (error "Unexpected response from haskell process."), and no error message in *haskell*, so I am left not knowing what went wrong or how to fix it.
The text was updated successfully, but these errors were encountered:
Revisiting this after 5 years, the example in the original post fails to reproduce the bug for me. However, other very similar cases generate the same problem. For instance:
How to replicate: Make a directory with two files,
A.hs
andB.hs
, like so:Then visit
B.hs
and runC-c C-l
, that is,haskell-process-load-file
.Expected result: I get a nice error message in
*haskell*
telling meVariable not in scope: unbound
.Actual result: I get a message in the minibuffer saying:
Haskell process command errored with: (error "Unexpected response from haskell process.")
, and no error message in*haskell*
, so I am left not knowing what went wrong or how to fix it.The text was updated successfully, but these errors were encountered: