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

Flycheck - Eslint: 'config file: missing or incorrect'

After following the installation instructions I received this error: javascript-eslint (disabled) - may enable: Automatically disabled! - executable: Found at /Users/ben/programming/...
2
votes
2answers
240 views

How to make flycheck checker 'ruby-rubocop' use 'bundle exec rubocop' as executable?

I want ruby-rubocop Flycheck syntax checker to execute bundle exec rubocop instead of just rubocop. What I've tried: (setq flycheck-ruby-rubocop-executable "bundle exec rubocop") Results in ...
0
votes
1answer
17 views

How do I set flycheck-markdown-mdl-rules

I'm trying to get FlyCheck to ignore a rule used by mdl for checking syntax for.md files. I'm not very lisp or emacs savvy, but I've added this code to my personal.el file. ;; Turn off mdl message [...
0
votes
0answers
15 views

flycheck, elpy and re-displaying corrected python code

I've had Flycheck installed for some time, using flake8. This has worked for some time. When I had errors in a *.py program, they were indicated with markers by flycheck, and after correcting them, ...
0
votes
0answers
12 views

Specifying location of Flow binary to Flycheck Flow checker

For reasons related to work, the Flow binary isn't available globally on my system and can only be found in a project repository's node_modules/.bin directory. It turns out that flycheck-flow checker ...
1
vote
1answer
88 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
273 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
0answers
15 views

How do I stop checkdoc from flagging header/footer in org-src-edit buffers?

When editing Emacs Lisp source blocks in org-mode via org-src-edit, if flycheck is enabled (which I'd like to keep that way) checkdoc rather annoyingly remarks that I'm missing headers and footers and ...
0
votes
1answer
77 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 ...
1
vote
1answer
126 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?
0
votes
0answers
60 views

Flycheck Trouble with Tramp and Python: “no module named /ssh:…/home/ubuntu/test.py”

Hi and thank You for helping! Overview I run a Linux Container (Guest) on my Machine (Host). On this guest I installed python3. Too, there I have a file "test.py". I edit this file via Emacs ...
0
votes
0answers
37 views

Doom Emacs: Flycheck cannot find header files in gtkmm-3.0

I am attempting to use gtkmm-3.0-dev in a small project. It uses meson as its build tool, and I use ninja to create a compilation database. However, regardless of any variables I set, Flycheck cannot ...
0
votes
2answers
49 views

flycheck cannot use gfortran, executable not found

Previously I had been able to use flycheck for fortran files, but something seems to have broken perhaps during an update. Mac OSX catalina (latest) gfortran 9.3.0 from homebrew emacs 26.3 from ...
0
votes
1answer
15 views

Re-enable flychecksyntax checker after reported too many errors

I recently ran into this error from flycheck: Warning (flycheck): Syntax checker csharp-omnisharp-codecheck reported too many errors (482) and is disabled. I saw this: Warning (flycheck): Syntax ...
0
votes
0answers
15 views

python: flake8 ignore __main__ scope in function's scope

I am getting following warning message for the following code: F821 undefined name 'variable'. // variable becomes color red. #!/usr/bin/env python3 def doo(): print(variable) # <= F821 ...
0
votes
0answers
14 views

noqa does not suppress the warning for pyflakes:imported but unused [PYF]

The error I am getting is pyflakes: 1 '_utils.colorer' imported but unused [PYF]. I was not getting this error but it started to emerger right after I enabled mypy3. Using # NOQA, # flake8: noqa did ...
0
votes
1answer
40 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-...
0
votes
1answer
229 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
1answer
39 views

flycheck how to silence certain errors or alternatively how to show warnings when errors are present

mac osx catalina (latest) emacs 26.3 from homebrew flycheck gfortran 9.3.0 I am trying to use flycheck to clean up and reorganize some code. Right now I would like to see some warnings to clean them ...
0
votes
0answers
22 views

Use two different Fortran standards in flycheck

I work a lot with Fortran, both with newer standards like f90/f95 (f90-mode in emacs) as well as the f77 standard (fortran-mode in emacs). I want to enable flycheck so it works with both standards (...
0
votes
0answers
68 views

Is there any way to supress or prevent python-mypy `Suspicious state` message

When I open an empty Python file I get following warning message in the minibuffer. I added following into my init file: (require 'flycheck-mypy) // Flycheck version: 32snapshot (package: 20200610....
0
votes
1answer
102 views

Problem with Flycheck and Python

I think that this is a newbie question, but here it goes: I have installed Flycheck just as in the official page. Therefore, in my .emacs file I added the following lines (after installing): (package-...
4
votes
1answer
118 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
27 views

How do I flycheck files go into a different directory?

Followings answer for: How do I control how Emacs makes backup files controls generated emacs backup files by redirecting them into antoher folder. It is annoying that all backup files go in the ...
1
vote
2answers
77 views

Why does flycheck open a new buffer for error messages?

So I am using flycheck for my C++ projects with this setup: ;; Require flycheck to be present (require 'flycheck) ;; Force flycheck to always use c++11 support. We use ;; the clang language backend ...
0
votes
0answers
39 views

Suppress a warning in lsp-mode using clangd

Here's an example of code for which I get a warning when using lsp-mode, with clangd: struct A { union { struct B { int i; } b; }; }; The warning appears with a flycheck mark on ...
0
votes
0answers
31 views

Flycheck and analysis at byte compile time

I have a trivial question related to annoyed Flycheck warnings. Why for such trivial code: (add-hook 'after-init-hook #'(lambda () (require 'server) (unless (...
0
votes
1answer
53 views

How to use concat to get the path in .dir-locals.el with flycheck-clang-include-path

I am using the following content to include headers to my project using .dir-locals.el ((c++-mode . ((flycheck-clang-language-standard . "c++14") (flycheck-clang-include-path "/Users/user/...
1
vote
0answers
37 views

Skip over remaining errors in current file to next error in next file

tl;dr I am using :cn in Evil's Ex command line and would like to use :cnf as well, but it is not there, and I don't know what function to bind it to. Details As a former Vim user who is slowly ...
0
votes
0answers
11 views

Make flycheck-color-mode-line active on buffer not active & emacs not focused

I installed flycheck (I usually used flymakes) as well as different other packages associated to it. One of them is flycheck-color-line-mode which change the color of the mode-line according to the ...
1
vote
0answers
38 views

flycheck & auctex: Hide an specific warning

When using Auctex with Flycheck (Chktex) I get hundreds of warnings of the kind some.tex 321 8 warning 3 You should enclose the previous parenthesis with `{}'. (tex-chktex) How I can disable ...
1
vote
1answer
589 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 ...
0
votes
1answer
51 views

How to enable python-pylint for the all files by default?

I can enable python-pylint for a opened Python file doing: M-x flycheck-select-checker and enter python-pylint It think it says C-c ! s to enable it on all Python files.(the message hides itself so ...
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-...
1
vote
0answers
95 views

Is this a normal behavior for *Flycheck error message*’s display?

The following is an example of how my flycheck errors show up on emacs: Method name &quot;createQATask&quot; doesn&#x27;t conform to &#x27;[a-z_][a-z0-9_]{2,30}$&#x27; pattern [...
0
votes
0answers
77 views

Using emacs for ruby development with asdf version manager

I have installed a (doom) emacs to start developing with Ruby. So far I have mainly used Sublime Text but because of reasons I want to give emacs a chance. I tried Spacemacs too but uninstalled this ...
1
vote
1answer
24 views

Why does Flycheck complain “mapcar called for effect” when my function returns the result of mapcar by design?

Since installing Flycheck I've been bombarded with complaints about the elisp functions I've used reliably for years. This is the first one I can't understand. Here my function is designed to return ...
2
votes
0answers
160 views

flycheck - elpy - flake8 - ein and .ipynb files

I have set up Emacs (on Mac Catalina) with Elpy to handle Python. I also managed to get Jupyter notebooks (.ipynb files) working with Elpy via Ein. Both .py and .ipynb compile and use Flycheck ...
0
votes
0answers
13 views

flycheck ruby-reek conf file not found

flychecks finds reek but ignores the .reek.yml file at the root of the project ruby-reek - major mode: `emacs-lisp-mode' not supported - may enable: yes - executable: ...
0
votes
0answers
39 views

I can't find the flycheck package

I am on MacOS and using Emacs 26.3 When I go to package-install in the minibuffer and type in flycheck, it autocompletes and adds a hyphen. I can't install just flycheck. Also when I go to list-...
4
votes
2answers
435 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 ...
1
vote
0answers
53 views

Unable to make `solidity-flycheck-solc` and solidity-flycheck-solium-checker-active 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
41 views

Flycheck unicode problem

Flycheck refuses to display certain characters. See image. Anyone any idea how to solve this? My emacs is running in a proper UTF-8 environment. Version is: GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ ...
1
vote
1answer
637 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 ...
2
votes
2answers
97 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
187 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) :...
0
votes
0answers
125 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
157 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 ...
3
votes
1answer
392 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
0answers
92 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": ...