Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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
2 votes
1 answer
211 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 ...
1 vote
1 answer
121 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-...
0 votes
0 answers
12 views

How do I make Flycheck not create a second frame?

I am learning Lean4, and lean4-mode uses Flycheck. If I only have one frame and one window, and I edit this Lean program in that window, import Lean.Elab.Command elab "#check_syntax " t:term ...
2 votes
2 answers
434 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" ...
2 votes
1 answer
463 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 ...
1 vote
1 answer
2k views

getting Jedi to work with type hinting (Python)

I am trying out the Python 3 type hinting with this example: from typing import List def greeting(names: List[str]) -> str: return 'Hello, {}'.format(', '.join(names)) greeting(['jane', '...
0 votes
1 answer
192 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
1 answer
228 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-...
0 votes
1 answer
306 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-...
0 votes
1 answer
307 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
1 answer
217 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
2 answers
592 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
1 answer
57 views

Use Flycheck over Tramp

I have a running docker containing simple C source file makefile and compile_commands file generated by bear. What I want to do is to make Flycheck-clangcheck lint my C code on the fly. However when I ...
0 votes
1 answer
283 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
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 ...
0 votes
2 answers
2k 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
0 answers
172 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) // ...
5 votes
4 answers
4k 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 ...
0 votes
0 answers
20 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 ...
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 ...
1 vote
1 answer
143 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 ...
0 votes
0 answers
47 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....
0 votes
1 answer
24 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 -...
0 votes
0 answers
110 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-...
2 votes
0 answers
184 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 ...
0 votes
0 answers
59 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 ...
0 votes
0 answers
36 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-...
1 vote
1 answer
443 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 ...
0 votes
0 answers
351 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 ...
0 votes
1 answer
133 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 ...
0 votes
1 answer
278 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 ...
1 vote
1 answer
100 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 ...
2 votes
0 answers
1k 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....
5 votes
1 answer
972 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
0 answers
120 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-...
0 votes
1 answer
69 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) ...
2 votes
2 answers
78 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 ...
0 votes
1 answer
233 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/...
1 vote
2 answers
83 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: \( ... $ ... \) \(...
1 vote
2 answers
356 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 ...
0 votes
0 answers
45 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 ....
1 vote
1 answer
151 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 ...
0 votes
0 answers
29 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-...
0 votes
1 answer
30 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 ...
1 vote
2 answers
2k views

How to disable flycheck fringe markers for warnings?

I find the question mark fringe markers for flycheck warnings slightly distracting. Is there a way to hide them? I'd like to keep the error fringe markers. I tried M-x customize-face <RET> ...
8 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'...
0 votes
1 answer
38 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.
0 votes
0 answers
231 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 ...
1 vote
0 answers
210 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 ...
0 votes
1 answer
958 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-...

1
2 3 4 5