I'm using Scala-IDE version 2.0.0-v2_09, Eclipse Indigo, Scala 2.9.1.
Sometime when I use auto completion such as:
//expected BufferedInputStream
BufferedInpu
Then I hit Ctrl-Space
, select java.io.BufferedInputStream
, then my import section loses some lines, and:
object PingPong extends Application {
...
turns into:
object PingPong
...
I have found my solution to avoid that is type full name of BufferedInputStream
, then Ctrl-Shift-O
:-)
Or sometime it warns me these:
Multiple markers at this line
- object io is not a member of package
main.scala.pingpong.zip.java
//repeats 15 times
with my imports:
import java.util.zip.ZipOutputStream
import java.io.BufferedInputStream
import java.io.BufferedOutputStream
import java.io.FileInputStream
import java.io.FileOutputStream
import java.util.zip.ZipEntry
import java.io.File
import java.io.ByteArrayOutputStream
I used to raise a terminal, code in Eclipse, then switch to terminal:
sbt compile
sbt run
:-)
Eclipse seems does not support for selecting builder if you have multiple ones. It always chooses the first one listed.