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
0
votes
1answer
103 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
230 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 ...
17
votes
2answers
3k 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
61 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
140 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 ...
21
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 ...
6
votes
2answers
3k 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
294 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) ":" ...
4
votes
1answer
731 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
213 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
186 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
6k 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
187 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
208 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
355 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
494 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
285 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
135 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
703 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
366 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
786 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
88 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
77 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
886 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
735 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
1k 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
704 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 ...
2
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
985 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
458 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 ...
6
votes
2answers
3k views

Automatically add project directory to flycheck clang/gcc include path

I want to use syntax checking with Flycheck in my C++ projects, but the Clang checker fails to find the local file includes. For example, when I have: #include "foo/bar/x.h" in the file foo2/y.cc, ...
1
vote
1answer
1k views

How tell web-mode to use tidy syntaxchecker in flycheck?

I have tidy in my setup. When I run HTML-mode as major mode in html file, I do flycheck-verify-setup and I get tidy as syntax checker. the executable is also found. When running web-mode as major ...
3
votes
1answer
631 views

emacs-ycmd flycheck integration doesn't support C++11 [closed]

I have successfully configured Company-ycmd and ycmd as my C/C++ auto completion engine. It works great but the Flycheck-ycmd seems not support the C++11 syntax. And it give the following errors: ...
4
votes
2answers
3k views

Why does my Flycheck syntax checker not activate automatically?

I wrote a Flycheck frontend for LDC. It installs into Emacs fine, and I remember to require it, but for some reason, it doesn't automatically enable itself when I open a file in d-mode. What did I ...
7
votes
1answer
2k views

Best way to disable flycheck checkdoc warnings on specific elisp directory?

I use flycheck with flycheck-elisp-checkdoc checker active and find them fairly useful. Still, I find it irritating to be nagged about missing (provide), section headers (;;; Code, ...), package ...
5
votes
1answer
1k views

Flycheck could not find file under load-path

I have some elips *.el file in my ~/.emacs.d/gman/ folder, e.g. smart-inputp-methods.el. This folder is added to my load path at the beginning of .emacs file: (add-to-list 'load-path "~/.emacs.d/gman"...
0
votes
2answers
2k views

js2-mode with flycheck and jshint

(require 'flycheck) (add-hook 'js2-mode-hook (lambda () (flycheck-mode t))) Used this, to setup flycheck for javascript development. However, i noticed config changes in .jshintrc is not ...
0
votes
1answer
565 views

How do I write a Flycheck predicate that checks for the checkers config file

Suppose I have the following Flycheck checker: (flycheck-def-config-file-var flycheck-jscs javascript-jscs ".jscs" ...
4
votes
2answers
4k views

Starting a virtualenv for emacs to use

I am starting a Python virtualenv through init.el (or so I would like): (require 'virtualenvwrapper) (venv-workon "my-python-project") However, flycheck does not find flake8 or pylint, which are ...
8
votes
2answers
814 views

'Symbol's value as variable is void' in callback from url-retrieve

When executing the following I get an error: (defun caller (func) (url-retrieve "http://m0smith.freeshell.org/" (lambda (status) (funcall func)))) (caller (lambda() (message "called"))) Result:...
6
votes
1answer
1k views

Is it possible to make flycheck-mode and company-mode play nice together?

I've encountered two very nice modes when it comes to developing C++ in Emacs. First we have flycheck-mode which on the fly checks the syntax of my code using various backends such as clang or gcc. ...
4
votes
1answer
188 views

Regexp to parse Hy errors for Flycheck

I'm trying to write a Flycheck checker definition based on Hy, using the API here. As part of that, I have to define a pattern for error matching. Now, Hy gives quite a large error spew, for example: ...
4
votes
1answer
296 views

How can I get lint warnings when I've forgotten to require a package?

Flycheck has a brilliant ability to warn about when I'm using a function foo-bar but have forgotten to add (require 'foo) at the top of my file. However, it's inconsistent. It doesn't always warn for ...