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
1answer
18 views

Disable flycheck in XML files [duplicate]

When flycheck runs when I am editing largish XML files (I believe it is just nxml mode), it tends to slow things to a crawl and then I have to kill emacs since C-g only works for a fraction of second. ...
1
vote
0answers
37 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 ...
0
votes
1answer
23 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
25 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-...
1
vote
1answer
16 views

How do you remove compiler warnings for macro usage when running macro with 'with-eval-after-load'?

In a package I am working on I want to define a flycheck checker only if the user has flycheck installed already. To do this, I am using the macro (with-eval-after-load "flycheck" ...) as follows: (...
2
votes
1answer
33 views

Can flymake or flycheck mark in dired (or in buffer lists) files with errors?

It would be nice if, in addition to flymake/flycheck marking errors in particular files, they could somehow mark files with errors in dired (or maybe just in the open-buffers list). The goal would be ...
0
votes
1answer
35 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
20 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
1
vote
1answer
69 views

Have flycheck skip certain regions

I'm using flycheck to check my .tex sources but find that the syntax checking is too comprehensive. In particular, I'm interested in skipping syntax checking of certain environments such as code ...
1
vote
1answer
35 views

flycheck “function is not known to be defined” warning after conditional definition

I was running into a flycheck warning about a function which may not be defined. Since the function is a small optional dependency, I am inlining it in case the package that provides cannot be loaded....
0
votes
2answers
259 views

enabling additional flycheck-checker for spacemacs html layer

I can't seem to enable the scss-stylelint checker for scss-mode. flycheck-verify-setup gives me this: Syntax checkers for buffer _typography.scss in scss-mode: scss-lint (disabled) - may ...
0
votes
1answer
104 views

How can I disable a specific lint error for Emacs Lisp using Flycheck?

In Python with flake8 we can do that with #noqa in the end of line. How the same can be done with Emacs Lisp? My ambition is to disable a particular lint error by just make a annotation with a ...
0
votes
0answers
20 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
1answer
96 views

How to prevent “the function ‘->’ is not known to be defined.” warning

How do I prevent flycheck from triggering a warning for the following code: (defun file-path-last-segment () "Get last segment of file path for use in snippets." (-> default-directory (...
3
votes
1answer
54 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
78 views

Cannot change flycheck-python-pylint-executable

I have been trying to make flycheck use python 3 syntax similar to this question and ended up having more fundamental questions. I open a python file and flycheck correctly works, using the python 2 ...
1
vote
1answer
119 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
1answer
63 views

Evaluating conditional expression in flycheck syntax checker command

I'd like the :command of a flycheck checker to depend on the file extension of the input. For example: for .tex files run the command foo --format latex file.tex for any other file extension run the ...
0
votes
1answer
354 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
1answer
72 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?
2
votes
0answers
282 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-...
0
votes
1answer
101 views

flycheck don't run in emacs-lisp-mode

In emacs-lisp-mode, flycheck cannot run. If execute M-x flycheck-select-checker RET emacs-lisp RET, Emacs tells message below: Syntax checker in buffer example.el in emacs-lisp-mode: emacs-lisp (...
1
vote
0answers
49 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 ...
2
votes
0answers
81 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 ...
0
votes
0answers
66 views

Flycheck false-positive on ES6 import statement

In my JavaScript code I have the following statements: import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; Both strings 'react' and 'react-native' are highlighted by ...
0
votes
1answer
124 views

flycheck tslint reports no-implicit-dependencies for everything

I'm editing TypeScript using Tide, successfully, except that it complains about every single import statement. For example: import { GraphQLSchema } from 'graphql'; I see an error in the minibuffer:...
1
vote
2answers
53 views

`ibuffer-switch-to-saved-filter-groups' is not known to be defined

I have this line in my .emacs file. (add-hook 'ibuffer-mode-hook #'(lambda () (ibuffer-switch-to-saved-filter-groups "default"))) The settings work fine for me. But flycheck ...
2
votes
1answer
1k views

flycheck cannot enable python-flake8 configuration file not found

I'm trying to set up flycheck to run flake8 on my python files. I'm using pipenv so I set up flycheck-python-flake8-executable for my buffer to point to the virtual environment version of flake8 and ...
5
votes
2answers
684 views

Getting MyPy Working in Spacemacs

I'm struggling to get type checking working in spacemacs, and I would appreciate any help. I've installed MyPy properly on my system (I can run it from terminal) and added python-mypy to dotspacemacs-...
0
votes
1answer
395 views

Set flycheck-compile command

How do I set flycheck-compile to run go-build on save? I can't find documentation on how to run flycheck-compile with go-build on save.
1
vote
1answer
20 views

How can I remove the --shell option in the definition of flycheck-define-checker sh-shellcheck?

Obviously, I could go in and edit the appropriate line in flycheck.el, or copy the function to my init.et and modify it, but then I would be out of sync with any changes in updates to flycheck. I'd ...
3
votes
1answer
1k 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
1answer
388 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 ...
1
vote
3answers
461 views

Utilizing proselint in org-mode

I have been writing lots of text in Org-mode and would like to lint the text before exporting it. I have flycheck and proselint installed. Is it possible to get proselint to run in org-mode? I tried ...
1
vote
1answer
123 views

flycheck on Windows, python-pycompile: “output contained no errors”

I'm running a hand-built recent trunk build of emacs on Windows. I have flycheck set up, and flycheck-verify-setup in a python-mode buffer shows it's enabled and OK: Syntax checkers for buffer foo.py ...
1
vote
1answer
283 views

Disabling/ignoring GCC/Clang error in Flycheck

There is already a question on this but it's unanswered. I'm writing a C++ header file that requires libxml, as seen below #include <libxml2/libxml/xpath.h> However Flycheck sees this as an ...
0
votes
1answer
267 views

Disable highlighting “info” warnings on flycheck

I'm using flycheck with pylint3 (emacs 24.5) and it creates lots of "info" errors (for things like violating whitespace and capitalization conventions). I know I can disable them on a per-error basis ...
1
vote
1answer
68 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
514 views

Flycheck: change color / thickness of underline

Using Flycheck, I get a green thin jagged underline line for style-guide violations, and a red thin jagged underline for syntax errors (see below). Is it possible to change the thickness or the color ...
0
votes
1answer
454 views

Recent problems with Haskell mode

I just downloaded a fresh installation of the Haskell platform on Mac El Capitàn: brew cask install haskell-platform and a fresh installation of the Haskell layer for spacemacs: dotspacemacs-...
0
votes
2answers
102 views

Adding global variable on flycheck

I tried to add this to my eslint global variable "globals": { "document": false, "navigator": false, "window": false, "rndr": false, "shrd": false, "path": true, "$": ...
0
votes
0answers
90 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
844 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 ...
1
vote
0answers
46 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
202 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
2answers
209 views

How can I set my Flycheck Perl include path?

I am using Flycheck using use-package like so: (use-package flycheck :ensure t :init (global-flycheck-mode)) I followed https://randstructure.wordpress.com/2015/06/21/using-emacs-flycheck-with-...
2
votes
1answer
471 views

How to change flycheck symbol?, like spacemacs

Flycheck has a symbol that tells in which line an error or warning have been encountered. I have seen spacemacs has its flycheck symbol changed. Default symbol is a double arrow; while spacemacs's ...
0
votes
1answer
34 views

How to get the error id of a given line in flycheck?

I would like a function to return the flycheck error id for the piece of code my cursor is over. Pylint is my main interest.
1
vote
1answer
61 views

Flycheck-Haskell - “Opening Directory” “Not a directory”

I'm trying to get flycheck working in Haskell, however, when I try to do anything to do with flycheck, even running stuff like flycheck-verify-setup, I get an error "Not a directory". Does anyone ...
3
votes
1answer
514 views

Flycheck gives errors, when I use shellcheck as linter for bash scripts

I use GNU Emacs 26.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2017-06-09, and Shellcheck 0.3.7 als linter for bash scripts (https://www.shellcheck.net). When I open a bash script, I ...