diff --git a/janus/syntastic-syntax-checkers-scala.vim.patch b/janus/syntastic-syntax-checkers-scala.vim.patch new file mode 100644 index 0000000..a819af5 --- /dev/null +++ b/janus/syntastic-syntax-checkers-scala.vim.patch @@ -0,0 +1,42 @@ +From 7a9d955c0141d4adb148ba0b128d302b82f2f307 Mon Sep 17 00:00:00 2001 +From: Spencer Deinum +Date: Thu, 30 Aug 2012 00:43:12 -0400 +Subject: [PATCH] Edited scala checker to use scalac, with the + -Ystop-after:refchecks option. + +This means syntax checking is done via the compiler instead of the +interpreter, so it won't choke on things like package definitions. + +The -Ystop-after:refchecks option will stop before code is actually +generated, so we don't emit any class files. + +Signed-off-by: Spencer Deinum +--- + syntax_checkers/scala.vim | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/syntax_checkers/scala.vim b/syntax_checkers/scala.vim +index f6f05af..d603246 100644 +--- a/syntax_checkers/scala.vim ++++ b/syntax_checkers/scala.vim +@@ -15,7 +15,7 @@ endif + let loaded_scala_syntax_checker = 1 + + "bail if the user doesnt have the scala binary installed +-if !executable("scala") ++if !executable("scalac") + finish + endif + +@@ -24,7 +24,7 @@ if !exists("g:syntastic_scala_options") + endif + + function! SyntaxCheckers_scala_GetLocList() +- let makeprg = 'scala '. g:syntastic_scala_options .' '. shellescape(expand('%')) . ' /dev/null' ++ let makeprg = 'scalac -Ystop-after:refchecks '. g:syntastic_scala_options .' '. shellescape(expand('%')) + + let errorformat = '%f\:%l: %trror: %m' + +-- +1.7.10 +