Questions tagged [flycheck]

Flycheck is a on-the-fly syntax checking extension for GNU Emacs 24, which applies various syntax checking and linting tools to the buffer contents and highlights errors and warnings in the buffer window.

Flycheck is an on-the-fly syntax checking extension for GNU Emacs 24. It has built-in support for many programming languages, including C/C++, Coffeescript, Haskell, Javascript, PHP, Python, Ruby, LaTeX, Shell scripts, and many more, and can easily be extended with new syntax checkers.

It is available via ELPA from the popular MELPA and Marmalade archives.

For more information please consult the online manual.

77 questions
4
votes
1 answer

Flycheck-Google-Cpplint is not Configured Correctly

I am trying to install flycheck-google-cpplint in my emacs. But I get this error: (flycheck-mode 1) (eval-after-load 'flycheck '(progn (require 'flycheck-google-cpplint) (flycheck-add-next-checker 'c/c++-cppcheck …
Husain
  • 784
  • 1
  • 9
  • 22
4
votes
1 answer

flycheck header file not found, but makefile is correct

I'm using emacs with flycheck to check C source code syntax and trying to get it working with glib. My code compiles and runs correctly, however flycheck reports a file not found error in the #include line and stops reporting further…
Cesar
  • 5,488
  • 2
  • 29
  • 36
3
votes
1 answer

Force flycheck mode to turn off in emacs when working with remote (tramp) python files but not locally

I am trying to make flycheck run locally for Python files, but not have flycheck run when working with python files on a remote machine. I have the problem that flycheck slows down saving and it seems to send a second file that sometimes ends up…
J Spen
  • 2,614
  • 4
  • 26
  • 41
3
votes
1 answer

using flycheck with compile_commands.json

I've looked around at some open question, but I cannot figure out how to use flycheck-clangcheck mode to read the include dirs from the compile_commands.json db. I currently have a largish c++ project. Almost every file would choke on the first…
clo_jur
  • 1,359
  • 1
  • 11
  • 27
3
votes
1 answer

Use flycheck for indent settings in js2-mode

I'm on Emacs 25.2 with js2-mode and flycheck/eslint enabled. Currenty pressing tab (or newline) will indent as per js2-mode-js-indent-level. I would like for it to be dynamic to match flycheck/eslint settings Is there a way to do this ?
haknick
  • 1,892
  • 1
  • 20
  • 28
3
votes
1 answer

How to install flycheck in spacemacs?

I am attempting to use flycheck with my spacemacs setup. The spacemacs documentation, under "12.4.0.6 Minor Modes" lists flycheck as a mode which can be toggled with SPC t s. However, no such option is present in my spacemacs setup. Pressing SPC t…
mherzl
  • 5,624
  • 6
  • 34
  • 75
3
votes
3 answers

Error in Emacs flycheck mode with rubocop

I use flycheck mode with rubocop checker. when I open some rb file, Checker ruby-rubocop returned non-zero exit code 1, but no errors from output: /Users/abc/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb:2157:in…
Jaehyun Shin
  • 1,562
  • 14
  • 25
3
votes
2 answers

Using proper virtualenv and flake8 config with Flycheck

How can I use configured virtualenv and flake8 settings file (setup.cfg in root of project), for flycheck in emacs?
Rustem
  • 2,884
  • 1
  • 17
  • 32
2
votes
1 answer

Emacs - Python LSP setup.cfg not honored

I'm using vanilla Emacs and I installed lsp-mode as follows: (use-package lsp-mode :init (setq lsp-keymap-prefix "C-c l") :commands (lsp lsp-deferred) :config (defun lsp-go-install-save-hooks () (add-hook 'before-save-hook…
se7entyse7en
  • 4,310
  • 7
  • 33
  • 50
2
votes
1 answer

Flycheck warning in Emacs’ *Messages* buffer are not displayed correctly

The following is an example of how my flycheck errors show up on emacs: Method name "createQATask" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern [invalid-name] Here are the checkers I’m running (checked through C-c !…
zhaqenl
  • 21
  • 4
2
votes
2 answers

use-package with config: function might not be available at runtime

I like using use-package for Emacs. Among other things, I have the following in my configuration file: (use-package proced :ensure t :config (proced-toggle-auto-update 1) (general-define-key :keymaps 'proced-mode-map "j" …
awf
  • 23
  • 2
2
votes
1 answer

Tslint not working in Emacs using Angular

I'm trying to set up Emacs with Typescript and Angular, using tide and ng2-mode. I'm having issues with enabling tslint in flycheck. My source directory is as follows: app-dir - here is the tslint.json file app-dir/src/main.ts - here, tslint is…
Miskov
  • 178
  • 12
2
votes
1 answer

Display Flycheck buffer (with errors) when saving

In Emacs, what would be the way to display the Flycheck buffer automatically when saving, only if there are errors? A bit like https://github.com/steelbrain/linter. I've searched on…
user3341592
  • 1,419
  • 1
  • 17
  • 36
2
votes
1 answer

Setting flycheck-clang-include-path in .dir-locals using projectile

Trying to set flycheck-clang-include-path without the need to include the full path of the project include directories using projectile, but I get errors... So this works: ((nil . ( (company-clang-arguments . ( …
SFbay007
  • 1,917
  • 1
  • 20
  • 39
2
votes
1 answer

Conform on-the-fly to PEP8 using flycheck on emacs

I unpack flycheck to ~/. and put the following lines in ~/.emacs: ;; (package-initialize) (setq load-path (cons "~/flycheck-20170415.1006" load-path)) (require 'flycheck) (add-hook 'after-init-hook #'global-flycheck-mode) Starting Emacs 24.5.1 I…
Calaf
  • 10,113
  • 15
  • 57
  • 120