A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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
1
vote
1answer
334 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
410 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
75 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 ...
2
votes
1answer
669 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
513 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
121 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
115 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
959 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
48 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
230 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
2answers
276 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
584 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
41 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
66 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 ...
4
votes
1answer
606 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
21 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
381 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
182 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
115 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
230 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 ...
2
votes
1answer
2k 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 ...
2
votes
1answer
1k 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
627 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 ...
1
vote
0answers
111 views

How to disable Flycheck when editing in sudo?

Sometimes I want to edit a file in Emacs as root. So I found this useful function: (defun sudo-edit (&optional arg) "Edit currently visited file as root. With a prefix ARG prompt for a file to ...
1
vote
1answer
606 views

Linter for Google shell style guide?

Does anyone know of a Bash linter for the Google shell style guide? I have been using shellcheck as my linter with flycheck but it doesn't conform to this standard.
0
votes
1answer
1k views

Flycheck: How to disable c++11 Warnings?

I am using flycheck with its defaults to write modern C++ code. I frequently get warnings such as: extended initializer lists only available with -std=c++11 or -std=gnu++11 when using modern ...
0
votes
1answer
296 views

Auto convert dot `.` to arrow `->` in C/C++?

I'm using flycheck in cc-mode and it reminds me when I'm typing: member reference type 'ListNode *' is a pointer; did you mean to use '->'? I want to know if there's any package can convert . ...
0
votes
1answer
493 views

How do you add command line options to flycheck's C++ checker?

I needed to specify stdlib options in a certain environment, so I changed the flycheck executable to clang -std=c++11 -stdlib=libc++, which is needed to compile the file. However, I got the error ...
0
votes
2answers
486 views

flycheck include path from ede

I have a setup where I use EDE from CEDET for C projects development (among other things) and the real good flycheck on-the-fly syntax checking. I have defined ede-cpp-root-project in my .emacs file ...
0
votes
0answers
971 views

Flycheck c/c++-gcc doesn't understand C++

I get the following when trying to check a header file; -*- mode: compilation; default-directory: "~/devel/projects/SHARED/" -*- Compilation started at Wed Feb 15 16:06:41 gcc -fshow-column -fno-...
3
votes
0answers
1k views

flycheck eslint for javascript

I'm trying to setup a lint for javascript files. Here's the relevant setup I have. (use-package js2-mode :ensure t :init (progn (add-to-list 'auto-mode-alist '("\\.js?\\'" . js2-jsx-...
2
votes
1answer
724 views

Flycheck checker python-flake8 returned non-zero exit code 1, but its output contained no errors

Hello I'm having trouble while trying to use flake8 and flycheck, I know this probably this isn't a issue with flycheck per se but I need some guidance about what is happening. The problem On a ...
9
votes
1answer
630 views

Automatically run org-lint through flycheck

I've got a heap of org-mode files which I publish into HTML for a knowledge base, sometimes the publishing crashes out due to a broken link or something and it's hard to find the problem. I've been ...
2
votes
2answers
316 views

Flycheck elisp “There should be two spaces after period”

Is there any way to disable just this one warning? Two spaces seems like overkill but maybe that is the lisp standard?
2
votes
1answer
2k views

Add include paths to flycheck and to company-irony?

I am starting to develop a ROS (Robot Operating System) application for the first time using Emacs. Here is my ~/.emacs.d/init.el configuration for Flycheck and company packages: ;;;;;;;;;;;;;;;;;;;;;...
0
votes
1answer
46 views

Why does flycheck behaviour not depend only on flake8 output and exit code?

I have a flake8 wrapper script: a small program that execs flake8 (in order to pick an appropriate version of flake8 for whichever project I'm working on). flycheck is using that wrapper script (I'm ...
1
vote
1answer
880 views

How does priority work with multiple checkers in Flycheck mode?

I have multiple syntax checkers installed for Flycheck (specifically javascript-eslint and javascript-standard). The way I have them set up is not compatible (one demands semicolons, one prohibits ...
7
votes
1answer
695 views

Getting flycheck “jump to next/previous error” to cycle

I'd like M-g n and M-g p to cycle, at least when I'm using them with flycheck. This feature requires writing a custom function as it's not supported (as mentioned on https://github.com/flycheck/...
4
votes
1answer
660 views

wrong-type-argument stringp nil when trying to run flycheck

I'm new to emacs (coming from vim) and wanted to try flycheck with jshint. I have jshint installed and available in my path. However, when I try to check a buffer, I get the error: Error while ...
1
vote
2answers
135 views

flycheck-gfortran-language-standard option

I have added the following option in my ~/.emacs file so that it uses the Fortran 2008 standard when checking syntax using Flycheck (as suggested in http://www.flycheck.org/en/latest/_downloads/...
0
votes
1answer
349 views

Add flags for the compiler used by flycheck

I am trying to run flycheck with c++-code which imports the thread library. thread requires -std=c++11 which is not used with the c/c++-gcc setting. Is there a way to add this flag or to solve this ...
12
votes
2answers
3k views

Can I turn off or switch the syntax checker for js2-mode?

I have a default setup of js2-mode. This provides nice syntax highlighting and checking but I am now working on a project with a different set of styles (specifically this new project does not use ...
0
votes
1answer
216 views

Does Flycheck interfere with JS-2 Mode?

I realize that flycheck is a syntax checker that can be used with nearly every language's major mode. My question is how (if at all) it can interact with modes such as (specifically) js2-mode which ...
0
votes
1answer
36 views

Is there any why to make FlyCheck learn new html tags?

Is there any why to make FlyCheck learn new html tags? Custom tags? or just html5 tags. Is there any way to add them?
3
votes
2answers
973 views

Turn off global-flycheck-mode for org-mode?

Given I'd like to keep using global-flycheck-mode, how can I make sure flycheck is automatically disabled when editing org-mode documents? Or maybe is just activate it for code blocks? I found this ...
2
votes
1answer
529 views

New Flycheck syntax checker: Errors missing

I am attempting add an additional Flycheck syntax checker for nxml-mode, however errors/warnings are not showing up even though the linter, igor, is reporting errors/warnings. Here is the syntax ...
2
votes
0answers
193 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
1answer
434 views

Flycheck variable warnings despite flycheck load-path

I'm trying to get Flycheck to load files containing declarations to resolve warnings to free variables etc. But Flycheck is not picking up the (required files. I use (require 'my-dcls) at the top of ...
3
votes
2answers
211 views

Tell Flycheck about my global variables across multiple files?

I've just started to use Flycheck to improve the quality of my code, and I am grateful that it is helping me to do that by pointing out assignments to free variables, and by identifying possibly ...
1
vote
1answer
2k views

Make flycheck mode respect flake8 config and warn for long lines

I use flycheck-mode as my syntax checker/linter for Python. It works great for the most part, however I can't get it to warn me when I have gone over a specified line length. I am using flake8 as my ...