scalatest / scalatest-eclipse-plugin

ScalaTest plugin for Scala IDE
scalatest.org
41 stars 20 forks source link

launching run-as ScalaTests generates NullPointerException Error #29

Open pep opened 11 years ago

pep commented 11 years ago

with Typesafe's ScalaIDE ScalaTest plugin install in ScalaSDK for Eclipse 3.0.1 on Windows 8

ScalaTest for Scala IDE 2.9.3.v-3-2_10-201307130940-55f5c32 org.scala-ide.sdt.scalatest.feature.feature.group scala-ide.org

When trying to launch run-as on a ScalaTest suite the follow error always occurs:

An internal error occurred during: "Launching ListSuite". java.lang.NullPointerException

pep commented 11 years ago

as it turns out my issue was caused by my maven (scala) project not having a scala nature. If the project isn't properly a scala one the Scala-IDE scalaTest plugin can't handle that. Very annoying as a lot of things just don't work at all and for a newbie its very frustrating especially starting with a scala project that used maven from elsewhere!!!!

see: http://stackoverflow.com/questions/3243984/scala-ide-error-projectname-is-not-a-scala-project

cheeseng commented 10 years ago

Sorry for the painful experience, I am not sure how I can help at the ScalaTest plugin level, am trying to ask in scala-ide-dev for advise:

https://groups.google.com/forum/#!topic/scala-ide-dev/JBr4g6U5b2M

rkrzewski commented 10 years ago

Do you have https://github.com/sonatype/m2eclipse-scala plugin installed in Eclipse? It's necessary to integrate Maven / m2e with Scala-IDE