首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Vim语法插件不适用于coffeescript 1.6.0+

Vim语法插件不适用于coffeescript 1.6.0+
EN

Stack Overflow用户
提问于 2013-06-17 04:17:45
回答 1查看 953关注 0票数 0

我的.vimrc中有以下语法设置:

代码语言:javascript
复制
"------------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='⚠'        

当我在1.6.0+ (即npm install -g coffee-script@1.6.3)上安装了coffeescript时,syntastic似乎无法检测到任何编译错误,即使coffee file.coffeecoffeelint file.coffee都能很好地显示错误。

我运行:SyntasticCheck,然后运行:messages,没有出现调试错误。

我还确保npmPATH的一部分:PATH="/usr/local/share/npm/bin:$PATH"

另一方面,当在coffee-script@1.5.0上安装了coffeescript时,错误确实会浮出水面(一切正常!),除了它不能提取coffeelint_args。在https://github.com/scrooloose/syntastic/wiki/CoffeeScript%3A---coffee中可能会出现这种行为

我需要知道一些特殊的东西才能在Mac上使用coffeescript 1.6.0+进行语法工作吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-06-26 01:43:15

这是关于github的问题:https://github.com/scrooloose/syntastic/issues/694

修复方法是从syntastic git目录执行git fetch && git rebasegit pull (假设您使用的是病原体)。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17137302

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档