sogaiu / flycheck-janet

2 stars 0 forks source link
emacs flycheck janet lint

flycheck-janet

This package integrates janet's built-in linter (janet -k) with Emacs via flycheck.

Setup

Ensure janet is installed and on your PATH. Probably it makes sense if janet-mode or janet-ts-mode have been setup as well.

If you don't already have some flycheck stuff setup, you might also want to have a call to global-flycheck-mode somewhere appropriate in your .emacs equivalent.

Verify Operation

  1. Open / create a .janet file with an error in it like:

    (def a
  2. Assuming janet-mode or janet-ts-mode are active, M-x flycheck-list-errors should bring up a buffer showing an error, but there should also be visual evidence in the buffer with Janet code indicating a problem.

Troubleshooting

If there are no errors displayed, one option that might help is to check out the troubleshooting section of the flycheck docs.

If the common issues section doesn't help, possibly one or both of the following two commands (mentioned later in flycheck's docs) might help in diagnosing the situation:

Credits