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
14
votes
1answer
4k 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 ...
9
votes
2answers
2k 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 ...
6
votes
2answers
3k 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 '...
5
votes
1answer
1k 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"...
3
votes
1answer
2k 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-...
8
votes
2answers
814 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:...
21
votes
6answers
4k 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 ...
11
votes
2answers
987 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 ...
4
votes
2answers
4k 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 ...
6
votes
1answer
705 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 ...
3
votes
2answers
211 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 ...
2
votes
1answer
108 views

Have flycheck skip certain regions

I'm using flycheck to check my .tex sources but find that the syntax checking is too comprehensive. In particular, I'm interested in skipping syntax checking of certain environments such as code ...
2
votes
2answers
1k 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? ...
1
vote
1answer
335 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 ...
6
votes
1answer
787 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 --- ...
4
votes
1answer
72 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-...
3
votes
1answer
2k 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? ...
2
votes
1answer
2k 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 ...
2
votes
1answer
669 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 ...
2
votes
1answer
220 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 ...
2
votes
1answer
230 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 ...
1
vote
1answer
435 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 ...
1
vote
2answers
29 views

How to disable stack with flycheck for Haskell?

I'm on nixos and due to stack's integration with Nix/Nixos the following command is very slow: time stack ghc ghc: no input files Usage: For basic information, try the `--help' option. stack ghc 1....
1
vote
1answer
476 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 ...
1
vote
1answer
200 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 ...
1
vote
1answer
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 ...
0
votes
2answers
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 ...