Closed briansunter closed 9 years ago
Thank you for this report. I'm not sure I understand how this happens. It appears you are somehow opening files that do not belong to project directories, which shouldn't be possible with Atom, to my knowledge. Would you please walk me through reproducing this?
If I'm correct, v0.6.4 at least shouldn't throw for your particular use-case. But I'd still very much like to know what your use-case is.
@lierdakil Sorry I forgot to mention that I'm using ghc-mod from the master branch (not on hackage yet) of https://github.com/kazu-yamamoto/ghc-mod for compatibility with ghc 7.10 and cabal 1.22
https://github.com/kazu-yamamoto/ghc-mod/issues/417
Ghc-mod is working correctly with ghc-mod-vim (terminal vim) though.
Oh. Sorry, but master
ghc-mod is not supported at the moment, since it has changed some things internally, which breaks anything operating on current file (check, lint, get info, get type). I'm currently working on a patch to ghc-mod upstream, but that may take a while.
Some backstory: I want these commands to work on current buffer contents, and not a saved copy. My old hack with temporary files no longer works on master
branch, however, hence I need to implement this properly in ghc-mod.
Ok, I'll stay tuned for the update! Thanks.
As a reference, https://github.com/kazu-yamamoto/ghc-mod/issues/482 is relevant upstream issue.
A highly experimental patch to ghc-mod is available in https://github.com/atom-haskell/ghc-mod/tree/file-redirection (please note it's on file-redirection
branch). This will work with haskell-ghc-mod 0.7.0. Please bear in mind that this is pre-alpha, so expect bugs, quirks and so on, but if you want to test it, it's there.
Feel free to report any issues here or on https://github.com/atom-haskell/ghc-mod/issues (just don't report to upstream for now, that likely won't be helpful)
Okay, with ghc-mod 5.4.0.0 released, this should work fine. Closing.
Getting some weird behavior with this plugin. Autocomplete Haskell is working fine, however ide-haskell is not highlighting the errors shown in the errors panel.
Atom Version: 0.204.0 System: Mac OS X 10.10.3 Thrown From: haskell-ghc-mod package, v0.6.3
Stack Trace
Uncaught TypeError: Invalid value used as weak map key
Commands
Config
Installed Packages