I've got the Scala-IDE installed on my Mac and on my pc with Ubuntu 12.04. In there I created a project, with a package and in there a worksheet. On my mac, the worksheet shows results of every line on the same line on the right. For example:
package mypackage
object myworksheet {
println("Hello World!") > Hello World!
}
On Ubuntu however, I do not see the result on the right. I've tried making changes in the worksheet and saving it, but it makes no difference.
Does anybody know how I can get these inline results on my Ubuntu machine as well?
I had the same issue, adding -Dfile.encoding=UTF8 to eclipse.ini fixed the issue.
For more details look at answer to the question: Results encoding in Scala Worksheet Eclipse plugin
Having a space in the Project name was the problem for me. Creating a new project without the space resolved it.
See this answer New scala worksheets not evaluated in Eclipse
A very simple answer to your question-
I agree that the project name should not contain a space, you can also
get Inline Result in Scala Worksheet
New Project < Scala Project < Type a Name < Finish GO to src < Right CLick < Scala Worksheet
P.S. Also here you don't need to Run
(just hit Ctrl+S to save) also you don't need to append extends App
to the obj worksheet name
.
来源:https://stackoverflow.com/questions/17995704/how-to-get-inline-results-in-a-worksheet-in-eclipse-scala-ide-on-ubuntu-12-04