-
Notifications
You must be signed in to change notification settings - Fork 205
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
STS4 Does Not Start After Installing Papyrus Plugin #499
Comments
I'm seeing a lot of package-use conflicts in the error log, this is most likely the cause of the problems. These problems tend to be the result of a particular combination of plugins being installed at the same time. Can you please provide precise details on what you install i.e. what distribution/package/download do you start from and exactly what extensions, do you install into it? If you gives us precise set of steps we can try to reproduce the problem and investigate. |
What I'm doing is:
This error always happens. So basically in my STS installation Papyrus for UML is the only plugin I installed. And this is a new laptop so there are no traces of previous STS versions. |
Sorry, still not totally clear because there are number of different ways to 'install STS4 4.7.0.RELEASE'. Are you downloading a full distribution bundle of STS? Or are you installing it into an Eclipse instance via the Eclipse marketplace? If the latter, what version of Eclipse is being used as the 'base' for this installation? |
I donwloaded a JAR from Spring site I did not install Eclipse, and Eclipse were never installed earlier on this machine (Windows 10). |
Sorry to keep coming back to this but I have no idea which is the plugin you refer to as Papyrus for UML. I searched Eclipse marketplace as well as google. While there are good number of things that show up there's not a single one that is called 'Papyrus for UML'. For example here's a search of Eclipse marketplace: https://marketplace.eclipse.org/search/site/papyrus%2520for%2520uml Is any of these the one that you installed? |
If helps, it is Papyrus home page: https://www.eclipse.org/papyrus/download.html |
Papyrus has installed fine for me in my STS 4.7.0 on eclipse 4.16. Try perhaps opening a brand new workspace. Note that stack trace does not point to anything in STS but rather GMF which the dependency for Papyrus... Perhaps try asking GMF or Papyrus folks what might have gone wrong... |
I am able to reproduce this issue, starting with a fresh STS4 4.7.0 distribution on my macOS, switching that to run on a JDK8 (the Oracle JDK 1.8.0_251 in my case), and installing the Papyrus UML feature from the main Eclipse repo. After that, the IDE doesn't start. Instead it seems to do something in the background for a very long time (minutes), before it shows the dialog to select the workspace, and then fails with similar errors as you have in your The reason seems to be a problematic package use conflict among several bundles. We need to investigate in more detail what exactly causes the dependency resolver to screw this up here. The workaround that worked for me is to manually start the IDE from the command line with the |
(btw, the JDK that you run the IDE on might make an important difference here, since the OSGi dependency resolving of the javax packages works differently on JDK8 than on JDK9 and above (due to the JDK module system). |
Though the errors look a little different, it sounds similar in many ways to https://bugs.eclipse.org/bugs/show_bug.cgi?id=564475 I.m.o if |
@kdvolder That might be true, but nevertheless we should probably try to make it easier for the resolver and avoid the |
(comment in Pivotal Tracker added by Kris De Volder:) I was also able to reproduce this.
Strangely, when I select this broken installation as my 'target platform' and start it in a Eclipse runtime workbench it launches just fine. That unfortunately makes it rather hard / impossible to trouble-shoot or test potential attempts at fixing this by means of changing STS bundle requirements. What I wanted to try is: examine the error log messages and try to adjust some of our bundle requirement that seem to be involved with these errors... and then see if this makes the problem disapear. But as the conflict seems more like an artefact of how equinox handles incremenal installations rather than an actual 'unsolvable' constraint in the bundles themselves, and is not reproducible in a runtime workbench it is going to be very time consuming to trial an error some things. The only way I can think of doing this would be to:
|
Filed a bug on bugzilla as to my mind, this seems like a bug in Eclipse Equinox: https://bugs.eclipse.org/bugs/show_bug.cgi?id=565066 I agree though with Martin that even if this is so, it's still a good idea to try and make our constraints 'easier' to solve and maybe avoid the issue that way. |
Thanks @martinlippert . I added |
Also, there is another plugin that makes STS4 fail to start after installing it - TypeScript :: CodeMix (https://marketplace.eclipse.org/content/typescript-codemix). |
If it is important, I'm on Java 8. |
Looks like there's a fix forthcoming on https://bugs.eclipse.org/bugs/show_bug.cgi?id=565066 Also I did work on our dependencies as sugested by Martin and I think that also helped. So hopefully in next release of STS this will no longer be an issue. I'll keep this ticket open until I can verify the problem is really resolved. |
On the latest CI build I have no more package-use conflicts upon performing the same steps with Papyrus install. So I think that means the adjustments to bundle dependencies did avoid the resolver issue. Unfortunately even after that STS still doesn't start up (without -clean) and crashes with a NPE that now looks identical to what's reported in eclipse bug https://bugs.eclipse.org/bugs/attachment.cgi?id=283355 |
OK, I am closing this issue and mark it as fixed. Here is a quick summary:
The fix in the Eclipse platform works, but is part of the upcoming Eclipse 2020-09 release (late September), so nothing we can adopt for our upcoming Spring Tools 4.7.1 release. Spring Tools 4.8.0 will be based on Eclipse 2020-09 and will be GA in late September, but will also require JDK11 as a minimum environment to run the IDE with. |
Absolutely new installation of STS 4.7.0 does not start anymore after installing Payrus for UML plugin v. 4.8.0.202006100749. Attached is log file that was generated in STS workspace folder.
From the log we can see that the root cause exception is :
sts4.log
The text was updated successfully, but these errors were encountered: