FAQ Database Discussion Community


how to fix syntastic javascript warnings: 'X is not defined'? [duplicate]

javascript,vim,syntastic
This question already has an answer here: How to fix “foo is not defined” error reported by JSlint? [duplicate] 1 answer I am using vim with syntastic on a javascript (cordova) project, but I am getting a lot of warnings as can be seen below: I consider to be...

Show only errors with pylint and syntastic in vim

python,vim,pylint,syntastic
How to use synstastic in vim to display only pylint error messages? I basically want the output of pylint -E to be used as source for syntastic. I tried to configure syntastic in my .vimrc with: let g:syntastic_python_checkers = ['python', 'pylint -E'] which did not work. Also, I tried to...

how to make syntastic with html tidy aware of ionic tags?

vim,ionic-framework,tidy,syntastic
I'm trying to edit an ionic application with vim that has syntastic enabled using html tidy. Unfortunately, I'm getting a load of errors. How can I make html tidy aware of ionic tags, or failing that make it ignore them so that I don't receive errors like this: www/index.html|26 col...

How to avoid “‘main’ is not defined in module ‘Main’” when using syntastic

haskell,syntastic
I'm trying to write a module in Haskell. It does not have a main because it's not meant to be a stand-alone program. I just started using syntastic, and it is constantly reporting: The IO action ‘main’ is not defined in module ‘Main’ This is preventing it from reporting other...

How can I turn off specific messages in syntastic (vim)?

vim,syntastic
I'm trying to turn off some of the messages in synastic ... For example, SC20148 in bash files (it complains there's no shebang) After looking through the documentation, it seemed that perhaps this might be done through: let g:synstatic_quiet_messages = { \ 'type': 'syntax', \ 'regex': 'SC20148' } However this...

Pylint Error when using metaclass

python,python-3.x,vim,pylint,syntastic
i try to fix all pylint errors and pylint warnings in a project. but i keep getting an error when i set a metaclass (https://www.python.org/dev/peps/pep-3115/). here is my example code: #!/usr/bin/env python3 class MyMeta(type): pass class MyObject(object, metaclass=MyMeta): # pylint error here pass the error just says "invalid syntax". i...

How to jump/display the column of an error

python,vim,syntax,pylint,syntastic
To check the syntax of my python scripts I am using the syntastic vim plugin with pylint as checker. Is there a way to not only display or highlight the line where an error occurs but the column/exact position of this error too? I used a vim syntax checker plugin...