I realize the message may not be the clearest possible, but it does
point in the right direction: your project classpath. The Scala
repository does not contain a '.classpath' file (it may contain
user-specific entries). Just rename 'classpath.SAMPLE' to '.classpath'
and try again.
It must be said that the Scala (Eclipse) project only compiles the
compiler sources, not the library.
> I have Eclipse Helios 3.6.1 and the Scala plugin with compile 2.8.1.
> Unfortunately, I cannot find the exact plugin Version, because Help-
> About Eclipse now yields:
It's highly recommended you try one of the 2.0-beta versions, using
2.9.0.RC3. We'll probably release today a version in line with the
current Scala release (2.9).
iulian
>
> java.lang.NullPointerException
> at java.io.FilterInputStream.close(Unknown Source)
> at
> org.eclipse.ui.internal.about.AboutBundleGroupData.getFeatureImageCrc(AboutBundleGroupData.java:
> 104)
> ...
>
> eclipse.buildId=M20110210-1200
> java.version=1.6.0_25
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=nl_NL
> Framework arguments: -product org.eclipse.epp.package.java.product
> Command-line arguments: -os win32 -ws win32 -arch x86 -product
> org.eclipse.epp.package.java.product
>
> I look forward to your help on both issues.
--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais
2011/5/14 André van Delft <andre.v...@gmail.com>:
> Thanks for the replies. I had for several minutes a nice view on the
> scala code with syntax hilighting.
>
> 1. However, the problem with the non working "Help-About Eclipse"
> persisted; I think it was somehow caused by the Scala plugin. Do you
> know how I can resolve this?
Unfortunately, I have no idea what might cause this, but please retry
with the latest beta. I use this feature all the time :)
>
> 2. After browsing the scala code for a while, Eclipse started to eat
> all CPU time, so I had to close the project.
>
> 3 After reopening, I got again "Unable to create editor ID
> scala.tools.eclipse.ScalaSourceFileEditor: Editor could not be
> initialized."
> java.lang.IllegalStateException: failed to access value
> at scala.tools.eclipse.ScalaProject.getOrFailed(ScalaProject.scala:90)
> at
> scala.tools.eclipse.ScalaProject.withPresentationCompiler(ScalaProject.scala:
> 421)
> ...
> Caused by: Java Model Exception: Java Model Status [scala does not
> exist]
This looks suspicious, since 'scala' is the currently open file. No idea.
> at
> org.eclipse.jdt.internal.core.JavaElement.newNotPresentException(JavaElement.java:
> 492)
> at
> org.eclipse.jdt.internal.core.JavaModelManager.getPerProjectInfoCheckExistence(JavaModelManager.java:
> 2162)
>
> 4. I restarted Eclipse, and the Scala editor seems to work again on
> project scala.
> However there are lots of red lines for compilation errors.
> For instance, in (scala.tools.nsc.) CompilerCommand.scala, the editor
> reports on the line "import io.File" the error "File is not a member
> of io.{<null>}"
>
> I would appreciate your help again
>
It's most likely a classpath problem (once you have the right plugin).
You need to have the Scala Library on your classpath, together with
other dependencies in scala/lib (like fjbg.jar, msil.jar , ant.jar).
The sample project included in the SVN repository should take care of
them, though.
iulian
1. "About ..."
no idea, please open a ticket with full stacktrace
2. "...eat all CPU time...3
display the memory used by eclipse (see setup in the wiki)
If you don't have enough memory (after few time), GC will run
non-stop and eat CPU
If it's not a memory/GC issue ... open a ticket with full stack
trace (use jstack or jvisualvm)
3. "... Unable to create editor ID ..."
there are lot of cause, but it seems (with the info provided) that
eclipse didn't find a directory /scala (in the workspace)
4. "..."
What's append after "project > clean" ?
Cheers,
/davidB