Closed japgolly closed 7 years ago
That is really strange. It just hangs instantly? No output even with --verbose? Weird. I'd get out strace and maybe gdb (now that there's DWARF support) to find out what if anything it does just before it hangs.
Erm and what OS are you using etc.
I'm on Arch Linux. Yeah no output even with --verbose
.
I know what the problem is. I was on my laptop away from home. In my /etc/fstab
I have some home-network drives that automount (which weren't mounting with me not being at home). In my home directory I have a symlink to a another directory on the network drive. When I commented-out my network drive entries in fstab
and rebooted, viola! Problem goes away and ghc-mod works again!
So it's really weird that ghc-mod would freeze like that for an unrelated file in my home dir. Is it scanning everything? If so, maybe it should be more selective. If it must, then maybe it should make some more noise when --verbose
is flagged.
Sounds like running strace -e trace=open,stat ...
on it would reveal the blocking read. Probably something related to searching for the project root but why guess when you can know for sure :)
From
/tmp
:From
~
, from an empty~/1/1
and from a project in~/projects/blah/blah
, runningghc-mod --verbose 7 debug
(anything else) causes it to hang. Running it from/tmp
or/home
it works.I've cleared and reinstalled ghc, cabal, stack, ghc-mod many times. Same goes for all the settings dirs. I've tried installing and running ghc-mod via cabal and via stack.
Versions: