A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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.

40 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
0answers
111 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 ...
3
votes
0answers
1k views

flycheck eslint for javascript

I'm trying to setup a lint for javascript files. Here's the relevant setup I have. (use-package js2-mode :ensure t :init (progn (add-to-list 'auto-mode-alist '("\\.js?\\'" . js2-jsx-...
2
votes
1answer
258 views

Flycheck r-lintr doesn't find anything

I want to use lintr to check R-files in emacs. According to https://github.com/jimhester/lintr#emacs lintr is fully integrated into flycheck when using ESS. See the installalation documentation ...
2
votes
0answers
402 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-...
2
votes
0answers
231 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 ...
2
votes
0answers
193 views

What options are out there for quick-fix type functionality in emacs?

When using flycheck or flymake, it would be nice to have quick fix functionality which gives suggested fixes and automatically applies them when selected like most IDE's provide. So far the only ...
2
votes
0answers
89 views

How to get HideShow to indicate Flycheck Errors/Warnings inside a folded region?

When a portion of code is folded, error and warning indicators from Flycheck relative to this portion are not shown. How can I get Flycheck or HideShow to indicate that a folded portion of code ...
1
vote
0answers
56 views

How to add a syntax checker to a major mode for flycheck?

I have the following flycheck setup in my init.el (use-package flycheck :after web-mode :config (global-flycheck-mode) (flycheck-add-mode 'javascript-eslint 'web-mode) :...
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
0answers
45 views

convert regular compilation-mode output to inline view

It would be nice to show the info, warnings and errors from a regular compilation-mode buffer inline in the source code. I checked to see if flycheck supports this but it appears no. Writing a custom ...
1
vote
1answer
90 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?
1
vote
0answers
56 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 ...
1
vote
1answer
75 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
0answers
48 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
230 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" ...
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
381 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
182 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
115 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 ...
1
vote
0answers
111 views

How to disable Flycheck when editing in sudo?

Sometimes I want to edit a file in Emacs as root. So I found this useful function: (defun sudo-edit (&optional arg) "Edit currently visited file as root. With a prefix ARG prompt for a file to ...
1
vote
0answers
294 views

proselint and message-mode

I have proselint setup like here, i.e.: (flycheck-define-checker proselint "A linter for prose." :command ("proselint" source-inplace) :error-patterns ((warning line-start (file-name) ":" ...
0
votes
0answers
7 views

Unable to make `solidity-flycheck-solc` work

I am unable to make solidity-flycheck-solc work. I am not sure what I am doing wrong. solidity-mode works where the font color changes. But flycheck does not work like it does on python files. In ...
0
votes
0answers
38 views

Default directory for flycheck in .dir-locals.el

I am using flycheck with some python linters (python-flake8 and python-mypy) and I would like to modify the directory from which these linters are run by flycheck. My directory structure is as ...
0
votes
0answers
55 views

Flycheck: Suspicious state from syntax checker go-vet

When I import native package into native test file. package tests import ( ... "github.com/myGithubProjectRootPath/internal/platform/web" ) ... It report a import package path not allowed ...
0
votes
0answers
36 views

ESLint rule not applying

Below is my .eslintrc.json and I see the same option when I do eslint --print-config app.js But emacs adding semicolon on save even though I have "semi": 0 { "parserOptions": { "ecmaVersion": ...
0
votes
0answers
96 views

interactively load Cabal packages within haskell-mode

I really like how I can interactively load packages and experiment at will in Common Lisp, and would like to get a similar workflow in Haskell. I've settled on Cabal (v3.0.0.0 - new command set by ...
0
votes
0answers
26 views

Python for set globals()[''] variables having undefined name warning message

I am using flycheck for for Python. For global files that I set using ( globals()['variable']), and later used, it gives the following warning message: undefined name <variable> [F821] Example: ...
0
votes
0answers
14 views

Can I get flycheck to ignore certain blocks of text?

I'm using Flycheck with some prose linters (proselint, vale) to lint my writing in org-mode. I'd like to set something up so that Flycheck doesn't check for usage or other errors within #+BEGIN_QUOTE ...
0
votes
0answers
56 views

How to debug multiple flycheck checkers?

My flycheck checkers don't get along well. To simplify things I've reduced the flycheck-checkers list to only go-build golangci-lint But even now behavior is weird: syntax errors only show up ...
0
votes
0answers
19 views

Disable Flycheck for different file extensions with the same mode

I use verilog-mode for both Verilog (extension .v) and System Verilog (extension .sv). I want to disable flycheck for .v files only. (Because they are typically multi-gigabyte netlists that take lots ...
0
votes
0answers
37 views

Opening a new empty buffer results in flycheck returning suspicious state error

When I open a new buffer with a .el extension, I get the following error message from flycheck: Suspicious state from syntax checker emacs-lisp: Flycheck checker emacs-lisp returned non-zero exit code ...
0
votes
1answer
45 views

Flycheck + shellcheck: always use new temporary frame, not modeline

I have been using both flycheck and shellcheck for just under a week under emacs 24.5.1. They work fine in principle. I have a question though regarding flycheck's choice to simply use the modeline ...
0
votes
0answers
68 views

Enable spell check with american dictionary for all buffers

I have an init file that loads two files: one from customization done from within emacs and other from my custom settings file - better-defaults.el. I have tried various options like ispell-local-...
0
votes
1answer
112 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
30 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
0
votes
0answers
32 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
0answers
115 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
959 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 ...
0
votes
0answers
977 views

Flycheck c/c++-gcc doesn't understand C++

I get the following when trying to check a header file; -*- mode: compilation; default-directory: "~/devel/projects/SHARED/" -*- Compilation started at Wed Feb 15 16:06:41 gcc -fshow-column -fno-...