Skip to content
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

enhancement to run scalatest test with ScalaRunner #51

Open
wants to merge 1 commit into
base: kepler-nightly-2.11
Choose a base branch
from

Conversation

wpopielarski
Copy link

currently the scalatest launcher uses standard java vm runner
to run or debug tests. It works fine with a java expression
evaluator but with the Scala IDE 4.1.0 there is available the
Scala Expression Evaluator which requires a Scala Debugger.
This enhancement adds a new scala launcher. From now it is
possible to choose appropriate launcher:

  • an old java one especially for java projects where tests are written
    with scalatest. Then debugging and evaluation can be done with a java
    evaluator
  • a new scala one for scala projects (can be used for java projects as
    well but is not documented).
    You can stop in breakpoint during a test execution and evaluate
    arbitrary expression.

This PR must be taken with scala-ide PR #955

Fix #52

@cheeseng
Copy link
Contributor

hi @wpopielarski thanks for the great enhancement! We highly appreciate your help, like many other open source projects ScalaTest's project policy requires contributor to sign a CLA first before we can merge in the code, can you please print, sign, scan the following CLA:

http://www.artima.com/cla/contributorsLicenseAgreement.pdf

or for corporation:

http://www.artima.com/cla/corpContributorsLicenseAgreement.pdf

and please send the signed copy to:

[email protected]

We apologize for the tedium, we have been wanting to provide a digital way to do it, but unfortunately have not found an opportunity to do it yet.

@kiritsuku
Copy link

The fix message is inaccurate - ScalaTest has its own ticket tracker.

runner.run(runConfig, launch, monitor)

// check for cancellation
if (monitor.isCanceled())

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are already at the end of the method - no need to do this check.

configMap.put(SCALATEST_LAUNCH_TESTS_NAME, testNameSet)

config.setAttributes(configMap)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setAttributes(map) overrides all attributes (even if they had been read from .launch file. A code below just sets/overrides some of them.

@bvenners
Copy link
Contributor

bvenners commented Jun 2, 2015

Hi wpopielarski,

Wanted to ping you on the CLA. Are you OK with it?

Thanks.

Bill

@wpopielarski
Copy link
Author

Hi Bill
I'm OK

Regards
Wieslaw

2015-06-02 7:31 GMT+02:00 Bill Venners [email protected]:

Hi wpopielarski,

Wanted to ping you on the CLA. Are you OK with it?

Thanks.

Bill


Reply to this email directly or view it on GitHub
#51 (comment)
.

@wpopielarski
Copy link
Author

generally i sent cla 6 days ago

2015-06-02 8:28 GMT+02:00 Wieslaw Popielarski [email protected]:

Hi Bill
I'm OK

Regards
Wieslaw

2015-06-02 7:31 GMT+02:00 Bill Venners [email protected]:

Hi wpopielarski,

Wanted to ping you on the CLA. Are you OK with it?

Thanks.

Bill


Reply to this email directly or view it on GitHub
#51 (comment)
.

@wpopielarski
Copy link
Author

here is an email
---------- Forwarded message ----------
From: Wieslaw Popielarski [email protected]
Date: 2015-05-27 11:45 GMT+02:00
Subject: Fwd: [scalatest-eclipse-plugin] enhancement to run scalatest test
with ScalaRunner (#51)
To: [email protected]

Hello CLA team,

let me send you signed docs to get a consent to contribute into
scalatest-eclipse-plugin project.

Regards,
Wieslaw Popielarski

---------- Forwarded message ----------
From: Chua Chee Seng [email protected]
Date: 2015-05-27 5:45 GMT+02:00
Subject: Re: [scalatest-eclipse-plugin] enhancement to run scalatest test
with ScalaRunner (#51)
To: scalatest/scalatest-eclipse-plugin <
[email protected]>
Cc: wpopielarski [email protected]

hi @wpopielarski https://github.com/wpopielarski thanks for the great
enhancement! We highly appreciate your help, like many other open source
projects ScalaTest's project policy requires contributor to sign a CLA
first before we can merge in the code, can you please print, sign, scan the
following CLA:

http://www.artima.com/cla/contributorsLicenseAgreement.pdf

or for corporation:

http://www.artima.com/cla/corpContributorsLicenseAgreement.pdf

and please send the signed copy to:

[email protected]

We apologize for the tedium, we have been wanting to provide a digital way
to do it, but unfortunately have not found an opportunity to do it yet.


Reply to this email directly or view it on GitHub
#51 (comment)
.

@bvenners
Copy link
Contributor

bvenners commented Jun 2, 2015

Hi Wieslaw,

Ah, great. I checked my inbox and don't see it yet. I'll double check the alias and see if I can find it.

Thanks.

Bill

@bvenners
Copy link
Contributor

bvenners commented Jun 2, 2015

Hi Wieslaw,

Found it in my spam folder. Apparently it thought your email might be a phishing attack. Thanks again for the contribution and we'll try and get it in quickly now that we found the CLA.

Bill

@bvenners
Copy link
Contributor

bvenners commented Jun 2, 2015

Hi Wieslaw,

By the way Chee Seng checked and your email was also in his spam folder. Perhaps something unusual in the headers perhaps? Gmail thought for some reason the email might not be from who it said it was from.

Bill

@wpopielarski
Copy link
Author

no worries guys :), i'm glad I can contribute :)

2015-06-02 20:24 GMT+02:00 Bill Venners [email protected]:

Hi Wieslaw,

By the way Chee Seng checked and your email was also in his spam folder.
Perhaps something unusual in the headers perhaps? Gmail thought for some
reason the email might not be from who it said it was from.

Bill


Reply to this email directly or view it on GitHub
#51 (comment)
.

@cheeseng
Copy link
Contributor

cheeseng commented Jun 3, 2015

@wpopielarski i am trying to build after merging your changes, but I got this:

[ERROR] /home/cheeseng/git/scalatest-eclipse-plugin/org.scala-ide.sdt.scalatest/src/scala/tools/eclipse/scalatest/launching/ScalaTestLaunchDelegate.scala:69: error: object ClasspathGetterForLaunchDelegate is not a member of package org.scalaide.core.internal.launching
[ERROR] import org.scalaide.core.internal.launching.ClasspathGetterForLaunchDelegate
[ERROR]        ^
[ERROR] /home/cheeseng/git/scalatest-eclipse-plugin/org.scala-ide.sdt.scalatest/src/scala/tools/eclipse/scalatest/launching/ScalaTestLaunchDelegate.scala:71: error: not found: type ClasspathGetterForLaunchDelegate
[ERROR] class ScalaTestLaunchDelegate extends AbstractJavaLaunchConfigurationDelegate with ClasspathGetterForLaunchDelegate {
[ERROR]                                                                                    ^
[ERROR] /home/cheeseng/git/scalatest-eclipse-plugin/org.scala-ide.sdt.scalatest/src/scala/tools/eclipse/scalatest/launching/ScalaTestScalaLaunchDelegate.scala:3: error: object ScalaDebuggerForLaunchDelegate is not a member of package org.scalaide.debug.internal.launching
[ERROR] import org.scalaide.debug.internal.launching.ScalaDebuggerForLaunchDelegate
[ERROR]        ^
[ERROR] /home/cheeseng/git/scalatest-eclipse-plugin/org.scala-ide.sdt.scalatest/src/scala/tools/eclipse/scalatest/launching/ScalaTestScalaLaunchDelegate.scala:5: error: not found: type ScalaDebuggerForLaunchDelegate
[ERROR] class ScalaTestScalaLaunchDelegate extends ScalaTestLaunchDelegate with ScalaDebuggerForLaunchDelegate {
[ERROR]                                                                         ^
[ERROR] four errors found

I wonder if I am building against wrong scala-ide version, I have tried building againts:

http://download.scala-ide.org/sdk/lithium/e44/scala211/stable/site

and

http://download.scala-ide.org/nightly-scala-ide-luna-211x

May I know which scala-ide url did you build with?

Thanks.

@wpopielarski
Copy link
Author

let me check if it is available in nightly build. The PR with the change
for scala-ide has been pulled yesterday morning
W.

2015-06-03 6:11 GMT+02:00 Chua Chee Seng [email protected]:

@wpopielarski https://github.com/wpopielarski i am trying to build
after merging your changes, but I got this:

[ERROR] /home/cheeseng/git/scalatest-eclipse-plugin/org.scala-ide.sdt.scalatest/src/scala/tools/eclipse/scalatest/launching/ScalaTestLaunchDelegate.scala:69: error: object ClasspathGetterForLaunchDelegate is not a member of package org.scalaide.core.internal.launching
[ERROR] import org.scalaide.core.internal.launching.ClasspathGetterForLaunchDelegate
[ERROR] ^
[ERROR] /home/cheeseng/git/scalatest-eclipse-plugin/org.scala-ide.sdt.scalatest/src/scala/tools/eclipse/scalatest/launching/ScalaTestLaunchDelegate.scala:71: error: not found: type ClasspathGetterForLaunchDelegate
[ERROR] class ScalaTestLaunchDelegate extends AbstractJavaLaunchConfigurationDelegate with ClasspathGetterForLaunchDelegate {
[ERROR] ^
[ERROR] /home/cheeseng/git/scalatest-eclipse-plugin/org.scala-ide.sdt.scalatest/src/scala/tools/eclipse/scalatest/launching/ScalaTestScalaLaunchDelegate.scala:3: error: object ScalaDebuggerForLaunchDelegate is not a member of package org.scalaide.debug.internal.launching
[ERROR] import org.scalaide.debug.internal.launching.ScalaDebuggerForLaunchDelegate
[ERROR] ^
[ERROR] /home/cheeseng/git/scalatest-eclipse-plugin/org.scala-ide.sdt.scalatest/src/scala/tools/eclipse/scalatest/launching/ScalaTestScalaLaunchDelegate.scala:5: error: not found: type ScalaDebuggerForLaunchDelegate
[ERROR] class ScalaTestScalaLaunchDelegate extends ScalaTestLaunchDelegate with ScalaDebuggerForLaunchDelegate {
[ERROR] ^
[ERROR] four errors found

I wonder if I am building against wrong scala-ide version, I have tried
building againts:

http://download.scala-ide.org/sdk/lithium/e44/scala211/stable/site

and

http://download.scala-ide.org/nightly-scala-ide-luna-211x

May I know which scala-ide url did you build with?

Thanks.


Reply to this email directly or view it on GitHub
#51 (comment)
.

@wpopielarski
Copy link
Author

sorry for late response. To run it with latest scala-ide you need to change url in pom.xml from ${repo.scala-ide.root}/sdk/lithium/e44/scala211/dev/site
to
${repo.scala-ide.root}/nightly-scala-ide-luna-211x

hope it helps

ps. just to be sure ${repo.scala-ide.root} is http://download.scala-ide.org

@cheeseng
Copy link
Contributor

Sorry was busy with ScalaTest 3.0.0-M1 recently.

I just try again and it seems to be building fine with master, just one more question, is ScalaRunner support included in the 4.1 release? Or it is targetted for the next release?

Thanks.

@kiritsuku
Copy link

All the new types are not yet available in 4.1, they are targeted for the next release.

@cheeseng
Copy link
Contributor

@wpopielarski sschaef I have merged the changes into a branch called 'nightly', and updated the main README about building for nightly to use that new branch instead. Anyway, I think our branches at its current state are really bad, we shall do a restructure soon.

@wpopielarski
Copy link
Author

thanks a lot, I hope it will be cool feature

2015-06-12 10:07 GMT+02:00 Chua Chee Seng [email protected]:

@wpopielarski https://github.com/wpopielarski sschaef I have merged the
changes into a branch called 'nightly', and updated the main README about
building for nightly to use that new branch instead. Anyway, I think our
branches at its current state are really bad, we shall do a restructure
soon.


Reply to this email directly or view it on GitHub
#51 (comment)
.

@@ -25,6 +25,7 @@ Require-Bundle:
org.scala-lang.scala-compiler;bundle-version="[2.11.0,2.12.0)",
org.scala-lang.scala-reflect,
org.scala-ide.sdt.core;bundle-version="[4.0.0,5.0.0)",
org.scala-ide.sdt.debug;bundle-version="[4.0.0,5.0.0)",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is incorrect. You can't depend on 4.0.0, you need to depend on [4.2.0, 5.0.0)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I fix it

@dragos
Copy link

dragos commented Jul 17, 2015

Could we get this in soon? It'd be cool to have eval expression support in tests.

currently the scalatest launcher uses standard java vm runner
to run or debug tests. It works fine with a java expression
evaluator but with the Scala IDE 4.1.0 there is available the
Scala Expression Evaluator which requires a Scala Debugger.
This enhancement adds a new scala launcher. From now it is
possible to choose appropriate launcher:
 - an old java one especially for java projects where tests are written
   with scalatest. Then debugging and evaluation can be done with a java
   evaluator
 - a new scala one for scala projects (can be used for java projects as
   well but is not documented).
You can stop in breakpoint during a test execution and evaluate
arbitrary expression.

This PR must be taken with scala-ide PR #955

Fix #1002447
@wpopielarski
Copy link
Author

Updated and pushed

2015-07-17 12:36 GMT+02:00 Iulian Dragos [email protected]:

Could we get this in soon? It'd be cool to have eval expression support in
tests.


Reply to this email directly or view it on GitHub
#51 (comment)
.

@cheeseng
Copy link
Contributor

@dragos @wpopielarski sorry too tied up for the upcoming scalactic/scalatest 3.0.0, i have merged this into 'nightly' branch instead of the branch this PR is submitted for:

https://github.com/scalatest/scalatest-eclipse-plugin/commits/nightly

reason is kepler-nightly-2.11 branch is used to build for scala-ide 4.1 and this changes does not seem to be compatible with 4.1, did i missed anything to be pulled into the 'nightly' branch?

Thanks!

@cheeseng
Copy link
Contributor

@wpopielarski @sschaef Indeed we have a separate branch to build for 4.2 due to the enhancement done in this PR, which I believe is only available in 4.2 and not 4.1.1, I have rebuilt the latest combined site for 4.1.1 (using old branch for 4.1) and uploaded it to:

http://www.artima.com/newplugins3/combined

Scala IDE update site should pick it up within 24 hours normally, is there a url available to build for 4.2?

@kiritsuku
Copy link

4.2 is not yet available, but I'm going to notify you once it is.

Beside from that I would like to know why you decided in the first place to build binaries by yourself. Wouldn't it be easier if the Scala IDE team grabs the sources and publishes a version by itself?

@cheeseng
Copy link
Contributor

@sschaef @wpopielarski The story was actually @skyluc from Scala IDE team helped us to set it up that way, I don't 100% understand how it works from the Scala IDE side, it is not really our choice indeed. :)

@kiritsuku
Copy link

Ok, I'm going to investigate what it takes from our side to also build the scalatest-plugin from source as we do it for all other scala-ide plugins.

@cheeseng
Copy link
Contributor

@sschaef that would be great, fyi currently here's how I am building the 'combined' update site:

(with java on the path is java 6)
git clone https://github.com/scalatest/scalatest-eclipse-plugin.git
cd scalatest-eclipse-plugin
./ecosystem-build.sh

the output will be saved to ~/tmp/scalatest-build-ecosystem

@kiritsuku
Copy link

Can you build against http://download.scala-ide.org/nightly-scala-ide-luna-211x? It contains the nightlies for 4.2, I don't think we need to publish an extra version of 4.2-RC1 somewhere, since the release is binary compatible.

@kiritsuku
Copy link

I looked at your ecosystem-build.sh. It wants to build all previous releases of scalatest, which obviously does not work, since the newest features are not available for earlier versions. Or I didn't understand what the build is doing.

@kiritsuku
Copy link

@cheeseng
Copy link
Contributor

@sschaef @skyluc @dragos Sorry for the late response, got a father duty to attend to. I just tried the 4.2.0-RC1 and installed the ScalaTest plugin and it seems to be working (I tested the test selection to run test, and hopping back to source feature), but I am not sure how to test the ScalaRunner support added in this PR, do you mind to explain the feature a little bit?

As for the ecosystem-build.sh, as far as I can tell, it is building the plugins for different versions of Scala IDE (by checking out different branches of the ScalaTest plugin), and create a combined update site that contains all of them. Scala IDE update sites then will pull the correct version of ScalaTest plugin into their corresponding update site instead (e.g. Scala IDE 3.x will pull ScalaTest plugin built for Scala IDE 3.x, Scala IDE 4.x will pull ScalaTest plugin built for Scala IDE 4.x).

Shall I still need to build a dev combined site containing the version that built with the above url so that you can pull it?

Thanks.

@wpopielarski
Copy link
Author

sorry for cutting in but in fact you can test it together with Expression
Evaluator only. So with new scala launcher it should be possible to stop in
breakpoint in scalatest and evaluate some available variable. This is
impossible with standard launcher. I think runners should work as
previously.

Regards
W.

2015-08-19 17:57 GMT+02:00 Chua Chee Seng [email protected]:

@sschaef https://github.com/sschaef @skyluc https://github.com/skyluc
@dragos https://github.com/dragos Sorry for the late response, got a
father duty to attend to. I just tried the 4.2.0-RC1 and installed the
ScalaTest plugin and it seems to be working (I tested the test selection to
run test, and hopping back to source feature), but I am not sure how to
test the ScalaRunner support added in this PR, do you mind to explain the
feature a little bit?

As for the ecosystem-build.sh, as far as I can tell, it is building the
plugins for different versions of Scala IDE (by checking out different
branches of the ScalaTest plugin), and create a combined update site that
contains all of them. Scala IDE update sites then will pull the correct
version of ScalaTest plugin into their corresponding update site instead
(e.g. Scala IDE 3.x will pull ScalaTest plugin built for Scala IDE 3.x,
Scala IDE 4.x will pull ScalaTest plugin built for Scala IDE 4.x).

Shall I still need to build a dev combined site containing the version
that built with the above url so that you can pull it?

Thanks.


Reply to this email directly or view it on GitHub
#51 (comment)
.

@cheeseng
Copy link
Contributor

@sschaef @wpopielarski I am trying to use Expression Evaluator with Debug using scala runner (via 4.2-rc1), but got the following runtime error when trying to run with scala runner:

An internal error occurred during: "Launching This is a scope a test".
org/eclipse/pde/internal/launching/launcher/VMHelper

and the same error encountered when running a normal Scala application (with main method), do you have idea what could have gone wrong? I am using eclipse Luna.

Thanks.

@kiritsuku
Copy link

Is there a stack trace available for it?

@cheeseng
Copy link
Contributor

@sschaef not sure how I can get the stack trace, the following

An internal error occurred during: "Launching This is a scope a test".
org/eclipse/pde/internal/launching/launcher/VMHelper

is shown in the 'Problem Occurred' dialog after I clicked on the 'Details' button, from command console it seems to say this:

[org.scala-ide.sdt.aspects] error can't determine modifiers of missing type org.eclipse.pde.internal.ui.wizards.imports.PluginImportHelper
when weaving type scala.tools.eclipse.contribution.weaving.jdt.ScalaJDTWeavingPlugin
when weaving classes 
when weaving 
 [Xlint:cantFindType

@kiritsuku
Copy link

The Error Log View contains all errors and should also log the exception.

@cheeseng
Copy link
Contributor

@sschaef thanks, here's the stack trace from the error log view:

java.lang.NoClassDefFoundError: org/eclipse/pde/internal/launching/launcher/VMHelper
    at org.scalaide.debug.internal.launching.ScalaDebuggerForLaunchDelegate$class.getVMRunner(ScalaDebuggerForLaunchDelegate.scala:10)
    at org.scalaide.debug.internal.launching.ScalaApplicationLaunchConfigurationDelegate.getVMRunner(ScalaApplicationLaunchConfigurationDelegate.scala:8)
    at org.eclipse.jdt.launching.JavaLaunchDelegate.launch(JavaLaunchDelegate.java:51)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
    at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
    at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.ClassNotFoundException: org.eclipse.pde.internal.launching.launcher.VMHelper cannot be found by org.scala-ide.sdt.debug_4.2.0.rc1-2_11-201508181403-6cad386
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 8 more

@wpopielarski
Copy link
Author

looks more like a problem with build not expression evaluator

2015-08-26 4:02 GMT+02:00 Chua Chee Seng [email protected]:

@sschaef https://github.com/sschaef thanks, here's the stack trace from
the error log view:

java.lang.NoClassDefFoundError: org/eclipse/pde/internal/launching/launcher/VMHelper
at org.scalaide.debug.internal.launching.ScalaDebuggerForLaunchDelegate$class.getVMRunner(ScalaDebuggerForLaunchDelegate.scala:10)
at org.scalaide.debug.internal.launching.ScalaApplicationLaunchConfigurationDelegate.getVMRunner(ScalaApplicationLaunchConfigurationDelegate.scala:8)
at org.eclipse.jdt.launching.JavaLaunchDelegate.launch(JavaLaunchDelegate.java:51)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.ClassNotFoundException: org.eclipse.pde.internal.launching.launcher.VMHelper cannot be found by org.scala-ide.sdt.debug_4.2.0.rc1-2_11-201508181403-6cad386
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 8 more


Reply to this email directly or view it on GitHub
#51 (comment)
.

@cheeseng
Copy link
Contributor

@sschaef @wpopielarski One thing is that I only installed the items under Scala IDE for Eclipse, and not Scala IDE for Eclipse Development Support, Scala IDE for Eclipse Source Feature and Scala IDE plugins, I wonder if that matters?

@wpopielarski
Copy link
Author

Let me verify it today.

Thanks for your efforts

2015-08-26 5:48 GMT+02:00 Chua Chee Seng [email protected]:

@sschaef https://github.com/sschaef @wpopielarski
https://github.com/wpopielarski One thing is that I only installed the
items under Scala IDE for Eclipse, and not Scala IDE for Eclipse
Development Support, Scala IDE for Eclipse Source Feature and Scala IDE
plugins, I wonder if that matters?


Reply to this email directly or view it on GitHub
#51 (comment)
.

@dragos
Copy link

dragos commented Aug 26, 2015

This usually means a missing entry in MANIFEST.MF. The class that's missing is in org.eclipse.pde.launching, which doesn't seem to be part of the dependencies of sdt.core. Seems to be a dependency on Eclipse Plugin Development tools. You'll need to maybe install Scala IDE Dev support, or add this dependency to one of these bundles (I'm not sure if it should be sdt.core or scalatest)

@wpopielarski
Copy link
Author

Hi Chua,
I checked it and this is the must to have bundle org.eclipse.pde.launching in
Scala IDE plug-ins dependencies. The point is that inside this bundle is a
class you know already :) VMHelper. It is used to create VMInstall object
which is passed to this guy: StandardVMScalaDebugger. From that what I see
there are 3 pde bundles needed to run Scala IDE. Besides one above
org.eclipse.pde.core
and org.eclipse.pde.ui .What is unclear to me is a fact that they are
missing in release bulk but maybe this one chosen by you is for eclipse
with installed PDE support already.

2015-08-26 10:46 GMT+02:00 Iulian Dragos [email protected]:

This usually means a missing entry in MANIFEST.MF. The class that's
missing is in org.eclipse.pde.launching, which doesn't seem to be part of
the dependencies of sdt.core. Seems to be a dependency on Eclipse Plugin
Development tools. You'll need to maybe install Scala IDE Dev support, or
add this dependency to one of these bundles (I'm not sure if it should be
sdt.core or scalatest)


Reply to this email directly or view it on GitHub
#51 (comment)
.

@cheeseng
Copy link
Contributor

@dragos @wpopielarski Installing Scala IDE Dev support fixed the problem, but seems to be this dependency should be in sdt.core, as the same problem occurs when used with debugging Scala Application (new debugger). fyi, the eclipse that i am using is eclipse-java-luna-SR2.

@cheeseng
Copy link
Contributor

@dragos @wpopielarski @sschaef by the way, I built a combined update site that contains the build for 4.2, I uploaded the combined site here:

http://www.artima.com/newplugins3/combined-next

Hopefully you can pull from it to include in the 4.2-rc1 update site.

Thanks.

@kiritsuku
Copy link

I did a dryrun for 4.2-rc2 and it successfully picked up the new version.Thanks for you work!

@kiritsuku
Copy link

The problem why the problem about the missing VMHelper class occurs is not because Scala IDE doesn't depend on it, the problem is that this class is not available in a non PDE environment (which is the case for the eclipse-java-luna-SR2 installation). Users explicitly have to install PDE to get this version. I don't know if it is possible to add PDE as a requirement to the OSGi configuration.

I wonder why you could fix the problem by installing the dev support because it doesn't come with additional dependencies. Maybe you installed PDE too?

Anyway, even with PDE, the expression evaluator can't be used. I get this error message:

Compilation failed
not found: type SetSuite$$anonfun$1

@frozenspider
Copy link

frozenspider commented Jun 6, 2018

It's been 3 years and Scala IDE is 4.7.1 now, and yet expression evaluation still doesn't work with ScalaTest. What is the status of this PR? It the project itself still alive?
CC: @cheeseng

@wpopielarski
Copy link
Author

wpopielarski commented Jun 8, 2018 via email

@bvenners
Copy link
Contributor

bvenners commented Jun 8, 2018

We will revisit it. I am not sure why it didn't get pulled in.

@plinlor
Copy link

plinlor commented Aug 10, 2020

@cla-bot[bot] check

@cla-bot
Copy link

cla-bot bot commented Aug 10, 2020

Hi @wpopielarski, we require contributors to sign our Contributor License Agreement, and we don't have yours on file. In order for us to review and merge your code, please access https://www.artima.com/cla/choose-type to sign our Contributor License Agreement. Your effort is highly appreciated. Thank you.

@cla-bot
Copy link

cla-bot bot commented Aug 10, 2020

The cla-bot has been summoned, and re-checked this pull request!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants