Skip to content
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

Error while checking syntax automatically: (error "Buffer *dante:<name>::<path>/* has no process") #148

Closed
epoberezkin opened this issue Apr 11, 2020 · 1 comment

Comments

@epoberezkin
Copy link

I cannot make dante work... I appreciate any help

.emacs

(add-to-list 'exec-path "~/.local/bin")

(use-package dante
  :ensure t
  :after haskell-mode
  :commands 'dante-mode
  :init
  (add-hook 'haskell-mode-hook 'dante-mode)
  ;; (add-hook 'haskell-mode-hook 'flycheck-mode)
  )

~/.local/bin/ghci

#\!/bin/bash
stack exec -- ghci $@

M-x flycheck-verify-setup

Syntax checkers for buffer <file>.hs in haskell-mode:

  haskell-dante
    - may enable: yes
    - predicate:  t

  haskell-stack-ghc
    - may enable: yes
    - executable: Found at /usr/local/bin/stack

  haskell-ghc
    - may enable: Automatically disabled!
    - executable: Not found

  haskell-hlint
    - may enable:         yes
    - executable:         Found at /Users/evgeny/.local/bin/hlint
    - configuration file: Not found

Flycheck Mode is enabled.  Use C-u C-c ! x to enable disabled
checkers.

--------------------

Flycheck version: 31
Emacs version:    26.3
System:           x86_64-apple-darwin18.2.0
Window system:    ns
@epoberezkin
Copy link
Author

epoberezkin commented Apr 15, 2020

Fixed with:

(custom-set-variables
 ;; ...
 '(dante-methods-alist
   (quote
    ((stack "stack.yaml"
	    ("stack" "repl" dante-target))))))

to remove all other methods other than stack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant