-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Haskell] ghc-mod: No such file or directory #1718
Comments
What does |
It doesn't find it:
So I'm guessing this line: |
You can inspect the value of the variable with |
It should be |
Alright, I solved the problem: |
|
I get that, but here's a quote from the Haskell layer readme: "or [add this path] to the Emacs This doesn't work, while adding it to |
Gustorn -- thank you for this fix! But not for the Haskell layer. I was setting up gtags as per the instructions here: https://github.com/syl20bnr/spacemacs/tree/master/contrib/gtags When I tried to use helm-gtags, or invoke any of the installed programs such as gtags or global, spacemacs would say that there was "no such file or directory" So I added "/usr/bin" -- where global is installed -- to the "exec-path" and helm-gtags worked. I looked at the path with Is this supposed to happen? Or is spacemacs doing something funny? |
- update section about setting up PATH by updating value of =exec-path= (previously it was saying to update it in =user-init= function, but looks like you need to do it in =user-config=) - following syl20bnr#1718 - add FAQ section - add note about setting up =stack-ghci= as =haskell-process= (as noted in syl20bnr#2142) - add note about fixing problems with =ghc-mod= and =stack= - add note about fixing stuck REPL (following syl20bnr#3271)
- update section about setting up PATH by updating value of =exec-path= (previously it was saying to update it in =user-init= function, but looks like you need to do it in =user-config=) - following #1718 - add FAQ section - add note about setting up =stack-ghci= as =haskell-process= (as noted in #2142) - add note about fixing problems with =ghc-mod= and =stack= - add note about fixing stuck REPL (following #3271)
After enabling
contrib/lang/haskell
it refuses to acknowledge that I haveghc-mod
installed.~/.cabal/bin
is added toPATH
:$ env | grep PATH PATH=/home/gustorn/.cabal/bin:/home/gustorn/.local/bin: [rest of PATH]
My
.spacemacs
file (.el extension added for syntax highlighting): .spacemacs (I already tried withflyspell
not excluded)The actual error:
:company-ghc-diagnose
Using
:!ghc-mod
inside emacs finds the executable just fine.OS: Linux
Emacs: GNU Emacs 24.5.1
The text was updated successfully, but these errors were encountered: