flycheck sees eslint, in supported mode, but can't use it

Created on 28 Sep 2016  路  3Comments  路  Source: flycheck/flycheck

I am a spacemacs user, and am trying to set up flycheck to use eslint.

In brief: I open a .js buffer, and try to set flycheck up to use eslint (flycheck-select-checker javascript-eslint) and it says:

  javascript-eslint (disabled)
    - major mode: `js2-mode' supported
    - predicate:  t
    - executable: Found at /home/elvis/bin/eslint

Flycheck cannot use this syntax checker for this buffer.

So the major mode is supported and the executable is found, yet somehow it cannot use this syntax checker. I don't understand this.

Just to be sure, the eslint executable is foundable via M-: (executable-find "eslint") and also shell-command eslint.

Here is flycheck-verify-setup:

Syntax checkers for buffer hack.js in js2-mode:

  javascript-eslint (disabled)
    - predicate:  t
    - executable: Found at /home/elvis/bin/eslint

  javascript-jshint (disabled)
    - predicate:          t
    - executable:         Found at /usr/bin/jshint
    - configuration file: Not found

  javascript-gjslint (disabled)
    - predicate:          t
    - executable:         Not found
    - configuration file: Not found

  javascript-jscs (disabled)
    - predicate:          t
    - executable:         Not found
    - configuration file: Not found

  javascript-standard (disabled)
    - predicate:  t
    - executable: Not found

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

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

Flycheck version: 30snapshot (package: 20160928.649)
Emacs version:    25.1.1
System:           x86_64-unknown-linux-gnu
Window system:    x

I am using arch linux. Emacs is 25.1.1. flycheck-version says 30snapshot (package: 20160928.649).

Thanks in advance.

Most helpful comment

All 3 comments

(Note to ourselves: we should update C-c ! v to include the result of :enabled, I think)

That was the issue, indeed. Closing because it seems to already be reported. Thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

choma picture choma  路  7Comments

lunaryorn picture lunaryorn  路  4Comments

chrisdone picture chrisdone  路  4Comments

DanPallas picture DanPallas  路  4Comments

ghost picture ghost  路  4Comments