43 lines
1.4 KiB
Diff
43 lines
1.4 KiB
Diff
From 7a9d955c0141d4adb148ba0b128d302b82f2f307 Mon Sep 17 00:00:00 2001
|
|
From: Spencer Deinum <spencerdeinum@gmail.com>
|
|
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 <spencerdeinum@gmail.com>
|
|
---
|
|
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
|
|
|