-
Notifications
You must be signed in to change notification settings - Fork 20
aspectj tests are not runnable due to wrong classloader setup #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
aspectj tests are not runnable due to wrong classloader setup scalatest#42
work around by instrumenting scala test launcher:
|
LGTM for the changes in following commit: Like many projects, we do ask for a signed CLA from contributors, would you mind to signing the following CLA first: http://www.artima.com/cla/contributorsLicenseAgreement.pdf Thanks. :) |
|
@Andrei-Pozolotin Thanks! We'll pull the changes in and build a version today, and thanks also for the CLA suggestion to use google docs, we'll look into it. |
aspectj tests are not runnable due to wrong classloader setup #42 Conflicts: org.scala-ide.sdt.scalatest/src/scala/tools/eclipse/scalatest/launching/ScalaTestLauncher.scala
aspectj tests are not runnable due to wrong classloader setup #42 Conflicts: org.scala-ide.sdt.scalatest/src/scala/tools/eclipse/scalatest/launching/ScalaTestLauncher.scala
aspectj tests are not runnable due to wrong classloader setup #42 Conflicts: org.scala-ide.sdt.scalatest/src/scala/tools/eclipse/scalatest/launching/ScalaTestLauncher.scala Conflicts: org.scala-ide.sdt.scalatest/src/scala/tools/eclipse/scalatest/launching/ScalaTestLauncher.scala
aspectj tests are not runnable due to wrong classloader setup #42 Conflicts: org.scala-ide.sdt.scalatest/src/scala/tools/eclipse/scalatest/launching/ScalaTestLauncher.scala Conflicts: org.scala-ide.sdt.scalatest/src/scala/tools/eclipse/scalatest/launching/ScalaTestLauncher.scala
I merged and rebuilt the plugin, now we need to wait for the Scala IDE update site to pick it up, normally within a day. |
@Andrei-Pozolotin Scala IDE has picked up the new version, can you verify if it fixes your problem? |
@cheeseng great, thank you.
since you are the one who controls the plugin, can you
thanks |
@Andrei-Pozolotin Yes sorry I missed that commit, it is getting late over here, I shall be able to work on 2) when start tomorrow. As for the 3), it was an easy old workaround to support both ScalaTest 1.x and 2.x (ScalaTest 1.x uses -p while ScalaTest 2.x deprecated -p and uses -R, and that annoying banner comes from ScalaTest 2.x actually), we do have a better way to detect the ScalaTest version now, so I think we can fix this one too. |
@Andrei-Pozolotin Sorry got distracted, I built a new version that addresses the mentioned issue. Let's wait for the Scala IDE update site to pick it up. |
still do not see the change. how long does it normally take? |
@Andrei-Pozolotin Just wake up in the morning and seems like it is not being picked up yet, they told me it is within one day, I uploaded it at 6pm GMT+8 so I'll wait for a little longer, and if it is still not being picked after 24 hours I'll try to ping them. :) |
thanks |
@Andrei-Pozolotin just an update, I reported the problem here: https://groups.google.com/forum/#!topic/scala-ide-dev/VPQOL1W8Np4 hopefully can get a feedback soon. |
@Andrei-Pozolotin it is picked up, can you update to try and see if it fixes your issues? |
@cheeseng yes, I see the change, and it does resolve the issue. thank you. |
in projects such as kamon
https://github.com/kamon-io/Kamon
eclipse/scala-test aspectj tests are not runnable due to wrong classloader setup
https://github.com/scalatest/scalatest-eclipse-plugin/blob/master/org.scala-ide.sdt.scalatest/src/scala/tools/eclipse/scalatest/launching/ScalaTestLauncher.scala#L45
problem arises as follows:
-javaagent:aspectjweaving.jar
META-INF/aop.xml
and disables any further class transform form system classloaderscala-test launcher is hacking system classloader in
main()
by adding all the jars from eclipse class path, but aspectj will never see the changeall following tests fail, since
META-INF/aop.xml
are present, but ignored by aspectj.solution:
The text was updated successfully, but these errors were encountered: