Skip to content

Instantly share code, notes, and snippets.

@troystribling
Created June 15, 2013 22:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save troystribling/5789844 to your computer and use it in GitHub Desktop.
Save troystribling/5789844 to your computer and use it in GitHub Desktop.
Fix for synatstic flagging local imports as errors. in file .vim/janus/vim/tools/syntastic/syntax_checkers/scala.vim
1 "============================================================================
2 "File: scala.vim
3 "Description: Syntax checking plugin for syntastic.vim
4 "Maintainer: Rickey Visinski <rickeyvisinski at gmail dot com>
5 "License: This program is free software. It comes without any warranty,
6 " to the extent permitted by applicable law. You can redistribute
7 " it and/or modify it under the terms of the Do What The Fuck You
8 " Want To Public License, Version 2, as published by Sam Hocevar.
9 " See http://sam.zoy.org/wtfpl/COPYING for more details.
10 "
11 "============================================================================
12
13 "bail if the user doesnt have the scala binary installed
14 if !executable("scala")
15 finish
16 endif
17
18 if !exists("g:syntastic_scala_options")
19 let g:syntastic_scala_options = " "
20 endif
21
22 function! SyntaxCheckers_scala_GetLocList()
23 let makeprg = 'scalac -Ystop-after:parser '. g:syntastic_scala_options .' '. shellescape(expand('%'))
24
25 let errorformat = '%f\:%l: %trror: %m'
26
27 return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
28 endfunction
29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment