Run Tests from intellij-scala-master

Hello.

I try to fix some bug in scala plugin.
I checkout source code from git
When I run ParserTest I got error

How can I fix it?

-----------------------------
org.junit.ComparisonFailure:  <Click to see difference>
 at org.junit.Assert.assertEquals(Assert.java:125)
 at org.junit.Assert.assertEquals(Assert.java:147)
 at org.jetbrains.plugins.scala.testcases.BaseScalaFileSetTestCase.runTest(BaseScalaFileSetTestCase.java:81)
 at org.jetbrains.plugins.scala.testcases.FileSetTestCase$ActualTest.runTest(FileSetTestCase.java:122)
 at com.intellij.testFramework.LightPlatformTestCase.c(LightPlatformTestCase.java:693)

-----------------------------
Expected
ScalaFile
  ScImportStatement
    PsiElement(import)('import')
    PsiWhiteSpace(' ')
    ImportExpression
      CodeReferenceElement
        CodeReferenceElement
          PsiElement(identifier)('a')
        PsiElement(.)('.')
        PsiElement(identifier)('b')


-----------------------------
Actual

PsiFile(plain text)
  PsiPlainText('import a.b')

6 comments

Your IDEA, which you use for debug is not compatible with current plugin sources (for development you can use any IDEA version). You can find right version in plugin.xml (also you can change some properties here).
Actual IDEA version for the latest master sources is 132.839.

Best regards,
Alexander Podkhalyuzin.

0

Hi. Thank you for an answer.

I use latest EAP(132.839) for a test run.
I use same SDK for a project compilation.

Now I have following error:

C:\java\java7\bin\java -ea -Xbootclasspath/a:C:/java/ideaIU-132.839\lib\boot.jar "-Didea.home.path=C:\Users\Николай Ижиков\.IntelliJIdea13\system\plugins-sandbox\test" "-Didea.plugins.path=C:\Users\Николай Ижиков\.IntelliJIdea13\system\plugins-sandbox\plugins" -Didea.launcher.port=7543 -Didea.launcher.bin.path=C:\java\ideaIU-132.839\bin -Dfile.encoding=UTF-8 -classpath <skipclasspath> com.intellij.rt.execution.application.AppMain com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 org.jetbrains.plugins.scala.lang.parser.ParserTest
log4j:WARN No appenders could be found for logger (com.intellij.ide.plugins.PluginBean).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
ERROR: Problems found loading plugins:
<br>Plugin "JSF Support" was not loaded: required plugin "com.intellij.javaee" not installed.<br><br><a href="disable">Disable JSF Support</a><br><a href="edit">Open plugin manager</a>
java.lang.Throwable
 at com.intellij.openapi.diagnostic.Logger.error(Logger.java:113)
 at com.intellij.ide.plugins.PluginManagerCore.prepareLoadingPluginsErrorMessage(PluginManagerCore.java:440)

0

It means that classpath of your running contains "JSF Support" plugin and doesn't contains "javaee" (somehow). Just remove JSF plugin from running tests classpath and everything will become ok (or add javaee, if you really need JSF).

Best regards,
Alexander Podkhalyuzin.

0

Thank you.

Now I have working environment for Scala plugin development.

0

Ok, sounds great! If you need some starting point for something you want to implement, then just ask, we will try our the best to help you.

Best regards,
Alexander Podkhalyuzin.

0

Thank you. I found some minor bug in Scala file parser. I want  try to fix it by myself. If I fail, I send you a test to reproduce a bug

0

Please sign in to leave a comment.