How to get inline results in a worksheet in Eclipse/Scala-IDE on Ubuntu 12.04?

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

Getting Started · scala-ide/scala-worksheet Wiki · GitHub, 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  I am using Scala on Eclipise IDE on Linux. I am facing issues with the evaluation of the new worksheets. Expressions in new worksheets being created do not get evaluated and inline results are not

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

User fgui, 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  Scala IDE for Eclipse Scala IDE provides advanced editing and debugging support for the development of pure Scala and mixed Scala-Java applications inside Eclipse Scala IDE is Open Source and available under the Scala License .

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.

Как получить действующие результаты в рабочем листе в , This Eclipse plugin allows experimentation with the Scala language in a new way​. A worksheet is a Scala file that is evaluated on save, and the result of each  A worksheet is a scala file with .sc extension which you can run and get evaluation results in a special view appeared in the editor. Create worksheet by right-clicking on your Project and choosing ‘New’ -> ‘Scala Worksheet’. Just type your code, press ‘Evaluate worksheet’ button and results appear.

Change the scala installation to default version.

Follow these steps:

  1. Project -> Right click -> Properties -> Scala Compiler
  2. Click Scala Installation drop down.
  3. Select "Latest 2.12 bundle (dynamic)" in drop down

New Worksheet Release, 15 How to get inline results in a worksheet in Eclipse/Scala-IDE on Ubuntu 12.04​? 10 What is the advantage of using unescape on document.write to load  This is an excerpt from the Scala Cookbook.This is Recipe 14.1, “How to get started with the Scala REPL.”. Problem. You want to get started using the Scala REPL (“Read-Evaluate-Print-Loop”) command line interpreter, including understanding some of its basic features, such as tab completion, starting the REPL with different options, and dealing with errors.

Ubuntu 12.04 da Eclipse/Scala-IDE-dagi ish sahifasida inline , See this answer New scala worksheets not evaluated in Eclipse. 8 not contain a space, you can also get Inline Result in Scala Worksheet. The worksheet plugin is listed under the Scala IDE plugins group. Getting Started. Create your first worksheet but right-clicking on a Scala project and choosing New Scala Worksheet. Alternatively, if you are a shortcut junkie, hit CMD-3, type Scala worksheet and hit enter when the correct command appears in the quick command window.

scala-ide by scala-ide, We considered these issues critical, and we have been working hard to fix all known problems. It should now be much harder to get the  The released worksheet depends on the Scala IDE V2.1.0-M2. Therefore, make sure you have the it installed, and then, using the same update site, install the worksheet. The worksheet plug-in is listed under the Scala IDE plugins section. If you are having trouble with the installation, have a look at our Getting Started page.

4.3.0, 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​  Scala Worksheet plugin for Eclipse. A simple worksheet implementation for Scala IDE. It is a glorified editor, with the option of evaluating the script and placing the results of each expression in a comment on the same line.

Comments
  • it works on my ubuntu machine. hard to say, why it's not working without further information. if you installed scala IDE via 'install new software' in already existing eclipse, you may have to install the scala worksheet plugin manually. also be sure, that the worksheet is opened with "scala script editor" and not "scala editor" (right click on file -> open with).
  • @3x14159265 - I installed Scala-IDE by downloading the latest binary from scala-ide.org/download/sdk.html , unpacking it, and double clicking the binary in the eclipse folder. Therefore I unfortunately can't do a right click > open with scala script editor. In the Scala-IDE I also tried doing File>Open file... but there is no option to choose a scala script editor or even a scala editor. Any other ideas?
  • I only have scala IDE installed as eclipse extension... don't know if it exists in scala-ide prebuild package, but at menu section 'help->install new software' you can see the already installed plugins and check if the worksheets plugin exists...
  • @3x14159265 - I searched for "Scala worksheet", found an extension and tried to install it, but it says a newer version is already installed. Any other tips would be highly appreciated! (oh, and btw: would you or anybody else know a good Scala forum?)
  • faced the same issue , problem with space in project name , mean my existing project name is "First World" , so in this case it is not working , after that i changed it to "FirstWorld" and now it is working
  • You can also do this in Eclipse Preferences (this helped me on OS X).
  • please quote the most relevant content of the link
  • @CodeiSir not sure what you mean by this, the name of the link is the most relevant information. Thanks
  • That worked for me, hit F2 over the project name with a space in it in eclipse and took out space. Then went over to worksheet, saved it, and the worksheet executed.