Emacs flymake mode not working for coffeescript

I am trying to start flymake mode using CoffeeScript. For some reason, when I call flymake mode, I get this message (all of it on the same line in the error log):

Flymake: a configuration error occurred at startup (/usr/bin/coffee/tmp/flymake16162knP.coffee). Flymake will be off

I thought he could not find the coffeescript command, so I gave it the full path, but at the moment I can not get it to work.

+4
source share
1 answer

You add the following S-exp to your configuration file (possibly the hook-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 an exception when the exit status is not equal to zero, and the compilation process was not interrupted. This S-exp forces flymake-check-was-interrupted to be true, and avoids the flymake exception.

+6
source

Source: https://habr.com/ru/post/1397383/


All Articles