Questions tagged [flycheck]

Flycheck is a on-the-fly syntax checking extension for GNU Emacs 24, which applies various syntax checking and linting tools to the buffer contents and highlights errors and warnings in the buffer window.

Flycheck is an on-the-fly syntax checking extension for GNU Emacs 24. It has built-in support for many programming languages, including C/C++, Coffeescript, Haskell, Javascript, PHP, Python, Ruby, LaTeX, Shell scripts, and many more, and can easily be extended with new syntax checkers.

It is available via ELPA from the popular MELPA and Marmalade archives.

For more information please consult the online manual.

77 questions
2
votes
1 answer

Set Flycheck enable for other mode

Currently, my emacs's flycheck is enabled for js as default. I'm using global-flycheck-mode but not sure if I have set its value as a list. I wonder how to enable flycheck for other modes like json-mode, web-mode, c++mode. Here is my settings for…
ztlevi
  • 91
  • 1
  • 6
2
votes
0 answers

Flycheck eslint with Emacs

I'm very new to Emacs and have been searching all day to add eslint to Flycheck. When I run C-c !-v in a React project: javascript-eslint - major mode: `help-mode' not supported - may enable: Automatically disabled! - executable: …
anon
  • 2,143
  • 3
  • 25
  • 37
2
votes
0 answers

Flycheck Autocorrect errors

Hello Community I am using Spacemacs and I love it. It is working great for me all his features and the way all the layers are organized is amazing. Right now I am working with typescript but this question is common for any language. I correctly…
Alejandro Serret
  • 1,139
  • 15
  • 16
2
votes
1 answer

lintr error in ESS mode with Flycheck

I have met a problem about Flycheck in ESS mode(Emacs Speak Statistics). Whenever I open a R file, an error occurs, that is, "Suspicious state from syntax checker r-lintr: Checker r-lintr returned non-zero exit code 1, but no errors from output:…
Bin Hao
  • 61
  • 7
2
votes
3 answers

Using flycheck/flymake on kernel source tree

Is there a easy/automated way to configure flycheck or flymake to show error annotations while writing on a file in the linux kernel source tree? Assuming I am working on fs/proc/cmdline.c I would like flycheck to go down two directories and do a…
Konrad Eisele
  • 3,088
  • 20
  • 35
2
votes
1 answer

flycheck cppcheck stop checking unusedStructMember

So I've recently begun using flycheck within emacs. Overall it's working great, but I've been having a small issue with flycheck using cppcheck in c++ mode. I'm getting a bunch of unusedStructMember warnings, likely due to not using that member…
David
  • 163
  • 6
2
votes
1 answer

Emacs flycheck C99 mode

I'm new to Emacs. How can I set the Flycheck package to use C standard 99 (C99 mode)? For the following code: for(int i = 0; i < n; i++) ... Flycheck will throw me: for loop initial declarations are only allowed in C99 mode.
Michael
  • 1,834
  • 2
  • 20
  • 33
1
vote
1 answer

Emacs: Gloabally disable flycheck/prettier temporarily

I often use rgrep to find files I need to change and then a macro to go through these files, do the change and save it. It's a very neat flow with one downside: I have prettier check each file on save and flycheck (using eslint) also goes absolutely…
user3637541
  • 675
  • 4
  • 15
1
vote
2 answers

How do I load the flask-sqlalchemy plugin for flycheck (pylint) on Emacs?

If I'm running pylint from the command line, I'd load the pylint_flask_sqlalchemy plugin by running: pylint --load-plugins pylint_flask_sqlalchemy app.py If I were running VScode, I would add a few lines to settings.json. But I'm running pylint…
Sam
  • 563
  • 5
  • 15
1
vote
1 answer

How to see what the red squiggly error marking indicates

I'm editing a markdown file and see a few red squigglies in my document. I have flycheck working with markdown-lint, and ispell doing some other work to detect typos, repeated words, etc. But I can't immediately figure out why certain words are…
Micah Elliott
  • 9,600
  • 5
  • 51
  • 54
1
vote
1 answer

How to get Flycheck (using clang_complete) to recognize the OpenGL framework on Mojave

I'm trying to get Flycheck to correctly see where OpenGL is on my Mac, but it can't seem to find it. I've tried adding the following lines to my .clang_complete file, but nothing seems to work. I keep getting the error OpenGL/gl.h could not be…
iHowell
  • 2,263
  • 1
  • 25
  • 49
1
vote
1 answer

Install Flycheck on spacemacs

Following this guide to configure Spacemacs as a C++ IDE, I am facing an issue when installing Flycheck. I have followed the instructions explained here but after adding the syntax-checking instruction under dotspacemacs-configuration-layers, I…
pp492
  • 511
  • 1
  • 3
  • 12
1
vote
1 answer

display flycheck buffer automatically when there are errors

I'd like for the flycheck buffer to be automatically displayed when there are (flycheck detected) errors in the buffer I'm currently editing. My assumption is that this would best be done by checking that (flycheck-current-errors) returns true. Does…
Rob H
  • 1,676
  • 10
  • 18
1
vote
0 answers

Error removing temp files in jdee_flycheck

I'm triyg to configure a project with projectile, Jdee and flycheck. I have customized flycheck-check-syntax-automatically to just check the buffer when it is saved. But when I save, this error is showed: error in process filter: Removing directory:…
flushaaas
  • 159
  • 1
  • 1
  • 8
1
vote
1 answer

Flycheck installation: M-x package-install [No match]

I'm relatively new to Emacs (and Linux for that matter). I'm trying to install flycheck. Following the installation instructions, I added (require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/")…
yroc
  • 886
  • 1
  • 10
  • 16