flow-minor-mode icon indicating copy to clipboard operation
flow-minor-mode copied to clipboard

flycheck: javascript-flow is not a valid syntax checker

Open RenWenshan opened this issue 6 years ago • 5 comments

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 [email protected] on MacOS

RenWenshan avatar Sep 11 '18 05:09 RenWenshan

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

an-sh avatar Sep 11 '18 17:09 an-sh

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

RenWenshan avatar Sep 12 '18 01:09 RenWenshan

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

(require 'flycheck-flow)
...

olessavluk avatar Nov 11 '18 16:11 olessavluk

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

sgrove avatar May 07 '19 21:05 sgrove

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

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

olessavluk avatar May 07 '19 21:05 olessavluk