Could you post the contents of your scala.properties file, and the build error?

0


scala.properties:
scala.plugin.version=0.3

idea.home=/Applications/IdeaX-IU-98.311.app/
scala.lib=/usr/local/scala-2.8.0.final/lib
jdk.home=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home




Ant's output:

[scalac] Compiling 929 scala and 96 java source files to /Users/chilang/code/scala-plugin/classes/production/Scala
   [scalac] /Users/chilang/code/scala-plugin/src/org/jetbrains/plugins/scala/lang/completion/ScalaClassNameInsertHandler.scala:5: error: ClassNameInsertHandlerResult is not a member of com.intellij.codeInsight.completion.AllClassesGetter
   [scalac] import com.intellij.codeInsight.completion.AllClassesGetter.{ClassNameInsertHandlerResult, ClassNameInsertHandler}
   [scalac]        ^
   [scalac] /Users/chilang/code/scala-plugin/src/org/jetbrains/plugins/scala/lang/completion/ScalaClassNameInsertHandler.scala:18: error: not found: type ClassNameInsertHandler
   [scalac] class ScalaClassNameInsertHandler extends ClassNameInsertHandler {
   [scalac]                                           ^
   [scalac] /Users/chilang/code/scala-plugin/src/org/jetbrains/plugins/scala/lang/completion/ScalaClassNameInsertHandler.scala:19: error: not found: type ClassNameInsertHandlerResult
   [scalac]   def handleInsert(context: InsertionContext, item: JavaPsiClassReferenceElement): ClassNameInsertHandlerResult = {
   [scalac]                                                                                    ^
   [scalac] /Users/chilang/code/scala-plugin/src/org/jetbrains/plugins/scala/lang/completion/ScalaClassNameInsertHandler.scala:21: error: not found: value ClassNameInsertHandlerResult
   [scalac]     if (!file.isInstanceOf[ScalaFile]) return ClassNameInsertHandlerResult.CHECK_FOR_CORRECT_REFERENCE
   [scalac]                                               ^
   [scalac] /Users/chilang/code/scala-plugin/src/org/jetbrains/plugins/scala/lang/completion/ScalaClassNameInsertHandler.scala:25: error: not found: value ClassNameInsertHandlerResult
   [scalac]       return ClassNameInsertHandlerResult.INSERT_FQN
   [scalac]              ^
   [scalac] /Users/chilang/code/scala-plugin/src/org/jetbrains/plugins/scala/lang/completion/ScalaClassNameInsertHandler.scala:30: error: value ClassNameInsertHandlerResult is not a member of object com.intellij.codeInsight.completion.AllClassesGetter
   [scalac]     if (!psiClass.isValid) return AllClassesGetter.ClassNameInsertHandlerResult.CHECK_FOR_CORRECT_REFERENCE
   [scalac]                                                    ^
   [scalac] /Users/chilang/code/scala-plugin/src/org/jetbrains/plugins/scala/lang/completion/ScalaClassNameInsertHandler.scala:33: error: value ClassNameInsertHandlerResult is not a member of object com.intellij.codeInsight.completion.AllClassesGetter
   [scalac]     if (qname == null) return AllClassesGetter.ClassNameInsertHandlerResult.CHECK_FOR_CORRECT_REFERENCE
   [scalac]                                                ^
   [scalac] /Users/chilang/code/scala-plugin/src/org/jetbrains/plugins/scala/lang/completion/ScalaClassNameInsertHandler.scala:49: error: not found: value ClassNameInsertHandlerResult
   [scalac]       if (checkEquivalence(element)) return ClassNameInsertHandlerResult.REFERENCE_CORRECTED
   [scalac]                                             ^
   [scalac] /Users/chilang/code/scala-plugin/src/org/jetbrains/plugins/scala/lang/completion/ScalaClassNameInsertHandler.scala:57: error: not found: value ClassNameInsertHandlerResult
   [scalac]                 return ClassNameInsertHandlerResult.REFERENCE_CORRECTED
   [scalac]                        ^
   [scalac] /Users/chilang/code/scala-plugin/src/org/jetbrains/plugins/scala/lang/completion/ScalaClassNameInsertHandler.scala:64: error: not found: value ClassNameInsertHandlerResult
   [scalac]     return ClassNameInsertHandlerResult.INSERT_FQN
   [scalac]            ^
   [scalac] 10 errors found

BUILD FAILED
/Users/chilang/code/scala-plugin/build.xml:232: Compilation failed because of an internal compiler error; see the error output for details.

0

Please update sources. This is incompatibility with latest Maia EAP, which is fixed.

Best regards,
Alexander Podkhalyuzin.

0

alefas wrote:

Please update sources. This is incompatibility with latest Maia EAP, which is fixed.

Best regards,
Alexander Podkhalyuzin.

Great! It works now.
It could beneficial to put the repo under continuous build/TeamCity.
Cheers

0

请先登录再写评论。