-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get ",ht" working. #266
Comments
Ghc-mod has trouble working with projects which use a different version of cabal than that which was used to build ghc-mod. You could check where haskell-vim-now installed ghc-mod (perhaps |
So, I did: :!ghc-mod type /CNN.hs 168 1 |
Okay, I was able to get ',ht' working, by following the advice given here: However, there's a caveat: You must be in the directory containing your stack.yaml file, before opening the file in which you wish to use ',ht'. Note that ':cd'ing into that directory, after opening the file will not work! |
Interesting, so it's a pathing issue? Maybe we could tweak https://github.com/begriffs/haskell-vim-now/blob/master/vimrc.haskell#L1-L7 ? Thanks a lot for continuing to research this, I've been missing the |
Hi Joe, I looked at that code, but don't understand it; sorry. Thanks, |
Using this simple example:
and with my cursor positioned on the 'n' at the beginning of the first occurrence of the word "name" in the second line, I tried ",ht" in normal mode, but got:
ghcmod#command#type: Cannot guess type.
I'd previously rebuilt, using the
--enable-test
Cabal flag:stack build :hardware-examples --flag *:enable-test
but, apparently, that wasn't the problem.
Does anyone know how I can get ",ht" working?
The text was updated successfully, but these errors were encountered: