Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [flycheck]

Flycheck is an on-the-fly syntax checking package for GNU Emacs 24, with in-buffer error highlighting, automatic background checking, a dynamic error list, and built-in support for over 40 programming and markup languages.

Filter by
Sorted by
Tagged with
8 votes
1 answer
2k views

Flycheck could not find file under load-path

I have some elips *.el file in my ~/.emacs.d/gman/ folder, e.g. smart-inputp-methods.el. This folder is added to my load path at the beginning of .emacs file: (add-to-list 'load-path "~/.emacs.d/gman"...
Geradlus_RU's user avatar
10 votes
2 answers
4k views

How can I prevent flycheck-mode from checking certain files?

I've configured Emacs to open files named *.cfg in shell-script-mode. These are config files, of course, rather than shell scripts, but 90% of the time it does what I want (mainly, good guesses about ...
Saint Aardvark the Carpeted's user avatar
6 votes
1 answer
3k views

flycheck cannot find module for pylint

I have installed flycheck and pylint and want to use pylint for python mode, but when selecting syntax checker with flycheck I get this: python-pylint (disabled) - major mode: `python-...
Lars Kakavandi-Nielsen's user avatar
21 votes
1 answer
7k views

suppress warning: assignment to free variable (and others)

How can I suppress the "assignment to free variable" warning when byte compiling an emacs lisp file? I'm actually mostly interested in suppressing it for a specific buffer when using flycheck, but I ...
fommil's user avatar
  • 1,800
13 votes
2 answers
7k views

Disable Minor Mode in Major Mode

I am trying to disable a minor mode (flycheck) for the latex major mode. This is what I have so far. (defun disable-flycheck-in-tex-src-block () (flycheck-mode -1)) (add-hook 'latex-mode-hook '...
bkmoney's user avatar
  • 323
11 votes
1 answer
2k views

How to turn off `emacs-lisp-checkdoc` of flycheck when edit source block in org-mode file?

I have a emacs-lisp block in org-mode and when I try to edit it by press C-c ', flycheck always report errors as below: 0 warning The first line should be of the form: ";;; package --- ...
Enze Chi's user avatar
  • 1,470
8 votes
2 answers
1k views

'Symbol's value as variable is void' in callback from url-retrieve

When executing the following I get an error: (defun caller (func) (url-retrieve "http://m0smith.freeshell.org/" (lambda (status) (funcall func)))) (caller (lambda() (message "called"))) Result:...
M Smith's user avatar
  • 279
25 votes
6 answers
5k views

Flycheck with file relative eslint executable

A lot of projects I work on install eslint as a dev dependency, with a custom set of eslint plugins. Right now, flycheck uses the globally installed version of eslint rather than the version of eslint ...
pcardune's user avatar
  • 353
10 votes
2 answers
2k views

disable specific warning in flycheck (specifically "#pragma once in main file")

I'm using flycheck for C++ development, and get the following warning: #pragma once in main file In all headers included in a main file. Searching the webs, I get the impression this has something ...
Spacemoose's user avatar
9 votes
1 answer
1k views

Getting flycheck "jump to next/previous error" to cycle

I'd like M-g n and M-g p to cycle, at least when I'm using them with flycheck. This feature requires writing a custom function as it's not supported (as mentioned on https://github.com/flycheck/...
Blaisorblade's user avatar
8 votes
1 answer
2k views

Make flycheck's "reference to free variable" work with macros

The use-package is a useful and popular macro for installing packages, but flycheck always complains about it since it hides variable definitions. For example, if I attempt (use-package org), Flycheck ...
Matthew Piziak's user avatar
5 votes
1 answer
4k views

Add include paths to flycheck and to company-irony?

I am starting to develop a ROS (Robot Operating System) application for the first time using Emacs. Here is my ~/.emacs.d/init.el configuration for Flycheck and company packages: ;;;;;;;;;;;;;;;;;;;;;...
space_voyager's user avatar
5 votes
1 answer
229 views

(RegEx-)Replace: Sporadic Match data clobbered by buffer modification hooks

I know this was asked in other contexts already, but I couldn't find anything related to C++ development with my hooks that could help me. I am working a lot with replace and query-replace and query-...
AltruisticDelay's user avatar
5 votes
1 answer
2k views

Flycheck: change color / thickness of underline

Using Flycheck, I get a green thin jagged underline line for style-guide violations, and a red thin jagged underline for syntax errors (see below). Is it possible to change the thickness or the color ...
WickedJargon's user avatar
5 votes
4 answers
4k views

Error: No word lists can be found for the language "en_US"

I am using GNU Emacs 26.1 on macOS Catalina. When I try to enable ispell or flycheck-mode I am getting following error: No word lists can be found for the language "en_US". => How could I fix this ...
alper's user avatar
  • 1,390
4 votes
1 answer
2k views

Warning (flycheck): Syntax checker javascript-eslint reported too many errors (494) and is disable

I switched to a new linter and on big files it causes flycheck to disable because it reports too many errors. I don't believe this is an issue with the linter as when I check the output in the ...
user2522280's user avatar
4 votes
2 answers
5k views

Starting a virtualenv for emacs to use

I am starting a Python virtualenv through init.el (or so I would like): (require 'virtualenvwrapper) (venv-workon "my-python-project") However, flycheck does not find flake8 or pylint, which are ...
dmvianna's user avatar
  • 392
4 votes
1 answer
4k views

Is there a way in Flycheck flake8 mode to ignore a specific warning?

As we all know sometimes it's OK to break the rules. Flycheck Mode however, isn't as forgiving and happily displays it's warning. Is there a way to disable this on a per line basis when using flake8? ...
Bagee's user avatar
  • 123
3 votes
1 answer
5k views

flycheck cannot enable python-flake8 configuration file not found

I'm trying to set up flycheck to run flake8 on my python files. I'm using pipenv so I set up flycheck-python-flake8-executable for my buffer to point to the virtual environment version of flake8 and ...
George Mauer's user avatar
3 votes
1 answer
834 views

Disable flycheck for LaTeX

I use emacs with AUCTeX for editing tex files. I also use flycheck for some other programming language. How to disable flycheck in TeX mode ? I tried called flycheck-mode nil in the latex hook but ...
Welgriv's user avatar
  • 67
3 votes
2 answers
2k views

Flycheck- check python module import

I was wondering how I can make Flycheck check the modules imported in a python file - to check if function used from a module is correct or not. Is there another mode which is able to do that for me? ...
Milap's user avatar
  • 163
3 votes
2 answers
326 views

Tell Flycheck about my global variables across multiple files?

I've just started to use Flycheck to improve the quality of my code, and I am grateful that it is helping me to do that by pointing out assignments to free variables, and by identifying possibly ...
Kevin's user avatar
  • 1,318
2 votes
2 answers
1k views

When using flycheck, how to permanently disable pylint?

I'm using Doom Emacs on macOS, if it matters. Essentially, I'd like to disable the pylint checker entirely when editing Python files. I don't use pylint, and I don't have it installed in my Pyenv ...
James Cunningham's user avatar
2 votes
2 answers
1k views

How can I disable a specific lint error for Emacs Lisp using Flycheck?

In Python with flake8 we can do that with #noqa in the end of line. How the same can be done with Emacs Lisp? My ambition is to disable a particular lint error by just make a annotation with a ...
Manoel Vilela's user avatar
2 votes
1 answer
1k views

How tell web-mode to use tidy syntaxchecker in flycheck?

I have tidy in my setup. When I run HTML-mode as major mode in html file, I do flycheck-verify-setup and I get tidy as syntax checker. the executable is also found. When running web-mode as major ...
ReneFroger's user avatar
  • 3,880
2 votes
1 answer
381 views

flycheck wrapper function for bundler

I would like to make flycheck work with checkers installed via Bundler, and I've read that in order to do that, I have to implement the flycheck-command-wrapper-function. What it should do is prepend ...
asymmetric's user avatar
1 vote
1 answer
861 views

flycheck cannot find python-pylint on macOS

I have installed pylint with: pip install pylint and it is in the following path: $HOME/miniconda2/bin and I have add the following to my .bash_profile: export PATH="$HOME/miniconda2/bin:$PATH" But ...
Lars Kakavandi-Nielsen's user avatar
1 vote
1 answer
580 views

Disabling/ignoring GCC/Clang error in Flycheck

There is already a question on this but it's unanswered. I'm writing a C++ header file that requires libxml, as seen below #include <libxml2/libxml/xpath.h> However Flycheck sees this as an ...
user avatar
1 vote
1 answer
680 views

Flycheck variable warnings despite flycheck load-path

I'm trying to get Flycheck to load files containing declarations to resolve warnings to free variables etc. But Flycheck is not picking up the (required files. I use (require 'my-dcls) at the top of ...
Kevin's user avatar
  • 1,318
0 votes
2 answers
2k views

js2-mode with flycheck and jshint

(require 'flycheck) (add-hook 'js2-mode-hook (lambda () (flycheck-mode t))) Used this, to setup flycheck for javascript development. However, i noticed config changes in .jshintrc is not ...
Saravana's user avatar
  • 2,071
0 votes
1 answer
955 views

How to disable specific flycheck-warning messages in LaTeX-mode?

Currenty I am on LaTeX-mode-hook using flycheck. (setq LaTeX-item-indent 0) (add-hook 'LaTeX-mode-hook 'turn-on-auto-fill) (add-hook 'LaTeX-mode-hook 'hl-todo-mode) (require 'tex) (add-hook 'LaTeX-...
alper's user avatar
  • 1,390