Scala worksheet works intermittently

88 views
Skip to first unread message

thuff

unread,
Dec 9, 2016, 2:13:54 AM12/9/16
to Scala IDE User
I know this was a problem with previous versions of ScalaIDE but I still appear to have the isue. When I create a worksheet, with the initial

object session {
  println("Welcome to the Scala worksheet")
}
I get the output in hte right panel. But when I ad 1+1, I don't get any results. When I try removing my entry, and save,  I still don't get any results in the right panel. What I see in the scala.log is:

2016-12-08 13:06:20,512  WARN [Worker-5] - ScalaProject - Project projFun has platform default sourceLevel.
2016-12-08 13:06:20,525  WARN [Worker-5] - ScalaProject - Project projFun runs on platform default installation.
2016-12-08 13:06:21,068  WARN [Worker-5] - ScalaProject - Project projFun has platform default sourceLevel.
2016-12-08 13:06:21,075  WARN [Worker-5] - ScalaProject - Project projFun runs on platform default installation.
2016-12-08 13:19:23,310  WARN [Worker-5] - ScalaProject - Project projFun has platform default sourceLevel.
2016-12-08 13:19:23,311  WARN [Worker-5] - ScalaProject - Project projFun runs on platform default installation.
2016-12-08 13:19:55,963  WARN [Worker-4] - ScalaProject - Project projFun has platform default sourceLevel.
2016-12-08 13:19:56,003  WARN [Worker-4] - ScalaProject - Project projFun runs on platform default installation.
2016-12-08 13:20:04,955  WARN [org.eclipse.jface.text.reconciler.MonoReconciler] - ScalaProject - Project projFun has platform default sourceLevel.
2016-12-08 13:20:04,956  WARN [org.eclipse.jface.text.reconciler.MonoReconciler] - ScalaProject - Project projFun runs on platform default installation.
2016-12-08 13:20:15,578  WARN [Worker-9] - ScalaProject - Project projFun has platform default sourceLevel.
2016-12-08 13:20:15,579  WARN [Worker-9] - ScalaProject - Project projFun runs on platform default installation.
2016-12-08 13:20:28,649  WARN [Worker-9] - ScalaProject - Project projFun has platform default sourceLevel.

My configurations is:

2016-12-08 13:20:28,666  WARN [Worker-9] - ScalaProject - Project projFun runs on platform default installation.
2016-12-08 13:20:59,481  WARN [Worker-4] - ScalaProject - Project projFun has platform default sourceLevel.
2016-12-08 13:20:59,481  WARN [Worker-4] - ScalaProject - Project projFun runs on platform default installation.
Scala IDE version:
        4.5.0.rc2-2_11-201612050839-02830a6
Scala compiler version:
        2.11.8
Scala library version:
        2.11.8
Eclipse version:
        4.6.1.v20160907-1200
Class loader store: 1 entries
        Compiler v. 2.11.8(/home/thuffman/scalaide_4_5_0_RC_2/eclipse/plugins/org.scala-lang.scala-compiler_2.11.8.v20160304-115712-1706a37eb8.jar)

Worksheets version:

  Scala Worksheet    0.6.0.v-2_11-201612050858-33a0723    org.scalaide.worksheet.feature.feature.group    Scala IDE

Notice I tried the current RC2 release to see if the problem was addressed but it's the same as 4.4.0. I'm trying to complete a project and could really use this feature. Has anyone ran across this? Do I ned to install another version of the worksheets?

thuff

unread,
Dec 10, 2016, 11:35:05 AM12/10/16
to Scala IDE User
UPDATE: forgot to include the ScalaIDE is Luna eclipse and my OS in Ubuntu 16.04 LTS in Virtual Box VM. 

No  one has experienced this problem? Do I need to provide more information?

wpopie...@virtuslab.com

unread,
Dec 12, 2016, 9:54:04 AM12/12/16
to Scala IDE User
Hello,
I tested it several times in way described by you but everything looks ok. Honestly I don't understand how your Scala IDE is Luna if it should be Neon (eclipse version 4.6.0-xxx is actually Neon)

Regards
W.

thuff

unread,
Dec 13, 2016, 4:37:23 PM12/13/16
to Scala IDE User
OK I confused. On scala-ide.org the latest GA release is 4.4.1, 4.5.0 is the current release candidate #2. How are you on 4.6.0 neon? Am I downloading from the wrong site?

thuff

unread,
Dec 13, 2016, 4:43:35 PM12/13/16
to Scala IDE User
Ok wpopie I think it was a finger check with 4.6.0 cause 4.5.0 is neon.1. The question I have is what worksheet version  do you have as well as the scala version, 2.10 or 2.11?

wpopie...@virtuslab.com

unread,
Dec 14, 2016, 4:48:50 AM12/14/16
to Scala IDE User
default one, so 2.11.8. Worksheet version 0.6.0.

thuff

unread,
Dec 14, 2016, 9:17:18 AM12/14/16
to Scala IDE User
UPDATE: wpopie you are correct. It's version 4.6.1 eclipse , neon with the versions of scala  worksheets  you mentioned. I downloaded JDK 1.8.111 (64) and Scala_IDE 4.5 (neon) to windows. Installed and everything works as expected. The difference I noticed, in Windows when I save the worksheet, there's no asterisk next to the worksheets name after the save. In other words, the file is actually saved. In Ubuntu, there is always an asterisk beside the worksheets name. It seems like the file's never save. I checked the permissions and I own the workspace and subsequent files and folders,  the folders are 775, the worksheet is 664. I changed the folders to 777 and the worksheet to 666, with still the same problem. 

wpopie...@virtuslab.com

unread,
Dec 15, 2016, 3:32:15 AM12/15/16
to Scala IDE User
Glad to hear that it's working, I try to give a look on Ubuntu installation. Cannot promise that I do it now, because I'm lame Win user :) but no worries. Btw the asterisk problem can come even from xwindow service and impact Eclipse itself not specifically Scala IDE.

thuff

unread,
Dec 19, 2016, 5:07:08 PM12/19/16
to Scala IDE User
Thx wpopie
Reply all
Reply to author
Forward
0 new messages