Giter VIP home page Giter VIP logo

flycheck-janet's Introduction

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.

  • Manual

    • Clone this repository. For the sake of concrete exposition, suppose the result ends up living under ~/src/flycheck-janet.

    • Add the following to your init.el (or .emacs-equivalent):

      (add-to-list 'load-path
                   (expand-file-name "~/src/flycheck-janet"))
      (require 'flycheck-janet)
  • Elpaca - add something like the following to your .emacs equivalent:

    (use-package flycheck-janet
      :elpaca (:host github
               :repo "sogaiu/flycheck-janet"
               :files ("*.el")))
  • Straight.el - add something like the following to your .emacs equivalent:

    (use-package
      :straight (:type git
                 :host github
                 :repo "sogaiu/flycheck-janet"
                 :files ("*.el")))

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:

  • M-x flycheck-verify-setup
  • M-x flycheck-compile

Credits

  • dleslie - straight.el setup info

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.