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
1
vote
1 answer

Exclude files from auto-rebuilding meteor

I'm building an app in Meteor, and am a big fan the auto-rebuild action, that listens to any file change, rebuilds the app and refreshes my browser. However, I recently started to use flycheck with eslint and flycheck creates a temporary files…
Rúnar Berg
  • 4,229
  • 1
  • 22
  • 38
1
vote
1 answer

Why does emacs show these warnings and errors?

I am trying to make the switch to Emacs from VIM but I am having trouble getting the syntax checkers to work for a small C project. I have tried both Flymake and Flycheck as syntax checkers and both show a non-existent compiler error. I currently…
Jordan Camp
  • 842
  • 4
  • 9
  • 20
1
vote
1 answer

How do I limit the number of errors reported by flycheck

When editing a large file, flycheck-mode often takes 3-4 seconds to complete if an error "spills" over into the rest of the source file such that lots of lines are tagged with an error. How do I limit the number of errors that the mode highlights…
malthe
  • 1,237
  • 13
  • 25
1
vote
1 answer

emacs flycheck syntax checher for cpp file

I am using Emacs 24.3.1 to edit a .cpp file and when I activate M-x flycheck-mode, it shows the state being (C++/l FlyC- Abbrev), where FlyC- means it did not find a suitable syntax checker. I can't see anything looking like a C++ checher in the…
719016
  • 9,922
  • 20
  • 85
  • 158
0
votes
1 answer

how do linters (flycheck) work with compile_commands file?

How does flycheck or any other linter that uses compile_commands.json find the sources of the standard library? How do they determine the language standard? By the standard flag specified for clang or otherwise? Can I just change this flag in…
0
votes
1 answer

Upgraded emacs to 28.2, flycheck fails: undefined elisp macros

I just upgraded to emacs 28.2 and my flycheck stopped working. When it loaded it got an error File mode specification error: (void-function -doto) I found -doto in elpa/dash, which was installed when flycheck was upgraded. It does not get loaded…
russell
  • 660
  • 1
  • 10
  • 18
0
votes
1 answer

emacs flycheck (bash with shellcheck) throws error when using optional characters

I was trying to improve a function definition using flycheck (shellcheck). The commented line on the code below is what I tried to improve. The code works but I get the error message syntax error near unexpected token ('` my_loop() { # for ifastq in…
user25482
  • 23
  • 1
  • 3
0
votes
1 answer

Mypy Flycheck Clears Errors On Unsaved File

I am currently trying to port over my python enviornment to Doom Emacs from VSCode. One of the major features I want is type checking from MyPy. Doom Emacs' flycheck comes with MyPy as an option by default so I was going to use that. My major issue…
0
votes
0 answers

Spacemacs on Windows open python file shows suspicious state from sytax checker python-pycompile

When I open a python file in my spacemacs, there is a warning message: Syspicious state from syntax checker python-pycompile: Flycheck checker python-pycompile returned 49, but its output contained no errors: Python was not found; run without…
user3153765
  • 373
  • 4
  • 14
0
votes
1 answer

Calling (require ...) on a MELPA installed package gives FlyCheck error "Cannot open load file"

I want to require some packages installed through MELPA so that i can access their variables and functions without getting "free variable" or "undefined function" warnings. However, when I try to load a package it isn't found by Flycheck and i get a…
cidra
  • 374
  • 1
  • 4
  • 16
0
votes
1 answer

How can flycheck give warning if the object's function does not exist?

I am using lsp for Python. I was wondering for an object's function, if there is no definition for it, can lsp give an error/warning or underline using flycheck or jedi? I know this is challenging I just wonder that's possible or not. example…
alper
  • 2,919
  • 9
  • 53
  • 102
0
votes
1 answer

Emacs flycheck package installation

I try to use the flycheck package which I installed through the package-list. Following advices from here I added this line to my .emacs: (require 'flycheck) Now I get the following error when starting emacs: Warning (initialization): An error…
Zach
  • 600
  • 5
  • 16
0
votes
2 answers

flycheck-irony installation on emacs

This is GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.8) of 2019-09-29 flycheck-irony.el:38:1:Error: Symbol's function definition is void: rx-submatch-n
zhyd1997
  • 145
  • 3
  • 15
0
votes
1 answer

Flycheck reports "Cannot open load file" despite proper "load-path" list

In my ~/.emacs.d/init.el, I have just three lines: (push (expand-file-name "lisp" user-emacs-directory) load-path) (require 'init-vars) (provide 'init) In my ~/.emacs.d/lisp/init-vars.el, I have below three lines: (require 'dired) (setq…
Pankaj Jangid
  • 524
  • 3
  • 18
0
votes
1 answer

Typescript exclude not working with baseUrl

I am trying to exclude some files from my typescript compilation because my editor writes temporary files that are causing extraneous recompiles when making changes. I have in my tsconfig.json: "exclude": ["*flycheck*", "**/*flycheck*"] I am using…
sliptype
  • 2,804
  • 1
  • 15
  • 26