Closed IgorGee closed 1 year ago
Was also able to reproduce on the develop
branch of spacemacs
relatedly (?) I just tried out Dante for the first time, and immediately it filled my ~32GB ram and crashed my computer. After a reboot, that's no longer happening, but none of its features work, eg on C-c .
or M-.
: No definitions found for: "/tmp/dante....
I followed stock instructions, i'm on debian with an up-to-date os and up-to-date emacs, and intero
, this project's upstream, has always worked flawlessly for me. I'm excited for Dante's potential and plan on trying again in the future.
Did you try running ghci with the exact same command line as dante? (Check:
dante-command-line ("nix-shell" "--pure" "--run" "cabal repl --builddir=dist/dante")
I'm not sure I know what the exact command line dante is using.
I don't think I understand what you're asking, but I was able to run ghci
within the emacs shell only after installing this package: exec-path-from-shell
Check the value of dante-command-line
and try to run the same command manually.
I use spacemacs + dante on NixOS.
The command dante-command-line ("nix-shell" "--pure" "--run" "cabal repl --builddir=dist/dante")
is setting the variable dante uses to invoke ghci as a subprocess. So you need to go to the root directory of your project and run nix-shell --pure --run 'cabal repl --builddir=dist/dante'
from the command line. If that fails then it is not a dante-specific issue. All dante
is doing is invoking that command to create a sub-process with which to communicate to ghci
, so if you can't get that command working then you won't be able to get dante
to work.
I'm not familiar with exec-path-from-shell
, it sounds like direnv
to me, but if you have ghci
globally installed then running ghci
from within eshell
won't prove anything about running ghci
from within nix-shell
like you are trying to do with dante
. You can try to open eshell
and run nix-shell
from there, but in my experience eshell
can get wonky when invoking nix-shell
What fixes this for me is
(setq dante-repl-command-line '("nix-shell" "--run" "cabal repl"))
because nix-shell --pure
doesn't necessarily contain cabal(-install)
if you don't add it explicitly. I do have cabal
installed for my user so I want it to propagate to nix-shell
s, hence removing --pure
fixes it. Also it seems to work just fine with v2-repl
which is now the default one.
init.el
Messages
Notes
ghci
,cabal
in my terminal just fine.cabal
andghci
were both obtained vianix
package manager..hs
file.HelloWorld.hs
Dante Output