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
0 votes
1 answer
29 views

on the fly equivalency to concurrency

Is on the fly equivalent to concurrent? This is a simple question and although it might not standard quality, I ask it anyway.
user avatar
  • 135
0 votes
2 answers
38 views

Can emacs handle bash extglob case patterns properly?

This question is in two parts: How to cause emacs linter to recognize an extglob expression as an ability instead of a syntax error? How to cause emacs indenter to recognize an extglob expression as ...
user avatar
  • 143
1 vote
1 answer
20 views

general-create-definer and flycheck's "the function foo is not know to be defined"

In my init.el file, I use the package general and the following line (general-create-definer foo/leader-keys and then later (foo/leader-keys I use the package flycheck to lint the code in the init-...
user avatar
  • 111
0 votes
0 answers
39 views

How can I completely disable all flycheck checkers such as pylint that works on the background?

I want to disable memory hunger processes on the background, I believe it comes from flycheck. I have a 1GiB virtual machine where when pylint works on the background it consumes a lot of CPU, which ...
user avatar
  • 1,076
0 votes
0 answers
41 views

irony flycheck reports include files not found

I struggle configuring irony and flycheck. The problem that occurs is that the irony does not find the include files. For example, I have: #include <algorithm> Neither is algorithm proposed by ...
user avatar
  • 121
0 votes
0 answers
246 views

How to set up lsp + pyright to show all errors

I'm using recent nightly emacs in Linux/WSL2. I have lsp and lsp-ui, and am using pyright as the python LSP service. (pip install pyright). I like flycheck rather than flymake. I've been using lsp ...
user avatar
  • 406
0 votes
0 answers
50 views

pylsp.plugins.flake8_lint - Error while running flake8 '/home/alper/venv/lib/python3.8/site-packages is in the MYPYPATH. Please remove it

In the *pylsp::stderr* buffer I keep seeing followin message: 2022-03-08 13:26:17,063 UTC - WARNING - pydocstyle.utils - Error code passed is not a prefix of any known errors: W0603 2022-03-08 13:26:...
user avatar
  • 1,076
0 votes
1 answer
295 views

Completely disabling flycheck in Doom Emacs

I'm setting up Doom Emacs, and I want to remove flycheck entirely. I'm having a bit of trouble doing that, though. As an example, I'm working with Ruby, with this setup: (doom! :completion company ...
user avatar
  • 488
0 votes
0 answers
62 views

Why doesn't flycheck display any hadolint errors?

I have a Dockerfile with several errors or warnings, but emacs doesn't display any of them. This worked a good while (two years? maybe...) ago. flycheck-mode is active. I see the errors when I run ...
user avatar
0 votes
1 answer
92 views

How can I apply `noqa` in order to ignore warning messages when lsp-mode is enabled

I am trying to ignore flycheck warning messages, when lsp-mode for the python-mode is on. I have tried ["# noqa", "# NOQA", "# flake8: noqa", "# type: ignore"] ...
user avatar
  • 1,076
0 votes
0 answers
57 views

lsp-mode get project error report

My problem is similar to what has been described here. I also would like to know whether there is a way to show ALL errors within a (projectile) project in a flycheck error buffer. I setup Emacs with ...
user avatar
  • 111
0 votes
0 answers
30 views

Suspicious state from syntax checker ada-gnat with *.ads

First of all, I would like to thank the flycheck team, it is a wonderful emacs add-on, it is a "must have" plugin to help coding and improve productivity. -- Now, I would ask for help, to ...
user avatar
0 votes
1 answer
75 views

Flycheck: Reenable automatically disabled checker?

I have slightly tweaked checkers in flycheck so that I can run my code in docker containers. I've tweaked how these settings work, which has temporarily broken my flycheck setup and flycheck has ...
user avatar
  • 537
0 votes
1 answer
580 views

How to ignore specific flycheck warning messages for Python in lsp-mode?

My goal is to configure lsp in order to ignore warning messages for flycheck in Python version. When lsp is not in use, flycheck reads from my ~/.pylintrc file in order to ignore warning messsages. ...
user avatar
  • 1,076
0 votes
0 answers
59 views

Would it be possible to disable flycheck selected region on mark?

When I selected a region Ctrl-space up-arrow key, flycheck errors' font color are remain as it is. Example, flycheck error makes fore-color bold orange: Would it be possible to disable flychecks when ...
user avatar
  • 1,076
0 votes
0 answers
67 views

flycheck: c/c++: how to pass the option --library=posix to cppcheck

I found a lot of things to customize in flycheck, but not one that would enable passing down --library=posix option to cppcheck.
user avatar
2 votes
1 answer
52 views

How to disable `flycheck` while merging Git conflicts

I am using following solution for merge Git conflicts in Emacs, which is based on smerge. During merging smerge-mode creates <<<<<<< HEAD , ||||||||| parent lines for conflict ...
user avatar
  • 1,076
0 votes
1 answer
66 views

Flycheck Error Messages are cutoff by edge of window

I'm using Prelude Emacs. I could've sworn there was a simple option to allow the error tooltip to use multiple lines instead of 1, but I can't find it and my error messages get cut off by the window's ...
user avatar
1 vote
0 answers
167 views

enable flycheck/syntax checker for Java in Spacemacs

I'm a java developer and I'm beginner using spacemacs, I've configured .spacemacs file to java configuration. Many functionalities works well, for example, a class recognition when I'm coding, but in ...
user avatar
1 vote
1 answer
157 views

How to switch to `flycheck-list-errors` buffer/window/minibuffer?

For starters I use Doom Emacs. Here's the scenario: I have a python/perl/js buffer and flycheck-mode activated. Flycheck does its job and tells me that there are some errors that need attention. I go ...
user avatar
  • 11
0 votes
0 answers
49 views

How to temporarily disable flycheck while running an elisp function that inserts a large amount of text into the buffer

I often write elisp functions for large sections of boilerplate code. I am currently writing some Java and using Meghanda mode which uses Flycheck. However, when inserting these large chunks of text,...
user avatar
1 vote
1 answer
452 views

Use golangci-lint with lsp-mode

How can I set up golangci-lint as the linter with my config? I've tried using flycheck-golangci-lint but it doesn't seem to be working. I'm testing my config by opening a .go file with an ineffectual ...
user avatar
  • 209
0 votes
1 answer
68 views

How to apply flycheck right after a new file is opened

I am using flycheck for for Python. I want flycheck to detect any errors right away when any Python file is opened. Currently it can detect if there is a modification and save operation is performed. ...
user avatar
  • 1,076
0 votes
1 answer
161 views

Prevent flycheck warning window

When flycheck finds too many warnings that do not fit in the mini-buffer, it opens up a window on a buffer named Warnings that looks something like this: Warning (flycheck): Syntax checker python-...
user avatar
  • 101
0 votes
1 answer
473 views

spacemacs: How can I disable flymake and flycheck completely, to speed up performance

I’m using spacemacs. I just installed syntax-highlighting layer and auto-completion layer, and now my emacs got really really slow. So slow that going back to PyCharm (IntelliJ) with R-plugin feels ...
user avatar
  • 3
7 votes
1 answer
955 views

How can I see all errors in a Go project with LSP mode?

When opening a Go project with LSP mode, spacemacs / flycheck only shows errors in the current package, not including tests files. For example, in the following project: |- pkg1 |- pkg2 |- cmd When I'...
user avatar
1 vote
2 answers
795 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 ...
user avatar
0 votes
0 answers
29 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 ...
user avatar
0 votes
1 answer
99 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 [...
user avatar
2 votes
1 answer
570 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/...
user avatar
0 votes
1 answer
56 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 ...
user avatar
1 vote
1 answer
423 views

noqa does not suppress the warning for flake8

The example warning I am getting is Item "None" of "Optional[IO[bytes]]" has no attribute "close"], as making the line bold and red. This usually occurs if Python cannot ...
user avatar
  • 1,076
0 votes
1 answer
86 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 ...
user avatar
  • 345
0 votes
2 answers
171 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 ...
user avatar
  • 345
0 votes
0 answers
39 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 (...
user avatar
  • 143
0 votes
1 answer
863 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-...
user avatar
2 votes
0 answers
810 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....
user avatar
  • 1,076
0 votes
1 answer
383 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-...
user avatar
  • 1,076
1 vote
0 answers
202 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 ...
user avatar
  • 121
1 vote
1 answer
132 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 ...
user avatar
0 votes
1 answer
283 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/...
user avatar
1 vote
0 answers
127 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 ...
user avatar
2 votes
2 answers
479 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 ...
user avatar
  • 171
0 votes
1 answer
693 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 ...
user avatar
  • 1,076
3 votes
0 answers
480 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 ...
user avatar
  • 131
3 votes
1 answer
85 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 ...
user avatar
2 votes
0 answers
324 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 ...
user avatar
0 votes
0 answers
106 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-...
user avatar
1 vote
0 answers
254 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 [...
user avatar
  • 11
1 vote
0 answers
114 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 ...
user avatar
  • 1,076