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
7
votes
1answer
754 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
721 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
151 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
380 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 ...
13
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
226 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
1k 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
544 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
209 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
472 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
223 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 ...
0
votes
1answer
105 views

Flycheck installation to aquamacs from melpa failing

Using Aquamacs Aquamacs 3.2 GNU Emacs 24.4.51.2 (x86_64-apple-darwin14.0.0, NS apple-appkit-1343.14) of 2014-11-07 (Aquamacs-3.2) on watson.local trying to install Flycheck from stable.melpa....
2
votes
1answer
1k views

Flycheck and Rust

I'm currently struggling to set up error checking for rust in emacs. Flycheck seems to work fine with other languages (C, Python, Ruby, eLisp) but doesn't appear to do anything in rust-mode. I ...
2
votes
1answer
262 views

flycheck wrapper function for bundler

I would like to make flycheck work with checkers installed via Bundler, and I've read that in order to do that, I have to implement the flycheck-command-wrapper-function. What it should do is prepend ...
18
votes
2answers
4k views

How to prevent flycheck from treating my init.el as a package file?

If flycheck-mode is enabled for my init.el, I got the following kinds of errors: The first line should be of the form: ";;; package --- Summary" (emacs-lisp-checkdoc) ... The footer should be: (...
1
vote
1answer
64 views

Flycheck and syntax tables: erroneous behavior I'm unsure how to fix

In the course of writing a Flycheck checker for ten-hundred-mode's new (and as yet inchoate) permissive mode, I noticed that the checker's overlay behavior was influenced by the currently active ...
1
vote
1answer
141 views

(De)activate a flycheck checker without disturbing those currently active

I'm working on fulfilling a feature request for my package ten-hundred-mode - specifically, that it provide a "permissive" option where it merely highlights impermissible words, rather than ...
23
votes
6answers
4k views

Flycheck with file relative eslint executable

A lot of projects I work on install eslint as a dev dependency, with a custom set of eslint plugins. Right now, flycheck uses the globally installed version of eslint rather than the version of eslint ...
7
votes
2answers
4k views

Disable Minor Mode in Major Mode

I am trying to disable a minor mode (flycheck) for the latex major mode. This is what I have so far. (defun disable-flycheck-in-tex-src-block () (flycheck-mode -1)) (add-hook 'latex-mode-hook '...
1
vote
0answers
308 views

proselint and message-mode

I have proselint setup like here, i.e.: (flycheck-define-checker proselint "A linter for prose." :command ("proselint" source-inplace) :error-patterns ((warning line-start (file-name) ":" ...
5
votes
1answer
827 views

How can I turn off flycheck minor mode for given directory

So my question is like in title. I want to turn off flycheck minor mode for all files in directory. I have specified in my .emacs file that it should be on in c++-mode, c-mode and few others, but I ...
2
votes
1answer
225 views

Setting up flycheck in pair with different mode is not working

For the SQL-mode I use the package Sqlint with Flycheck. This works fine. Now I switched to the package EDBI which is an database interface for Emacs. There is a query editor built-in. I would like ...
2
votes
1answer
195 views

Is it possible to use different checkers with different flycheck-check-syntax-automatically?

I have two checkers fast-checker and slow-checker. So I want to use fast-checker with flycheck-check-syntax-automatically '(idle-change) and slow-checker with flycheck-check-syntax-automatically '(...
14
votes
1answer
4k views

suppress warning: assignment to free variable (and others)

How can I suppress the "assignment to free variable" warning when byte compiling an emacs lisp file? I'm actually mostly interested in suppressing it for a specific buffer when using flycheck, but I ...
5
votes
2answers
7k views

spacemacs flycheck: use specific linter for python

I would like to use a specific linter for python files in spacemacs. A coworker sent me an emacs code-snippet that should solve my problem, but doesn't seem to be loaded. (add-hook 'python-mode '(...
3
votes
2answers
193 views

Minor modes not working with derived mode from c++-mode

I created a derived mode (using define-derived-mode) based on c++-mode to include new keywords, etc. The mode is working great, but I'm having problems with other minor modes that stop working with ...
1
vote
1answer
221 views

How to view the errors from all buffers?

Is it possible to view all errors? flycheck-list-errors only show errors for current buffer
1
vote
1answer
367 views

Is it possible to not close error tooltip?

An error tooltip is automatically closed after like 5 seconds. Could you prevent this? So it would be closed only when you move cursor? I changed tooltip-hide-delay but it did't help.
3
votes
1answer
2k views

Is there a way in Flycheck flake8 mode to ignore a specific warning?

As we all know sometimes it's OK to break the rules. Flycheck Mode however, isn't as forgiving and happily displays it's warning. Is there a way to disable this on a per line basis when using flake8? ...
0
votes
1answer
518 views

flycheck doesn't check

i installed and enabled flycheck but it doesn't find errors in my software (c code), errors that i deliberately inserted to test it instead it works on a new minimal c file (also not saved) what ...
0
votes
1answer
2k views

How to configure flycheck (c/c++-clang) to ignore some files or directories?

My C++ code use third-party library, so I have to add the library path to flycheck-clang-include-path to avoid can't find header file error. But I don't want flycheck to do the syntax check on that ...
5
votes
1answer
299 views

flycheck hides compilation errors

I use Emacs to edit Go files. When I compile them I can use next-error to jump to the next error in a specific Go file. Very handy. However, when I also enable flycheck on my Go file for on-the-fly ...
0
votes
1answer
138 views

How to add pep257 to flycheck?

I use flycheck for Python with pylint, pep8 and other built-in checkers, but also I will use pep257 to highlight doc-comments formatting errors. I read official documentation, but not understand, who ...
6
votes
1answer
793 views

Make flycheck's “reference to free variable” work with macros

The use-package is a useful and popular macro for installing packages, but flycheck always complains about it since it hides variable definitions. For example, if I attempt (use-package org), Flycheck ...
1
vote
1answer
375 views

Flycheck.erl checker that uses functions from projectile

Below is my attempt at adapting "erlang" syntax checker (from flycheck.el) for my needs. It tries to use GNU make for compilation instead of erlc. Apart from that nothing is changed. (flycheck-define-...
6
votes
1answer
865 views

How to turn off `emacs-lisp-checkdoc` of flycheck when edit source block in org-mode file?

I have a emacs-lisp block in org-mode and when I try to edit it by press C-c ', flycheck always report errors as below: 0 warning The first line should be of the form: ";;; package --- ...
1
vote
1answer
2k views

Emacs flycheck add include directory, no flycheck-gcc-*

emacs version: GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7) of 2014-03-07 on lamiak, modified by Debian M-x flycheck version: Flycheck version: 0.25alpha (package: 20150821....
2
votes
0answers
90 views

How to get HideShow to indicate Flycheck Errors/Warnings inside a folded region?

When a portion of code is folded, error and warning indicators from Flycheck relative to this portion are not shown. How can I get Flycheck or HideShow to indicate that a folded portion of code ...
1
vote
3answers
3k views

Flycheck with eslint doesn't use ~/.eslintrc

I'm having trouble getting flycheck to use the .eslintrc file in the root of the current project, and I'm struggling to find any documentation that will tell me how to configure it to use the ...
4
votes
2answers
82 views

Concatenate multiple 'help-echo strings

I have multiple overlays with 'help-echo strings covering the same region. Can I make Emacs show all these strings in the mouseover tooltip? By default it only shows the one coming from the highest ...
1
vote
2answers
955 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> ...
0
votes
1answer
761 views

Something not right with this Flycheck checker - unclear why

I just wrote the following checker for syntax-checking Vala code using valac: (flycheck-def-option-var flycheck-vala-packages nil vala-valac "A list of additional pakages for valac. The value of ...
4
votes
1answer
2k views

Warning (flycheck): Syntax checker javascript-eslint reported too many errors (494) and is disable

I switched to a new linter and on big files it causes flycheck to disable because it reports too many errors. I don't believe this is an issue with the linter as when I check the output in the ...
5
votes
1answer
748 views

How to set temporary file directory for flycheck eslint (outside of current directory)

flycheck-mode creates temporary files in the current directory. That is annoying. How can I disable/set the default place for these temporary files. I use javascript eslint syntax checker for react ...
3
votes
2answers
1k views

Flycheck- check python module import

I was wondering how I can make Flycheck check the modules imported in a python file - to check if function used from a module is correct or not. Is there another mode which is able to do that for me? ...
8
votes
1answer
3k views

Using multiple flycheck syntax checkers in web-mode

I'm trying to configure Flycheck to use both csslint and tidy checkers in web-mode without any success. This post suggests using this code for tidy: (eval-after-load 'flycheck '(flycheck-add-mode '...
11
votes
2answers
1k views

disable specific warning in flycheck (specifically “#pragma once in main file”)

I'm using flycheck for C++ development, and get the following warning: #pragma once in main file In all headers included in a main file. Searching the webs, I get the impression this has something ...
2
votes
1answer
494 views

How can I use a custom Python linter for a specific project with flycheck?

I'd like to use twistedchecker when working on the Twisted project. Twisted has somewhat unusual coding standards that aren't mutually compatible with PEP 8 (e.g. a mandatory three line gap between ...