atom-haskell-archive / haskell-ghc-mod

haskell-ghc-mod atom package
https://atom.io/packages/haskell-ghc-mod
MIT License
69 stars 20 forks source link

Atom 1.15.0 + haskell-ghc-mod 1.19.7 = no type info on mouseover #207

Closed ThomasLocke closed 7 years ago

ThomasLocke commented 7 years ago

It works with Atom 1.14.3 and haskell-ghc-mod 1.19.7, so there seems to be something going on somewhere between 1.14.3 and 1.15.0

The console outputs the following on mouseover:

haskell-ghc-mod warning: ghc-modi said: EXCEPTION: types: attempting to use module ‘Main’ (src/Main.hs) which is not loaded
util.coffee [sm]:36 haskell-ghc-mod warning: ghc-modi said: EXCEPTION: info:
util.coffee [sm]:36 haskell-ghc-mod warning: ghc-modi said:                attempting to use module ‘Main’ (src/Main.hs) which is not loaded
upi.coffee:157 Error: Got neither type nor info(…)
ThomasLocke commented 7 years ago

Console log after enabling the debug flag in haskell-ghc-mod:

https://gist.github.com/ThomasLocke/afc7037dd4d944b26705de235fe4cf1b

lierdakil commented 7 years ago

Okay... and what happens if you run ghc-mod type /home/thomas/vcs/darcs/passgen/src/Main.hs -c -- 27 4 in /home/thomas/vcs/darcs/passgen?

lierdakil commented 7 years ago

Run from shell I mean.

ThomasLocke commented 7 years ago

@lierdakil it fails. Miserably.

EXCEPTION: types: attempting to use module ‘Main’ (src/Main.hs) which is not loaded

So some sort of problem on my end. Closing issue. Sorry for wasting your time.