sbteclipse
plugin to generate the Eclipse project files and imported them into my workspace.The imported projects build fine without any errors, but when I open a Scala source file in the editor, all imports from referenced projects are not found (i.e., underlined in red). However, when I create a Java source file in the very same project and add one of the imports that fail in the Scala source, they are resolved correctly. What is going wrong here? |
--You received this message because you are subscribed to the Google Groups "Scala IDE User" group.To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/52520e92-4710-4f74-8dfb-56833b8b1c48%40googlegroups.com.For more options, visit https://groups.google.com/d/optout.
Hello,"Restart Presentation Compiler" does nothing at all.I am using Scala IDE 4.5 and the sbteclipse-plugin 5.1.0. My project is using Scala 2.10 with Java source level of 1.7 because I am using Spark, and some components of my project are also used with Matlab which requires Java 7.
Am Mittwoch, 18. Januar 2017 14:43:32 UTC+1 schrieb Simon Schäfer:Is the problem resolved by restarting the presentation compiler? Can be done in right click on project > Scala > Restart PC---- On Wed, 18 Jan 2017 14:14:15 +0100 'Jens Rabe' via Scala IDE User <scala-i...@googlegroups.com> wrote ----I am currently trying out scala-ide. So I usedsbteclipse
plugin to generate the Eclipse project files and imported them into my workspace.
The imported projects build fine without any errors, but when I open a Scala source file in the editor, all imports from referenced projects are not found (i.e., underlined in red).
However, when I create a Java source file in the very same project and add one of the imports that fail in the Scala source, they are resolved correctly.
What is going wrong here?
--You received this message because you are subscribed to the Google Groups "Scala IDE User" group.To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/52520e92-4710-4f74-8dfb-56833b8b1c48%40googlegroups.com.For more options, visit https://groups.google.com/d/optout.
--You received this message because you are subscribed to the Google Groups "Scala IDE User" group.To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/3c5423e6-d1f5-4e08-8d58-80e2c908048c%40googlegroups.com.
---- On Wed, 18 Jan 2017 18:04:16 +0100 'Jens Rabe' via Scala IDE User <scala-i...@googlegroups.com> wrote ----Hello,"Restart Presentation Compiler" does nothing at all.I am using Scala IDE 4.5 and the sbteclipse-plugin 5.1.0. My project is using Scala 2.10 with Java source level of 1.7 because I am using Spark, and some components of my project are also used with Matlab which requires Java 7.I forgot to ask: Does it build fine in Eclipse or only in sbt. If it doesn't compile in Eclipse, the generated Eclipse builds are broken and need to be manually adjusted. sbteclipse is not a perfect tool here.
2017-01-19 09:04:51,594 WARN [main] - org.scala-ide.sdt.core - org.scala-ide.sdt.core - org.scala-ide.sdt.core - 0 - Preference scala.compiler.sourceLevel was uninitialized for lama.exchangeformat.avro.units, setting default to 2.11.
2017-01-19 09:04:51,784 ERROR [Worker-3] - System.err - log4j:WARN No appenders could be found for logger (org.eclipse.jgit.util.FS).
2017-01-19 09:04:51,785 ERROR [Worker-3] - System.err - log4j:WARN Please initialize the log4j system properly.
2017-01-19 09:06:05,075 ERROR [Worker-5] - System.err - C:\Users\rabjen\AppData\Local\Temp\sbt_78b31e70\xsbt\ClassName.scala:16: error: not found: value enteringPhase
enteringPhase(currentRun.flattenPhase.next) { s fullName separator }
^
2017-01-19 09:06:05,080 ERROR [Worker-5] - System.err - C:\Users\rabjen\AppData\Local\Temp\sbt_78b31e70\xsbt\ClassName.scala:29: error: not found: value enteringPhase
protected def classNameAsSeenIn(in: Symbol, s: Symbol): String = enteringPhase(currentRun.picklerPhase.next) {
^
2017-01-19 09:06:05,081 ERROR [Worker-5] - System.err - C:\Users\rabjen\AppData\Local\Temp\sbt_78b31e70\xsbt\ClassName.scala:39: error: not found: value enteringPhase
enteringPhase(currentRun.picklerPhase.next) { s.fullName }
^
2017-01-19 09:06:05,082 ERROR [Worker-5] - System.err - C:\Users\rabjen\AppData\Local\Temp\sbt_78b31e70\xsbt\ClassName.scala:42: error: not found: value enteringPhase
enteringPhase(currentRun.picklerPhase.next) {
^
2017-01-19 09:06:06,128 ERROR [Worker-5] - System.err - C:\Users\rabjen\AppData\Local\Temp\sbt_78b31e70\xsbt\DelegatingReporter.scala:48: error: value finalPosition is not a member of scala.reflect.internal.util.Position
posIn.finalPosition
^
2017-01-19 09:06:06,273 ERROR [Worker-5] - System.err - C:\Users\rabjen\AppData\Local\Temp\sbt_78b31e70\xsbt\Dependency.scala:170: error: not found: value devWarning
devWarning(s"No enclosing class. Discarding dependency on $dep (currentOwner = $currentOwner).")
^
2017-01-19 09:06:06,519 ERROR [Worker-5] - System.err - C:\Users\rabjen\AppData\Local\Temp\sbt_78b31e70\xsbt\ExtractAPI.scala:208: error: not found: value enteringPhase
enteringPhase(currentRun.typerPhase.next) {
^
2017-01-19 09:06:06,698 ERROR [Worker-5] - System.err - C:\Users\rabjen\AppData\Local\Temp\sbt_78b31e70\xsbt\ExtractAPI.scala:378: error: value getterIn is not a member of ExtractAPI.this.global.Symbol
val getter = sym.getterIn(sym.enclClass)
^
2017-01-19 09:06:06,803 ERROR [Worker-5] - System.err - C:\Users\rabjen\AppData\Local\Temp\sbt_78b31e70\xsbt\ExtractAPI.scala:616: error: value unexpandedName is not a member of ExtractAPI.this.global.Symbol
val n = s.unexpandedName
^
2017-01-19 09:06:06,862 ERROR [Worker-5] - System.err - C:\Users\rabjen\AppData\Local\Temp\sbt_78b31e70\xsbt\ExtractUsedNames.scala:145: error: value hasSymbolField is not a member of ExtractUsedNames.this.global.Tree
case t if t.hasSymbolField =>
^
2017-01-19 09:06:06,915 ERROR [Worker-5] - System.err - C:\Users\rabjen\AppData\Local\Temp\sbt_78b31e70\xsbt\GlobalHelpers.scala:21: error: type MacroExpansionAttachment is not a member of scala.tools.nsc.typechecker.Analyzer{val global: GlobalHelpers.this.global.type}
case att: analyzer.MacroExpansionAttachment => att.expandee
^
2017-01-19 09:06:06,918 ERROR [Worker-5] - System.err - C:\Users\rabjen\AppData\Local\Temp\sbt_78b31e70\xsbt\GlobalHelpers.scala:21: error: value expandee is not a member of Any
case att: analyzer.MacroExpansionAttachment => att.expandee
^
2017-01-19 09:06:06,995 ERROR [Worker-5] - System.err - 12 errors found
Follow up:I googled some of the error messages and this post in the same group came up. So I gave it a try and switched the Scala version to 2.11, and now everything works. I think my problem is related to the bug in the linked post.