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
0 answers
39 views

C++17 with LSP and Flycheck

lsp-mode is working correctly. flyecheck is working correctly, with the exception of regonizing some c++17 features. #include <map> std::map<int,int> magic; magic.try_emplace(1,1) // ...
Tiago Matos's user avatar
0 votes
0 answers
16 views

*Flycheck error messages* comes up with weird ShellCheck syntax errors

First of all, many thanks for Flycheck. I am using it with Bash scripts, and it works pretty well. However, every now and then, a buffer named *Flycheck error messages* comes up with a weird error ...
rdiez's user avatar
  • 1
0 votes
0 answers
14 views

Disable spellchecking a specific orthography without turning off flycheck

I frequently have buffers (Org-Mode, but that should be irrelevant) where I have a mix of Koine Greek, Ancient Hebrew, and English. I have spellchecking set up for Koine and English, but I have not ...
Keith Pinson's user avatar
0 votes
0 answers
36 views

flycheck thinks functions defined in a macro are not defined

i use a define-request macro to make it easier to define lots of requests to a REST API. each one returns a defun, the request function. flycheck is unable to discover the existence of these functions....
user27075's user avatar
  • 508
0 votes
1 answer
21 views

sh-zsh not catching any errors

emacs 29.1 flycheck 32 test.sh #!/usr/bin/zsh echo "test" ech boo C-c ! v gives Syntax checkers for buffer test.sh in sh-mode: First checker to run: sh-zsh - may enable: yes -...
pradesigner's user avatar
0 votes
0 answers
75 views

Doom-modeline seems to be breaking flycheck

I've tried to simplify the issue and taken elpy out of my init and stripped flycheck back to basic install using the following code in my init file: (use-package flycheck :ensure t :init (global-...
Kai Jenkins's user avatar
1 vote
1 answer
93 views

How to create a flycheck checker that could be enabled in every mode?

I want to create a checker that shows strings like "TODO" in flycheck error list. Since this checker works on text, it can be applied to any major mode. But when creating the checker with ...
Alvaro González Sotillo's user avatar
2 votes
0 answers
85 views

How do i I use a virtualenv with pylint in flycheck?

I use pylint in flycheck via the python-flycheck plugin. By default it uses emacs's virtualenv which lives here: ~/.emacs.d/.python-environments/default on my machine. I would prefer if it used the ...
Att Righ's user avatar
  • 745
0 votes
0 answers
41 views

Trying to use cmake-mode in emacs, flycheck error

I have some problem when I trie to use cmake-mode in emacs : Syntax checker in buffer CMakeLists.txt in cmake-mode: rtags - major mode: `cmake-mode' not supported - may enable: yes - RTags ...
Kafka's user avatar
  • 125
0 votes
0 answers
25 views

How to run flycheck synchronously and programmatically

As part of some automated tests I'd like to include flycheck. However, I haven't found a way to invoke the checker programmatically and synchronously. I've tried something like: (progn (with-current-...
erjoalgo's user avatar
  • 863
0 votes
0 answers
201 views

Show all the error inline in Emacs lsp-mode

I am an Emacs newbie transitioning from Neovim. In Neovim's built-in LSP client, I am able to see all the errors inline. Please notice how every error is displayed on the problematic line immediately ...
Refael Sheinker's user avatar
0 votes
0 answers
34 views

How to properly use :default-directory in Flycheck checker definition?

I'm trying to use a somewhat new property that has been introduced to Flycheck checker definition syntax recently, and I don't think I'm doing it properly. I believe the :default-directory property ...
Igor Zinov'yev's user avatar
0 votes
1 answer
53 views

How can I use textlab with lsp-mode in tex files?

If possible, I want to use https://github.com/latex-lsp/texlab along with lsp-mode during editing tex files. I was not able to manage how can I combine those. M-x flycheck-compile does not show up ...
alper's user avatar
  • 1,300
0 votes
0 answers
25 views

Need help with flycheck and etc-sudoers-mode

I want to install flycheck together with https://github.com/emacsmirror/etc-sudoers-mode. When I run gnu emacs, I get: Error (use-package): etc-sudoers-mode/:catch: Symbol’s value as variable is void: ...
lester's user avatar
  • 101
0 votes
1 answer
154 views

flycheck can't find header file even though flycheck-clang-include-path configured

I am using Doom Emacs as my editor for C. I'm trying to use glib in my C project and for that I'm including glib.h. I have added the include dirs displayed by pkg-config --cflags glib-2.0 to flycheck-...
Johnny's user avatar
  • 1
0 votes
1 answer
211 views

How to setup maven for lsp-java

I need to import gurobi.jar to my project to correctly view the flycheck's errors. I have read Maven in 5 Minutes and How to add local jar files to a Maven project? but I am still not able to ...
Francesco Cadei's user avatar
1 vote
1 answer
65 views

flycheck: the function ‘cl-defstruct’ is not known to be defined. (emacs-lisp)

How do I fix this? cl-defstruct is an autoloaded macro in /usr/local/share/emacs/28.2/lisp/emacs-lisp/cl-macs.elc, which is definitely in my load path (checked under an emacs session started with ...
petermao's user avatar
1 vote
0 answers
81 views

How to add a secondary flycheck checker to lsp-ui

Because the lsp package sets the default checker to lsp (chaining not supported) I am using this WA to chain another checker to lsp: (defvar-local my/flycheck-local-cache nil) (defun my/flycheck-...
Mihai's user avatar
  • 143
2 votes
1 answer
149 views

How do I disable grammar checking in orgmode code blocks

I installed this package https://github.com/emacs-languagetool/flycheck-languagetool to use languagetool with emacs. However, I am getting languagetool errors at my org documents' code blocks too. How ...
Barslmn's user avatar
  • 21
0 votes
0 answers
32 views

Bash function is flagged with an error by flycheck (with shellcheck)

flycheck (with shellcheck) alerts of an 'error' in the following function. my_loop() { # for ifastq in $(ls $1 | grep -v txt) for ifastq in $1/*.f?(ast)q?(.gz) do echo "$ifastq" done } I ...
user25482's user avatar
0 votes
1 answer
61 views

How can I suppress specific flycheck messages in sh-mode?

In sh-mode I am getting following flycheck-error message: File Line [v]ColLevel ID Message (Checker) config.sh 2 error Syntax error: "(" unexpected (sh-posix-dash) ...
alper's user avatar
  • 1,300
0 votes
1 answer
161 views

How can I set `tex-lacheck` as default checker?

I want to use lacheck as default checker in LaTeX-mode. By default tex-chktex is the main checker. I am switching into lacheck via M-x flycheck-select-checker tex-lacheck. https://emacsdocs.org/docs/...
alper's user avatar
  • 1,300
1 vote
2 answers
79 views

How can I catch `unexpected $ after open inline math \(` in auctex?

Overleaf generates following warning message for tex files: unexpected $ after open inline math \(. Is it possible to catch this warning message in AUCTex as well? Example would be: \( ... $ ... \) \(...
alper's user avatar
  • 1,300
0 votes
0 answers
35 views

flycheck mode ruby/chef checker - foodcritic vs. cookstyle

I use standard ubuntu emacs (27.1) with flycheck mode from melpa (reinstalled today). Chef/Cinc is a ruby based Infrastructure as Code language. Flycheck mode has been working very well with these ....
Nicolai Langfeldt's user avatar
0 votes
0 answers
28 views

Mode to automatically open generated files

I'm looking for a mode or hook that automatically opens a generated in read-only and auto-revert-mode mode alongside an associated with a source file. For instance when calling dmd -vgc-ast on a .d-...
Nordlöw's user avatar
  • 497
0 votes
1 answer
28 views

Upgrading flycheck when installed systemwide

I'm trying to upgrade my system-wide installation of flycheck from v31 to v32, but couldn't figure out a way to do it. m-x package-list-packages U x doesn't work, there are no packages to upgrade. I'm ...
lol's user avatar
  • 103
0 votes
1 answer
37 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.
Dilna's user avatar
  • 1
2 votes
2 answers
67 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 ...
Paul's user avatar
  • 183
1 vote
1 answer
95 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-...
vap's user avatar
  • 111
0 votes
0 answers
207 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 ...
alper's user avatar
  • 1,300
0 votes
0 answers
2k 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 ...
GaryO's user avatar
  • 496
0 votes
0 answers
136 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:...
alper's user avatar
  • 1,300
0 votes
1 answer
1k 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 ...
Violet's user avatar
  • 488
0 votes
1 answer
340 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"] ...
alper's user avatar
  • 1,300
0 votes
1 answer
226 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 ...
Att Righ's user avatar
  • 745
0 votes
1 answer
2k 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. ...
alper's user avatar
  • 1,300
1 vote
0 answers
128 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 ...
alper's user avatar
  • 1,300
0 votes
0 answers
186 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.
Jarkko Hietaniemi's user avatar
2 votes
1 answer
97 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 ...
alper's user avatar
  • 1,300
1 vote
2 answers
293 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 ...
ZacharyFontenot's user avatar
1 vote
0 answers
290 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 ...
chavalife17's user avatar
1 vote
1 answer
385 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 ...
Ivan's user avatar
  • 11
0 votes
0 answers
61 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,...
intel_chris's user avatar
2 votes
1 answer
879 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 ...
jidicula's user avatar
  • 251
2 votes
1 answer
140 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. ...
alper's user avatar
  • 1,300
0 votes
1 answer
282 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-...
Leo's user avatar
  • 101
0 votes
1 answer
769 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 ...
puf's user avatar
  • 3
7 votes
1 answer
2k 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'...
Robert Zaremba's user avatar
2 votes
2 answers
1k 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 ...
James Cunningham's user avatar
0 votes
0 answers
41 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 ...
Aleksandar Dimitrov's user avatar

1
2 3 4 5