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.

72 questions
28
votes
2 answers

Configuring Flycheck to work with C++11

I am having significant trouble configuring flycheck for C++11. Right now, flycheck is flagging things like std::to_string(). The checker I am using is just g++. What can I add in the .emacs file such that flycheck will assume C++11 by default?
mrQWERTY
  • 3,389
  • 9
  • 34
  • 83
17
votes
2 answers

How to disable flycheck warning while editing emacs lisp scripts?

I am now engaged with emacs prelude and find everything nice. But A lot of flycheck warnings are displayed while editing el file and syntax coloring is overrided Warnings like "the first line shoud be of form package --- summary" How to turn off…
jilen
  • 5,190
  • 1
  • 29
  • 74
12
votes
2 answers

How to add include path to flycheck c/c++-clang?

I tried to add include path to flycheck c/c++-clang, but it didn't work. I put foo.h in ~/local/include and added the following lines to init.el: (add-hook 'c++-mode-hook (lambda () (setq flycheck-clang-standard-library…
user3717819
  • 155
  • 1
  • 1
  • 6
10
votes
2 answers

How can I make flycheck use virtualenv

I have just happily configured emacs with autocompletion via jedi and syntax check via flycheck and virtualenvs created within bootstrap. It all seems to work. I'd like to add the ability to use flycheck-pylint (to get errors in import) but I'm not…
Alessandro Dentella
  • 800
  • 1
  • 9
  • 23
8
votes
2 answers

is there a command to apply hlint suggestions in emacs?

I'm using flycheck and haskell-hlint in emacs when I write Haskell codes and I think it will be great if I can apply those hlint suggestions by invoking some emacs procedures instead of modifying the code manually. If there isn't one available and…
Javran
  • 3,006
  • 1
  • 19
  • 37
7
votes
1 answer

How do I make flycheck find required file in emacs lisp?

I have 2 files in the same directory, say a.el and a-test.el. a.el ;; some functions (provide 'a) a-test.el (require 'a) flycheck put a warning on the require in a-test.el says Cannot open load files: a How do I make flycheck find the…
Rangi Lin
  • 8,822
  • 4
  • 41
  • 69
6
votes
1 answer

Use flycheck with eslint on emacs when editing files from a particular project

Normally, when editing JavaScript on emacs, I use flycheck with jshint to check for syntax errors. So I have jshint installed globally, and the following command in the .emacs file to use flycheck in js-mode: (require 'flycheck) (add-hook…
azangru
  • 2,364
  • 5
  • 24
  • 47
6
votes
1 answer

emacs Flycheck "Configured syntax checker python-flake8 cannot be used"

New emacs/python user here. I'm trying to set up flycheck to work (and use flake8). This is the relevant part in my init.el: (require 'python-mode) (add-to-list 'auto-mode-alist '("\\.py$" . python-mode)) (add-hook 'python-mode-hook…
jeroentbt
  • 462
  • 6
  • 8
5
votes
0 answers

Emacs - ccls : no member named "filesystem" in namespace "std"

Archlinux user using Emacs as a C++ IDE with the following setup : company / flycheck / lsp-ui / ccls I'm trying to use filesystem library from c++17 for personal use but I can't get rid of this error in Emacs ccls : no member named 'filesystem' in…
Cerclique
  • 51
  • 4
4
votes
1 answer

How do I remove the annoying underline in flycheck (using eslint)?

I am using spacemacs and flycheck-eslint as linter to check my React code. Here is my project's .eslintrc, { "extends": [ "eslint:recommended", "plugin:react/recommended" ], "parser": "babel-eslint", "env": { "browser": true, …
user2331095
  • 5,817
  • 7
  • 28
  • 53
4
votes
1 answer

How do I switch betwen Python 2 and 3 when using Flycheck with flake8 in Emacs?

How do I switch betwen Python 2 and 3 when using Flycheck with flake8 in Emacs? Having installed Flycheck for Emacs, I then install a syntax-checker like flake8. Installing flake8 using pip install flake8 makes Flycheck check Python 2 syntax.…
Shuzheng
  • 7,974
  • 8
  • 48
  • 112
4
votes
0 answers

How best to adapt to type changes in Cabal library without CPP?

I want to enhance flycheck-haskell's support for auto-configuring flycheck from your .cabal file. To do this autoconfiguration, flycheck uses a helper file whose original strategy was to read the .cabal file and use flattenPackageDescription. This…
mdorman
  • 356
  • 1
  • 6
4
votes
1 answer

Flycheck - disabling Clang as a checker *permanently*

I use Flycheck to check C files, and have a fairly elaborate variable setup for GCC to allow it to work correctly. However, due to having Clang on my system (for reasons unrelated to code), Flycheck always assumes that this is what I want to use,…
Koz Ross
  • 2,714
  • 1
  • 19
  • 40
4
votes
0 answers

Specify error patterns with start and end columns in emacs' flycheck?

Is there any way to specify a span i.e. a triple of (line, start-column, end-column) for an error pattern? I'd like, for example, to be able to use flycheck to highlight an expression: x + 1 and not just the identifier x? (Also posted as:…
Ranjit Jhala
  • 1,152
  • 7
  • 16
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
  • 674
  • 7
  • 18
1
2 3 4 5