Hi Dave,
Even though you could definitely run small programs in the Scala
Terminal, it is not build for that. The main purpose of it is to make
it possible to paste or type in expressions and see what they evaluate
to. If you write programs that consists of more than one file then sbt
is the perfect tool. Here are some simple steps that will let you get
started with ScalaEdit and the sbt terminal:
1. Select an empty directory where you want to store your project
files with the menu item "Project->Change Root..."2. If it is not
already done you can make the file list to the left autorefresh by
selecting "Project->Auto Refresh"3. Start an sbt terminal with
"Terminal->SBT Terminal->Version 0.11"4. Sbt will now initialize a
project folder in the folder you have selected. The target directory
will contain the compiled classes.5. Use "File->New" to start editing
the first file.6. Save the file (by pressing the save button or
Control-s) as "HeloWorld.scala" in the default directory.7. Paste in
the following content to the file:object HelloWorld{ def
main(args:Array[String]){ println("Hello World") }}8. Save the file9.
Run the HelloWorld program by pressing the run button in the sbt
terminal. If it works you will see Hello World printed out to the
terminal.
Tip: sbt is a very powerfull tool when developing Scala applications,
so it is worth spending some time to get to know it (https://
github.com/harrah/xsbt/wiki). All Scala compile errors that sbt detect
will show up in the list on the right hand side of the terminal and
the lines with errors will also be marked in the editor.
/Kjell