-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Syntasticnot working for Coffeescript 1.6.0+ #694
Comments
The coffeelint part is clear, you are overriding the default argument let g:syntastic_coffee_coffeelint_args = "--csv --file [absolute path to]/coffeelint.json" Basically you need to keep the formatting arguments, or things will break. Yes, things should be simpler than that, but for now they aren't (see also the discussion at #414). The coffee-script part is more involved, as the error format of coffee-script seems to vary with the weather outside. Still, last time I massaged that particular So, what errors do you get with 1.6.3 on the command line? Does things change if you run coffee with the
Better yet, can you provide a small test file illustrating the problem? |
Here's my test file: function #this function should be an error
a = (asdflakjsdlfakjsdlsdkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk) -> # Greater than 80 chars should be syntax error
1+1 # Line ending with whitespace Here's the output:
Syntastic doesn't provide any feedback Coffee
|
Sure: let g:syntastic_mode_map = {'mode': 'passive'}
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_jump = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1 The rest are error symbols, status line flags, and definitions for checkers unrelated to coffee. Please set |
Nothing too exciting going on debug mode: Here's my vim version:
|
Please upgrade syntastic to master HEAD, and try again. |
Dooope. Thanks for making me feel like Homer Simpson :) Much appreciated the help! PS: Will close down the issue now |
When I have coffeescript installed to 1.6.0+ (i.e. npm install -g [email protected]) syntastic doesn't seem able to detect any compilation errors, even though both coffee file.coffee and coffeelint file.coffee displays the error fine.
Inside .vimrc:
"------------SYNTASTIC-----------
let g:syntastic_enable_signs=1
let g:syntastic_mode_map={ 'mode': 'active',
\ 'active_filetypes': [],
\ 'passive_filetypes': ['html', 'java'] }
let g:syntastic_coffee_checkers = ['coffeelint', 'coffee']
let g:syntastic_coffee_coffeelint_args = "--file [absolute path to]/coffeelint.json"
let g:syntastic_enable_signs=1
let g:syntastic_error_symbol='✗'
let g:syntastic_warning_symbol='⚠'
On the other hand, when coffeescript is installed at [email protected] the errors DO in fact surface (everything works!), except that it doesn't pick up the coffeelint_args. This behavior might be expect from https://github.com/scrooloose/syntastic/wiki/CoffeeScript%3A---coffee
Do I need to do something special to get syntastic working w/ coffeescript 1.6.0+?
System settings:
The text was updated successfully, but these errors were encountered: