scala-ide / scala-worksheet

A Scala IDE plugin for a multi-line REPL (called worksheet)
96 stars 24 forks source link

Worksheet does not evaluate when the project name has a SPACE. (OS X) #225

Open sakoht opened 9 years ago

sakoht commented 9 years ago

I just installed the latest Scala IDE on a fairly new Mac, and the worksheets do not evaluate. No error messages.

To reproduce from scratch:

  1. On a Macbook Air running up-to-date OS X Yosemite 10.10.4.
  2. Download the latest stable Scala IDE: http://downloads.typesafe.com/scalaide-pack/4.1.0-vfinal-luna-211-20150704/scala-SDK-4.1.0-vfinal-2.11-macosx.cocoa.x86_64.zip
  3. Launch directly from the download directly by double-clicking eclipse.app.
  4. Select "New" > "Scala Project".
  5. Enter "Hello World" and press enter.
  6. Right-click on the project and choose "New" > "Scala Worksheet"
  7. Give it a name like "Sheet".
  8. Note that the single line of example code doesn't evaluate:

screen shot 2015-07-15 at 1 21 23 pm

Environment:

Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

I ran from a terminal and did not see any error messages.

kiritsuku commented 9 years ago

Is there anything shown in the error log (Scala > Show Log)?

sakoht commented 9 years ago

Nothing that says anything about an error.

I did a fresh restart with an empty log file, and went straight viewing the sheet. This is the log content:

2015-07-15 18:06:02,664 DEBUG [main] - RegistryExtender - Injection of Scala wizard elements was successful
2015-07-15 18:06:02,679  INFO [main] - ScalaPlugin - Scala compiler bundle: /Applications/Eclipse/plugins/org.scala-lang.scala-compiler_2.11.7.v20150622-112736-1fbce4612c.jar
2015-07-15 18:06:05,151  WARN [Worker-1] - ScalaProject - Project Hello World has platform default sourceLevel.
2015-07-15 18:06:05,153  WARN [Worker-1] - ScalaProject - Project Hello World runs on platform default installation.
2015-07-15 18:06:14,620  WARN [org.eclipse.jface.text.reconciler.MonoReconciler] - ScalaProject - Project Hello World has platform default sourceLevel.
2015-07-15 18:06:14,621  WARN [org.eclipse.jface.text.reconciler.MonoReconciler] - ScalaProject - Project Hello World runs on platform default installation.
2015-07-15 18:06:14,624 DEBUG [org.eclipse.jface.text.reconciler.MonoReconciler] - ScalaProject - Added output folder: F/Hello World/src: F/Hello World/bin
2015-07-15 18:06:15,135 DEBUG [org.eclipse.jface.text.reconciler.MonoReconciler] - ScalaProject - javabootclasspath: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/System/Library/Java/Extensions/AppleScriptEngine.jar:/System/Library/Java/Extensions/dns_sd.jar:/System/Library/Java/Extensions/j3daudio.jar:/System/Library/Java/Extensions/j3dcore.jar:/System/Library/Java/Extensions/j3dutils.jar:/System/Library/Java/Extensions/jai_codec.jar:/System/Library/Java/Extensions/jai_core.jar:/System/Library/Java/Extensions/mlibwrapper_jai.jar:/System/Library/Java/Extensions/MRJToolkit.jar:/System/Library/Java/Extensions/vecmath.jar
2015-07-15 18:06:15,136 DEBUG [org.eclipse.jface.text.reconciler.MonoReconciler] - ScalaProject - javaextdirs:  
2015-07-15 18:06:15,136 DEBUG [org.eclipse.jface.text.reconciler.MonoReconciler] - ScalaProject - scalabootclasspath: /Applications/Eclipse/plugins/org.scala-lang.scala-library_2.11.7.v20150622-112736-1fbce4612c.jar
2015-07-15 18:06:15,137 DEBUG [org.eclipse.jface.text.reconciler.MonoReconciler] - ScalaProject - user classpath: /Users/ssmith/ws/Hello World/bin:/Applications/Eclipse/plugins/org.scala-lang.scala-reflect_2.11.7.v20150622-112736-1fbce4612c.jar:/Applications/Eclipse/plugins/org.scala-lang.scala-actors_2.11.7.v20150622-112736-1fbce4612c.jar:/Applications/Eclipse/plugins/org.scala-lang.scala-library_2.11.7.v20150622-112736-1fbce4612c.jar
2015-07-15 18:06:15,146 DEBUG [org.eclipse.jface.text.reconciler.MonoReconciler] - ScalaProject - [Hello World] initializing -deprecation to false (false)
2015-07-15 18:06:15,146 DEBUG [org.eclipse.jface.text.reconciler.MonoReconciler] - ScalaProject - [Hello World] initializing -unchecked to false (false)
2015-07-15 18:06:15,146 DEBUG [org.eclipse.jface.text.reconciler.MonoReconciler] - ScalaProject - [Hello World] initializing -verbose to false (false)
2015-07-15 18:06:15,147 DEBUG [org.eclipse.jface.text.reconciler.MonoReconciler] - ScalaProject - [Hello World] initializing -Xexperimental to false (false)
2015-07-15 18:06:15,147 DEBUG [org.eclipse.jface.text.reconciler.MonoReconciler] - ScalaProject - [Hello World] initializing -Xfuture to false (false)
2015-07-15 18:06:15,147 DEBUG [org.eclipse.jface.text.reconciler.MonoReconciler] - ScalaProject - [Hello World] initializing -Xpluginsdir to misc/scala-devel/plugins (misc/scala-devel/plugins)
2015-07-15 18:06:15,147 DEBUG [org.eclipse.jface.text.reconciler.MonoReconciler] - ScalaProject - [Hello World] initializing -Ypresentation-debug to false (false)
2015-07-15 18:06:15,148 DEBUG [org.eclipse.jface.text.reconciler.MonoReconciler] - ScalaProject - [Hello World] initializing -Ypresentation-verbose to false (false)
2015-07-15 18:06:15,148 DEBUG [org.eclipse.jface.text.reconciler.MonoReconciler] - ScalaProject - [Hello World] initializing -Ypresentation-delay to 0 (0)
2015-07-15 18:06:15,148  INFO [org.eclipse.jface.text.reconciler.MonoReconciler] - ScalaProject - setting additional parameters: 
2015-07-15 18:06:16,081 DEBUG [org.eclipse.jface.text.reconciler.MonoReconciler] - PresentationCompilerProxy - Presentation compiler classpath: merged classpath (directory classpath: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/resources.jar
directory classpath: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/rt.jar
directory classpath: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/jsse.jar
directory classpath: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/jce.jar
directory classpath: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/charsets.jar
directory classpath: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/jfr.jar
directory classpath: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/ext/cldrdata.jar
directory classpath: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/ext/dnsns.jar
directory classpath: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/ext/jfxrt.jar
directory classpath: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/ext/localedata.jar
directory classpath: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/ext/nashorn.jar
directory classpath: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/ext/sunec.jar
directory classpath: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar
directory classpath: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar
directory classpath: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/ext/zipfs.jar
directory classpath: /System/Library/Java/Extensions/AppleScriptEngine.jar
directory classpath: /System/Library/Java/Extensions/dns_sd.jar
directory classpath: /System/Library/Java/Extensions/j3daudio.jar
directory classpath: /System/Library/Java/Extensions/j3dcore.jar
directory classpath: /System/Library/Java/Extensions/j3dutils.jar
directory classpath: /System/Library/Java/Extensions/jai_codec.jar
directory classpath: /System/Library/Java/Extensions/jai_core.jar
directory classpath: /System/Library/Java/Extensions/mlibwrapper_jai.jar
directory classpath: /System/Library/Java/Extensions/MRJToolkit.jar
directory classpath: /System/Library/Java/Extensions/vecmath.jar
directory classpath: /Applications/Eclipse/plugins/org.scala-lang.scala-library_2.11.7.v20150622-112736-1fbce4612c.jar
directory classpath: /Users/ssmith/ws/Hello World/bin
directory classpath: /Applications/Eclipse/plugins/org.scala-lang.scala-reflect_2.11.7.v20150622-112736-1fbce4612c.jar
directory classpath: /Applications/Eclipse/plugins/org.scala-lang.scala-actors_2.11.7.v20150622-112736-1fbce4612c.jar
sourcepath: /Users/ssmith/ws/Hello World/src)
2015-07-15 18:06:16,082 DEBUG [org.eclipse.jface.text.reconciler.MonoReconciler] - PresentationCompilerActivityListener - Starting PresentationCompilerActivityListener for project Hello World
2015-07-15 18:06:16,093  INFO [org.eclipse.jface.text.reconciler.MonoReconciler] - ScalaPresentationCompiler - Clearing doc comments (0 entries)
sakoht commented 9 years ago

I made a one-character change and re-saved. Still no errors in the log.

kiritsuku commented 9 years ago

The error log view (Window > Show View > Other > Error Log) doesn't show anything either? I just tested in with the Linux 64bit version and everything works fine there. Don't have a Mac to test it there though.

sakoht commented 9 years ago

The only new entry is an info message:

System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
sakoht commented 9 years ago

The error occurs only when the project name has space????

These were made identically, except for the project names: screen shot 2015-07-16 at 7 39 37 am

kiritsuku commented 9 years ago

Thanks, that is it. When I enable debug logging I get:

2015-07-16 16:50:51,284 DEBUG [bundle-320-ActorSystem-akka.actor.default-dispatcher-4] - System.out - [WARN] [07/16/2015 16:50:51.284] [bundle-320-ActorSystem-akka.actor.default-dispatcher-2] [akka://bundle-320-ActorSystem/user/worksheet-runtime/worksheet-manager] Illegal actor name [worksheet-runner-for-project-Hello World]. Actor paths MUST: not start with `$`, include only ASCII letters and can only contain these special characters: -_.*$+:@&=,!~';.
sakoht commented 9 years ago

Where did you enable the logging to see that?

kiritsuku commented 9 years ago

Window > Preferences > Scala > Logging > Log Level: Debug

sakoht commented 9 years ago

I see. And was a DEBUG message instead of an ERROR.