emacs flymake mode fails for coffeescript
-
19-05-2021 - |
Вопрос
I am trying to run flymake mode with CoffeeScript. For some reason when I invoke flymake mode I get this message (Its all on one line in the error log):
Flymake: Configuration error has occurred while running (/usr/bin/coffee /tmp/flymake16162knP.coffee). Flymake will be switched OFF
I had thought that it could not find the coffeescript command so I gave it the full path but as of now I can't get it to work.
Решение
You add following S-exp to your configuration file(maybe coffee-mode hook function).
(defadvice flymake-post-syntax-check (before flymake-force-check-was-interrupted)
(setq flymake-check-was-interrupted t))
(ad-activate 'flymake-post-syntax-check)
flymake throws exception when exit status is non-zero and compile process was not interrupted. This S-exp forces to assign flymake-check-was-interrupted to true, and avoids flymake exception.
Не связан с StackOverflow