Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

-1
votes
0answers
12 views

Error from syntax checker jdee-flycheck-javac-checker: Writing to process: Invalid argument, bsh

Whenever I am opening any java file I am getting this error- Error from syntax checker jdee-flycheck-javac-checker: Writing to process: Invalid argument, bsh I don't know how it suddenly happened ...
0
votes
1answer
33 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
20 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
29 views

How can I use flycheck-compile with cquery / lsp?

I recently set up lsp and cquery successfully and can use it with xref and company. Also flycheck seems to work thanks to lsp-ui-flycheck. I can see errors and hints in the buffer. However, flycheck-...
0
votes
0answers
63 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
0answers
31 views

Flycheck C++ “to_sting” not found

If I try // to_string example #include <iostream> // std::cout #include <string> // std::string, std::to_string int main () { std::string pi = "pi is " + std::to_string(3....
0
votes
1answer
46 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
35 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
50 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
23 views

C++ Flycheck and the include-template-impementation-in-header trick

I'm running emacs 25.3.2 with a current flycheck installed. Flycheck uses clang-5 as a checker for C++. I like to keep my declarations and definitions separated in two files even when working with ...
0
votes
0answers
23 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
37 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
33 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 ...
0
votes
1answer
433 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 ...
2
votes
1answer
253 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
148 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.
0
votes
0answers
48 views

Auctex: flyspell checks all the libraries used during compilation

I'm using in my (Auc)Tex configuration the great flyspell mode. When a new tex file is opened, I would like to highlight all the spelling errors in the text. So for now, I do it by running flyspell-...
1
vote
1answer
17 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 ...
1
vote
1answer
480 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
223 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
2answers
189 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 ...
0
votes
0answers
62 views

flycheck complains cannot find header

I installed flycheck and using gcc checker. But it keeps complaining the header file is not found even though the header file is in the same directory of the cpp file.
1
vote
1answer
69 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
162 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
0answers
75 views

Changing look of flycheck pop-up tooltip

When I use emacs compiled with gtk3, the look of flycheck tooltip is really ugly: Is there any way to change it? I remember that gtk2 version looked much better.
0
votes
1answer
108 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 ...
0
votes
1answer
43 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
1answer
196 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
345 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
67 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
49 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
588 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
31 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
147 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
1answer
124 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
285 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
0answers
18 views

Flycheck error display not formatted. It Displays XML

Can someone tell me why my error output does not parse xml and looks like this? ( see: https://i.imgur.com/W7ISh4C.png ) Ubuntu(v16.04 xenial) GNU Emacs 25.3.1 flycheck 31 js2-mode 20170721 eslint v4....
0
votes
0answers
64 views

Is it possible to use avr-gcc to get avr syntax checking?

After some googling I found someone doing this: flycheck-c/c++-gcc-executable . "/usr/bin/avr-gcc" But my flycheck (on newest spacemacs) will not allow me to do this (reports not valid flycheck ...
0
votes
0answers
88 views

Creating/Opening C++ Files Causes Emacs to Freeze

I have been tinkering with my emacs to enable C++ linting and autocompletion. However, my emacs immediately freezes whenever I open a .cpp file; according to Activity Monitor, it utilizes 99% of the ...
0
votes
1answer
23 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
51 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 ...
2
votes
1answer
354 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 ...
1
vote
0answers
20 views

Emacs momentarily stalling with Flycheck

I am using the GUI version of Emacs. I have noticed that while editing text, mainly in js2-mode with Flycheck enabled, the editor frequently stalls. Is there a way to prevent this from happening or ...
1
vote
0answers
173 views

trouble installing flycheck

Hi I am new to emacs and am having trouble installing flycheck. I have modified my ~/.emacs.d/init.el file to: (require 'package) (add-to-list 'package-archives '("MELPA Stable" . "...
1
vote
0answers
133 views

Flycheck stopped checking after the installation of rtags and cmake-ide

First I had flycheck and it worked just fine for my C projects. At the time, I was having a problem with my init file. I even posted about it. I was using an org file as my config file (using org-...
1
vote
0answers
81 views

Structures are defined using a macro, flycheck gives errors

In our source code we surround structures with a macro (MKDIFF) that serves as a flag for the Makefile system. It does not expand into anything, just a flag. Flycheck (understandably) flags these ...
2
votes
0answers
168 views

Flycheck c/c++-clang check linux kernel headers

Currently I am working with the linux kernel, but I am struggling trying to check my syntax using flycheck, I already added the path of the headers in the clang-path but it is not enough. Does any of ...
1
vote
1answer
1k views

flycheck-gcc-include-path in .dir-locals.el

In my .dir-locals.el I have: (cpp-mode . (setq flycheck-gcc-include-path '("/home/<user>/<project>/include"))) This doesnt seem to set flycheck-gcc-include-path, any ideas why? Also is ...
1
vote
1answer
887 views

How to enable type-check rules with flycheck-tslint

I want flycheck to use the tslint's --type-check flag to compile my typescript files. In order to see unused imports on the fly inside emacs. By tslint docs --type-check Enables the type ...
0
votes
1answer
274 views

How to use web-mode engine-specific checkers in flycheck?

Flycheck seems to enable checkers based on the major mode. Meanwhile, web-mode can be used to edit a variety of different types of files (html, javascript, etc.) which would each have their own ...