an-sh / flow-minor-mode

Emacs minor mode for editing flowtype files.
BSD 3-Clause "New" or "Revised" License
47 stars 16 forks source link

flycheck: javascript-flow is not a valid syntax checker #20

Open RenWenshan opened 6 years ago

RenWenshan commented 6 years ago

Got:

flycheck-add-mode: javascript-flow is not a valid syntax checker File mode specification error: (error javascript-flow is not a valid syntax checker)

My configuration:

 (require 'flow-minor-mode)
 (add-hook 'js-mode-hook 'flow-minor-enable-automatically)
  (add-hook 'js2-mode-hook 'flow-minor-enable-automatically)

  (with-eval-after-load 'flycheck
    (flycheck-add-mode 'javascript-flow 'flow-minor-mode)
    (flycheck-add-mode 'javascript-eslint 'flow-minor-mode)
    (flycheck-add-next-checker 'javascript-flow 'javascript-eslint))

Environment: Spacemacs 0.300.0@26.1 on MacOS

an-sh commented 6 years ago

this is a problem with javascript-flow, which should be installed separately and is not a part of this minor mode

RenWenshan commented 6 years ago

@an-sh thanks for your reply. May I know where I can find javascript-flow (I assume it's an emacs plugin)?

olessavluk commented 5 years ago

@RenWenshan you need to install and then require it before using

(require 'flycheck-flow)
...
sgrove commented 5 years ago

@olessavluk The question is, where can we find the javascript-flow package? Is there a melpa package, or a git repo somewhere?

olessavluk commented 5 years ago

@sgrove yes, it is available on MELPA, but under different name flycheck-flow

Here is configuration that I use for Flow, hope it helps.