benkolera / spacemacs-hie-nix

Spacemacs layer for using a nix friendly haskell-ide-engine lsp
GNU General Public License v3.0
17 stars 3 forks source link

Symbol’s value as variable is void: hie-nix//default-nix-wrapper #11

Open commandodev opened 5 years ago

commandodev commented 5 years ago

I'm getting a problem when I'm trying to run , s b (to load the repl):

hie-nix command: nix-shell -I . --command hie-wrapper --lsp -d -l /tmp/hie.log /home/ben/<...>/shell.nix [2 times]
Loading /home/ben/.emacs.d/.cache/company-statistics-cache.el (source)...done
LSP :: Connected to [hie:20388 status:starting].
Please type y, n, or !: n
Starting a new list of tags tables
Making tags-file-name local to TAGS while let-bound!
Using hie version: Version 0.3.0.0 x86_64 ghc-8.4.4
No hoogle db found. Check the README for instructions to generate one
haskell-interactive-session: No session associated with this buffer. Try M-x haskell-session-change or report this as a bug.
hie-nix//haskell-nix-wrapper: Symbol’s value as variable is void: hie-nix//default-nix-wrapper

I also noticed a problem with the init-lsp-haskell function. It should be:

(defun hie-nix/init-lsp-haskell ()
  (use-package lsp-haskell
    :init (add-hook 'haskell-mode-hook #'lsp)))

I'll send a PR for that one separately