Opening any scala file using the B5 plugin fires a NoSuchElementException
Migrated from http://lampsvn.epfl.ch/trac/scala/ticket/178
Reporter atoulme
I have set up myself to use the new Eclipse plugin version B5.
I have then installed that plugin source code and compiled the various projects needed until all errors were resolved.
Trying to access any scala file with the scala editor from the scala.plugin project or the lampion.core project throws this error:
Trying to open any scala file of your plugin with your B5 results in the error:
java.util.NoSuchElementException: None.get
at scala.None$.get(Option.scala:137)
at scala.None$.get(Option.scala:135)
at lampion.eclipse.Plugin$$anon$3.<init>(Plugin.scala:268)
at lampion.eclipse.Plugin$class.NeutralFile(Plugin.scala :267)
at scala.tools.eclipse.Driver.NeutralFile(Driver.scala:7)
at lampion.eclipse.UIPlugin$class.fileFor(UIPlugin.scala:467)
at scala.tools.eclipse.Driver.fileFor(Driver.scala:7)
at lampion.eclipse.Editor$$anon$0.load (Editor.scala:259)
at lampion.eclipse.SourceViewer.inputDocumentChanged(SourceViewer.scala:133)
at org.eclipse.jface.text.TextViewer.fireInputDocumentChanged(TextViewer.java:2685)
at org.eclipse.jface.text.TextViewer.setDocument (TextViewer.java:2734)
at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:518)
at org.eclipse.jface.text.source.projection.ProjectionViewer.setDocument(ProjectionViewer.java:370)
From my investigation, it looks like it i an error thrown when trying to access the IFile being wrapped by the input.
I will investigate some more and report here.
Reporter atoulme
I have set up myself to use the new Eclipse plugin version B5.
I have then installed that plugin source code and compiled the various projects needed until all errors were resolved.
Trying to access any scala file with the scala editor from the scala.plugin project or the lampion.core project throws this error:
Trying to open any scala file of your plugin with your B5 results in the error:
java.util.NoSuchElementException: None.get
at scala.None$.get(Option.scala:137)
at scala.None$.get(Option.scala:135)
at lampion.eclipse.Plugin$$anon$3.<init>(Plugin.scala:268)
at lampion.eclipse.Plugin$class.NeutralFile(Plugin.scala :267)
at scala.tools.eclipse.Driver.NeutralFile(Driver.scala:7)
at lampion.eclipse.UIPlugin$class.fileFor(UIPlugin.scala:467)
at scala.tools.eclipse.Driver.fileFor(Driver.scala:7)
at lampion.eclipse.Editor$$anon$0.load (Editor.scala:259)
at lampion.eclipse.SourceViewer.inputDocumentChanged(SourceViewer.scala:133)
at org.eclipse.jface.text.TextViewer.fireInputDocumentChanged(TextViewer.java:2685)
at org.eclipse.jface.text.TextViewer.setDocument (TextViewer.java:2734)
at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:518)
at org.eclipse.jface.text.source.projection.ProjectionViewer.setDocument(ProjectionViewer.java:370)
From my investigation, it looks like it i an error thrown when trying to access the IFile being wrapped by the input.
I will investigate some more and report here.
Leave a comment
Trac author: mcdirmid
I hardened this. It can occur if the file being opened is not a part of the project's source. In general, that isn't reccomended.
I hardened this. It can occur if the file being opened is not a part of the project's source. In general, that isn't reccomended.
on 2009-01-14 12:54 *
By tracImporter
Closed As: invalid