Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Duplicate
-
1.4.5
-
None
-
Buildr 1.4.5
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode)
Scala code runner version 2.9.0.1 -- Copyright 2002-2011, LAMP/EPFL
Mac OS X 10.6.7 (10J869)Buildr 1.4.5 ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0] java version "1.6.0_24" Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326) Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode) Scala code runner version 2.9.0.1 -- Copyright 2002-2011, LAMP/EPFL Mac OS X 10.6.7 (10J869)
Description
scalac barfs on '-g' option:
scalac error: Usage: -g:<level>
where <level> choices are none, source, line, vars, notailcalls (default: vars)
scalac -help gives more information
scalac error: bad option: '-g'
scalac -help gives more information
The fix is pretty simple (I assume that "source" is the desired debug level here).
229c229
< args << "-g" if options[:debug]
—
> args << "-g:source" if options[:debug]