Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RenWenshan opened this issue Sep 11, 2018 · 5 comments
Open

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

RenWenshan opened this issue Sep 11, 2018 · 5 comments

Comments

@RenWenshan
Copy link

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 RenWenshan changed the title flycheck flycheck: javascript-flow is not a valid syntax checker Sep 11, 2018
@an-sh
Copy link
Owner

an-sh commented Sep 11, 2018

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

@RenWenshan
Copy link
Author

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

@olessavluk
Copy link

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

(require 'flycheck-flow)
...

@sgrove
Copy link

sgrove commented May 7, 2019

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

@olessavluk
Copy link

olessavluk commented May 7, 2019

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants