-
Notifications
You must be signed in to change notification settings - Fork 72
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
Flycheck is broken. #596
Comments
I think this has been resolved with #609, however, I have experienced issues from the default configuration.
It would be prudent to either think about sane defaults, or produce advice on a good starting configuration. |
Hi @jfdm
in my (require 'idris-mode)
(require 'flycheck-idris)
(add-hook 'idris-mode-hook #'flycheck-mode) And
The list of enabled checkers is stack (lifo) meaning the last defined Idris2 is selected as first to be used by default.
Agree that some documentation/readme update may begg needed. |
My issues seem to resolve around finding the Idris2 executable. It might be that some other customisations I have done when configuring idris-mode interferes with the default operation. |
Over weekend I played with my setup and converted it to use (use-package idris-mode
;; :ensure t ;; Installing from (M)ELPA
;; Loading local source from https://github.com/idris-hackers/idris-mode
:init (require 'idris-mode)
:load-path "vendor/idris-mode"
:config
(require 'flycheck-idris) ;; Syntax checker
(add-hook 'idris-mode-hook #'flycheck-mode)
(require 'idris-format) ;; Prettification commands
(add-to-list 'completion-ignored-extensions ".ibc") ;; Idris 1 artefacts
;; save keys
(key-chord-define idris-mode-map "e." ">>= ")
(key-chord-define idris-mode-map "w=" "=> ")
(key-chord-define idris-mode-map "w." "-> ")
(key-chord-define idris-mode-map "w," "<- ")
:custom
(idris-interpreter-path "idris2")
;; minimise distraction
(idris-hole-show-on-load nil)
(idris-repl-show-repl-on-startup nil)
;; does not work with Idris2 but one day should
(idris-enable-elab-prover t)
;; for development and debugging
(idris-log-events t)
;; custom key binding for commands that do not have
;; pre defined key binding
:bind (:map idris-mode-map
("C-c h" . idris-list-holes))) |
The flycheck instance has been created to work with Idris1.
With the rise of Idris2 we need to make sure both Idris and Idris2 are supported.
The text was updated successfully, but these errors were encountered: