Open DestyNova opened 5 years ago
CC @cloudhead who maintains the neovim pieces.
Hmm this is pretty much intended behavior - running :Ghcid
is like running ghcid
in the the cwd. I guess it could be made to accept a file if ghcid
supports that?
@cloudhead do you mean a file on stdin? That is not supported, since ghci
doesn't support it.
I'm referring to @DestyNova 's initial comment about the plugin not passing a filename to [sic] ghcid
ghcid
can take filenames. Generally speaking it just appends those to the command it uses for running ghci
.
Ok, well arguments passed to :Ghcid
should be passed down to ghcid
, so I guess you'd have to do :Ghcid <filename>
, but it won't do it automatically for you.
Workaround with cabal: :Ghcid -c 'cabal new-repl'
A bit sluggish still.
This might be some sort of configuration issue on my end, because I can't see any similar issues.
When I run
:Ghcid
in a Haskell buffer (note, without Cabal or Stack project files), it calls the globalghci
without actually including the filename, so it just errors out immediately:One thing that makes this difficult to debug is that as soon as I hit enter, the quickfix window is hidden and cleared, so there's no way to scroll up (this means if I run
:Ghcid -v
, I can see almost none of the output).I can work around it by making a change to the
s:ghcid(...)
function inhaskell.vim
, but I get the feeling this is not supposed to be necessary?