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.

2
votes
1answer
27 views

Can flymake or flycheck mark in dired (or in buffer lists) files with errors?

It would be nice if, in addition to flymake/flycheck marking errors in particular files, they could somehow mark files with errors in dired (or maybe just in the open-buffers list). The goal would be ...
0
votes
1answer
17 views

How to get flycheck to do a syntax check immediately after opening a file?

I can't get flycheck to do its thing immediately after opening a file. It will check/find errors if I save the file. And it will check/find errors if I execute the M-x flycheck-mode command twice (i.e....
0
votes
0answers
17 views

How to color flycheck's mode line text

I have this, but it doesn't color anything: https://github.com/skrat/dots/blob/master/emacs/.emacs#L177 https://github.com/skrat/dots/blob/master/emacs/.emacs#L357-L362
1
vote
1answer
60 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 ...
1
vote
1answer
28 views

flycheck “function is not known to be defined” warning after conditional definition

I was running into a flycheck warning about a function which may not be defined. Since the function is a small optional dependency, I am inlining it in case the package that provides cannot be loaded....
0
votes
2answers
204 views

enabling additional flycheck-checker for spacemacs html layer

I can't seem to enable the scss-stylelint checker for scss-mode. flycheck-verify-setup gives me this: Syntax checkers for buffer _typography.scss in scss-mode: scss-lint (disabled) - may ...
0
votes
1answer
84 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 ...
0
votes
0answers
20 views

Alarmbell on saving .py file if linting errors using flake8

I'd like to configure Emacs to play an audible noise when saving my .py files but only if there is a linting error present. I currently have flycheck linting done on the fly and autopep8 settings ...
0
votes
1answer
76 views

How to prevent “the function ‘->’ is not known to be defined.” warning

How do I prevent flycheck from triggering a warning for the following code: (defun file-path-last-segment () "Get last segment of file path for use in snippets." (-> default-directory (...
3
votes
1answer
51 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-...
0
votes
0answers
71 views

Cannot change flycheck-python-pylint-executable

I have been trying to make flycheck use python 3 syntax similar to this question and ended up having more fundamental questions. I open a python file and flycheck correctly works, using the python 2 ...
1
vote
1answer
85 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 ...
0
votes
1answer
58 views

Evaluating conditional expression in flycheck syntax checker command

I'd like the :command of a flycheck checker to depend on the file extension of the input. For example: for .tex files run the command foo --format latex file.tex for any other file extension run the ...
0
votes
1answer
258 views

Configuring Flycheck to use a local ESLint

I was trying to get emacs to point to a version of eslint that isn't installed globally (but located in the node_modules of the directory one level up), so I followed this: Flycheck with file relative ...
1
vote
1answer
64 views

set js-indent-level from .eslintrc?

when I edit javascript, I'm usually actually editing someone else's code. Is there a way to dynamically set the value of js-indent-level from a .eslintrc file?
2
votes
0answers
254 views

Flycheck cannot use this syntax checker for this buffer

I use spacemacs and while in Python mode, flycheck can not use flake8 checker even when I try to manually enable it using flycheck-disable-checker. I get the following output from flycheck-verify-...
0
votes
1answer
88 views

flycheck don't run in emacs-lisp-mode

In emacs-lisp-mode, flycheck cannot run. If execute M-x flycheck-select-checker RET emacs-lisp RET, Emacs tells message below: Syntax checker in buffer example.el in emacs-lisp-mode: emacs-lisp (...
1
vote
0answers
46 views

Flycheck Python introspection into modules?

I have flycheck working seemingly as advertised with Python on Emacs 25.2.1. The configuration check shows all dependencies are satisfied and enabled. It does handle introspection within the same ...
2
votes
0answers
72 views

Flycheck Emacs Lisp in Org-mode babel source blocks

I want to have Flycheck syntax checking when I am editing Emacs Lisp code in a literal Org-mode file using babel SRC blocks. (Using Org's editing buffers with C-c '). However the flycheck-emacs-lisp ...
0
votes
0answers
58 views

Flycheck false-positive on ES6 import statement

In my JavaScript code I have the following statements: import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; Both strings 'react' and 'react-native' are highlighted by ...
0
votes
1answer
95 views

flycheck tslint reports no-implicit-dependencies for everything

I'm editing TypeScript using Tide, successfully, except that it complains about every single import statement. For example: import { GraphQLSchema } from 'graphql'; I see an error in the minibuffer:...
1
vote
2answers
48 views

`ibuffer-switch-to-saved-filter-groups' is not known to be defined

I have this line in my .emacs file. (add-hook 'ibuffer-mode-hook #'(lambda () (ibuffer-switch-to-saved-filter-groups "default"))) The settings work fine for me. But flycheck ...
0
votes
1answer
1k 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 ...
3
votes
2answers
582 views

Getting MyPy Working in Spacemacs

I'm struggling to get type checking working in spacemacs, and I would appreciate any help. I've installed MyPy properly on my system (I can run it from terminal) and added python-mypy to dotspacemacs-...
0
votes
1answer
349 views

Set flycheck-compile command

How do I set flycheck-compile to run go-build on save? I can't find documentation on how to run flycheck-compile with go-build on save.
1
vote
1answer
20 views

How can I remove the --shell option in the definition of flycheck-define-checker sh-shellcheck?

Obviously, I could go in and edit the appropriate line in flycheck.el, or copy the function to my init.et and modify it, but then I would be out of sync with any changes in updates to flycheck. I'd ...
3
votes
1answer
1k 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-...
1
vote
1answer
355 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
3answers
413 views

Utilizing proselint in org-mode

I have been writing lots of text in Org-mode and would like to lint the text before exporting it. I have flycheck and proselint installed. Is it possible to get proselint to run in org-mode? I tried ...
1
vote
1answer
116 views

flycheck on Windows, python-pycompile: “output contained no errors”

I'm running a hand-built recent trunk build of emacs on Windows. I have flycheck set up, and flycheck-verify-setup in a python-mode buffer shows it's enabled and OK: Syntax checkers for buffer foo.py ...
1
vote
1answer
261 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 ...
0
votes
1answer
232 views

Disable highlighting “info” warnings on flycheck

I'm using flycheck with pylint3 (emacs 24.5) and it creates lots of "info" errors (for things like violating whitespace and capitalization conventions). I know I can disable them on a per-error basis ...
1
vote
1answer
63 views

How can I use Flycheck on Perl code that installs its dependencies with Carton?

Perl module dependency manager Carton installs dependencies into a subdirectory of the project directory, and expects perl to be run under carton exec to set the necessary environment variables to ...
1
vote
1answer
454 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 ...
0
votes
1answer
430 views

Recent problems with Haskell mode

I just downloaded a fresh installation of the Haskell platform on Mac El Capitàn: brew cask install haskell-platform and a fresh installation of the Haskell layer for spacemacs: dotspacemacs-...
0
votes
2answers
96 views

Adding global variable on flycheck

I tried to add this to my eslint global variable "globals": { "document": false, "navigator": false, "window": false, "rndr": false, "shrd": false, "path": true, "$": ...
0
votes
0answers
80 views

Emacs and JSlint

Is there a way to make Emacs flycheck run JSlint (not flymake, not JShint, and not eslint) on the current file?
0
votes
0answers
807 views

Use pylint3 for checking Python 3 code using flycheck

By default, flycheck uses pylint for checking python code. However, the pylint program on Debian/Ubuntu is for checking Python 2, not Python3 (there is instead pylint3 for Python3). How do I ...
1
vote
0answers
42 views

Parsing non-standard C with gtags

I'm working with a codebase that's meant to be built with a proprietary C compiler using tons of esoteric language extensions. Ideally, I'd like to stick to my chosen environment as much as possible, ...
1
vote
1answer
193 views

trouble with flycheck-gcc-language-standard variable

I am attempting to use Directory-Variables in order to set the flycheck-gcc-language-standard variable. I used: M-x add-dir-local-variable RET c++-mode RET flycheck-gcc-language-standard RET "c++11" ...
0
votes
2answers
189 views

How can I set my Flycheck Perl include path?

I am using Flycheck using use-package like so: (use-package flycheck :ensure t :init (global-flycheck-mode)) I followed https://randstructure.wordpress.com/2015/06/21/using-emacs-flycheck-with-...
2
votes
1answer
434 views

How to change flycheck symbol?, like spacemacs

Flycheck has a symbol that tells in which line an error or warning have been encountered. I have seen spacemacs has its flycheck symbol changed. Default symbol is a double arrow; while spacemacs's ...
0
votes
1answer
30 views

How to get the error id of a given line in flycheck?

I would like a function to return the flycheck error id for the piece of code my cursor is over. Pylint is my main interest.
1
vote
1answer
59 views

Flycheck-Haskell - “Opening Directory” “Not a directory”

I'm trying to get flycheck working in Haskell, however, when I try to do anything to do with flycheck, even running stuff like flycheck-verify-setup, I get an error "Not a directory". Does anyone ...
3
votes
1answer
488 views

Flycheck gives errors, when I use shellcheck as linter for bash scripts

I use GNU Emacs 26.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2017-06-09, and Shellcheck 0.3.7 als linter for bash scripts (https://www.shellcheck.net). When I open a bash script, I ...
1
vote
0answers
21 views

Emacs momentarily stalling with Flycheck

I am using the GUI version of Emacs. I have noticed that while editing text, mainly in js2-mode with Flycheck enabled, the editor frequently stalls. Is there a way to prevent this from happening or ...
1
vote
0answers
283 views

trouble installing flycheck

Hi I am new to emacs and am having trouble installing flycheck. I have modified my ~/.emacs.d/init.el file to: (require 'package) (add-to-list 'package-archives '("MELPA Stable" . "...
1
vote
0answers
165 views

Flycheck stopped checking after the installation of rtags and cmake-ide

First I had flycheck and it worked just fine for my C projects. At the time, I was having a problem with my init file. I even posted about it. I was using an org file as my config file (using org-...
1
vote
0answers
101 views

Structures are defined using a macro, flycheck gives errors

In our source code we surround structures with a macro (MKDIFF) that serves as a flag for the Makefile system. It does not expand into anything, just a flag. Flycheck (understandably) flags these ...
2
votes
0answers
201 views

Flycheck c/c++-clang check linux kernel headers

Currently I am working with the linux kernel, but I am struggling trying to check my syntax using flycheck, I already added the path of the headers in the clang-path but it is not enough. Does any of ...