Questions tagged [syntastic]

Syntastic is a syntax checking plugin for the Vim editor that runs files through external syntax checkers and displays any resulting errors to the user.

The Syntastic manual can be found here:

https://github.com/vim-syntastic/syntastic/blob/master/README.markdown

232 questions
2
votes
2 answers

Removing entries from syntastic

I'm working on a project that uses gettext and so end up with a lot of error results in syntastic (using flake8) that say: undefined name '_' i don't want to remove W802, but i would like to suppress those messages by grepping out the string…
jamielennox
  • 368
  • 1
  • 2
  • 9
2
votes
2 answers

Syntastic cpp : fatal error "QApplication: no such file or directory"

not knowing Perl, I am unable to configure syntastic for newer c++ libraries that i experiment on. Vim refused to recognize the header files . here is a program which compiles fine but syntastic shows an error on it: #include
Maelstorm
  • 580
  • 2
  • 10
  • 29
1
vote
1 answer

Syntastic in Vim claims function might fail to return

EDIT: Syntastic is configured to use JSLint EDIT2: I am using JavascriptLint, not JSLint On the below code syntastic warns function inside does not always return a value function(){ switch(age){ case 1: return 'won'; case 2: return 'too'; …
puk
  • 16,318
  • 29
  • 119
  • 199
1
vote
1 answer

How can I add extra html tags to Syntastic plugin for Vim?

I use a CMS which uses custom tags that are parsed before everything on the page, for example. This can appear in the standard file formats for .html, .php and it will create an an image based on all the specifications in…
Tallboy
  • 12,847
  • 13
  • 82
  • 173
1
vote
0 answers

include
path and starting point

I have a problem similar to this Including header files recursively for syntastic except my directory structure is a lot more complex so I'm not sure where to place the config file. the .cpp file I'm editing (let's name it myfile.cpp) looks like…
Bamarin
  • 11
  • 3
1
vote
1 answer

Can I use ale or syntastic as a pre-write hook instead of post-write?

I have a couple of YAML files that must contain valid YAML at all times, so I was hoping to use (something like) ale or syntastic to help me enforce that. It looks like the way syntastic works is that after :w it runs the checkers (post-write) and…
Peter V. Mørch
  • 13,830
  • 8
  • 69
  • 103
1
vote
0 answers

Vim syntastic for C does not show warning for unused-function

When I run the Syntastic syntax check on my C file I do not get warnings about unused-function. When I run :let g:syntastic_c_compiler_options I get -DUSE_STM32L476G_EVAL_REVB -DUSE_HAL_DRIVER -DSTM32L476xx -DDEBUG_CODE -I./Core/Inc…
1
vote
0 answers

Vim-Syntastic showing ignored python errors

Syntastic and flake8 in vim not ignoring errors provided in flake8 config file. I am using flake8 for python code linting with Syntastic in vim. I have a flake8 config file per flake8 documentation absolute_path_to_home/.config/flake8 which ignores…
1
vote
0 answers

Syntastic for Vim on Cygwin, Unable to Set Shellslash

I'm using Vim on Cygwin and I've recently decided to attempt to install some plugins. I installed Vundle and managed to get the vim-airline plugin working, but for some reason I cannot get Syntastic to work. My vimrc: set nocompatible filetype…
1
vote
2 answers

manging the vim syntastic gutter line

I am using syntastic and youcompleteme in vim. Whenever I leave insert mode and have a mistake in my code the syntastic error gutter appears with a red marks indicating where the mistakes are. I find it annoying that the screen shifts to make room…
code kid
  • 374
  • 1
  • 6
  • 22
1
vote
1 answer

What is meant with "Run make inside the vim directory"

This is a simple and perhaps forehead-slapping obvious question, but I still venture to ask it. It is part of a larger effort to troubleshoot a problem I have with vim-fsharp (see github repo here), where I continually get error messages like "Error…
avriis
  • 1,581
  • 4
  • 17
  • 31
1
vote
0 answers

Syntastic autoclose when cursor change syntastic_loc_list_height

I know Syntastic has the settings variable syntastic_auto_loc_list with different options, but none of them is what I'm looking for. What I want is a way to show the location list when there are errors in the current opened file, but autoclose…
Algorithmatic
  • 1,824
  • 2
  • 24
  • 41
1
vote
1 answer

Error symbols not showing in vim-syntastic

I am trying to add custom error symbols to syntastic in my .vimrc file as so: " Error symbols let g:syntastic_error_symbol = "✗" let g:syntastic_warning_symbol ="∙∙" But I think I have managed to break something. Now not even the default symbols…
Astrid
  • 1,846
  • 4
  • 26
  • 48
1
vote
1 answer

Disable check for certain file type

I have an .epp file that's a shell script with Ruby embedded inside. I'm guessing the "shebang" line (#!) activates the sh check. Is it possible to ignore/disable checks for .epp files?
Corex Cain
  • 123
  • 1
  • 7
1
vote
1 answer

Vim using Syntastic plugin 'mpi.h' not found

I'm currently using Vim 7.4 on Ubuntu 16.04. I have the Syntastic plugin installed via pathogen. I'm currently doing some coding in C using the mpi library. When I write my code using Vim, syntastic seems to believe that there is an error and tells…
jules
  • 63
  • 3
  • 10