Community
Participate
Working Groups
Created attachment 282183 [details] Eclipse fail to start after activating bundle for some new search proposals How to reproduce: 1. English build, default empty workspace 2. Start eclipse, press Ctrl+3 to open quick access panel, and input "t" 3. Click to activate "Activate bundle for 'Run' proposal" 4. Close and start eclipse again then we get the error as attached
Created attachment 282184 [details] eclipse log attaching log
A workaround [1] to get your eclipse launched is to comment the next line out in your eclipse.ini: -Dosgi.dataAreaRequiresExplicitInit=true [1] https://stackoverflow.com/questions/55245607/cannot-launch-eclipse-because-the-instance-data-location-has-not-been-specified/57688529#57688529
(In reply to Rolf Theunissen from comment #2) > A workaround [1] to get your eclipse launched is to comment the next line > out in your eclipse.ini: > > -Dosgi.dataAreaRequiresExplicitInit=true > > [1] > https://stackoverflow.com/questions/55245607/cannot-launch-eclipse-because- > the-instance-data-location-has-not-been-specified/57688529#57688529 This is not a workaround, it will start Eclipse always with *default* workspace in user home.
(In reply to Andrey Loskutov from comment #3) > (In reply to Rolf Theunissen from comment #2) > > A workaround [1] to get your eclipse launched is to comment the next line > > out in your eclipse.ini: > > > > -Dosgi.dataAreaRequiresExplicitInit=true > > > > [1] > > https://stackoverflow.com/questions/55245607/cannot-launch-eclipse-because- > > the-instance-data-location-has-not-been-specified/57688529#57688529 > > This is not a workaround, it will start Eclipse always with *default* > workspace in user home. Indeed, I misunderstood that one. What does help is using the '-data' option on the command-line to specify the workspace.
I have been able to reproduce this issue with the steps below using 4.15 Steps to reproduce. 1. Launch Eclipse. 2. In "Eclipse SDK Launcher" Dialog set the workspace as "workspace" 3. Once Eclipse is launched, press Ctrl+3 to open quick access panel, and input "t" 4. Click to activate "Activate bundle for 'Run' proposal" 5. Close Eclipse 6. Launch Eclipse again We get the error as attached.
(In reply to Kalyan Prasad Tatavarthi from comment #5) > I have been able to reproduce this issue with the steps below using 4.15 > > Steps to reproduce. > 1. Launch Eclipse. > 2. In "Eclipse SDK Launcher" Dialog set the workspace as "workspace" > 3. Once Eclipse is launched, press Ctrl+3 to open quick access panel, and > input "t" > 4. Click to activate "Activate bundle for 'Run' proposal" > 5. Close Eclipse > 6. Launch Eclipse again > > We get the error as attached. for step 6, launching eclipse from command prompt with -data option launches eclipse successfully.
(In reply to Kalyan Prasad Tatavarthi from comment #6) > (In reply to Kalyan Prasad Tatavarthi from comment #5) > > I have been able to reproduce this issue with the steps below using 4.15 > > > > Steps to reproduce. > > 1. Launch Eclipse. > > 2. In "Eclipse SDK Launcher" Dialog set the workspace as "workspace" > > 3. Once Eclipse is launched, press Ctrl+3 to open quick access panel, and > > input "t" > > 4. Click to activate "Activate bundle for 'Run' proposal" > > 5. Close Eclipse > > 6. Launch Eclipse again > > > > We get the error as attached. > > for step 6, launching eclipse from command prompt with -data option launches > eclipse successfully. Also launching Eclipse with -clean option opens the workspace, without the error.
The problem originates in the bug 547250 that added possibility to start bundles on demand. The problem is, that bundle start options are *persisted* via this stack: at org.eclipse.osgi.container.Module.persistStartOptions(Module.java:685) at org.eclipse.osgi.container.Module.start(Module.java:427) at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:439) at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:458) at org.eclipse.ui.internal.quickaccess.QuickAccessExtensionManager$QuickAccessProviderExtensionProxy$1.execute(QuickAccessExtensionManager.java:77) and because the bundle.start() caller doesn't provide any options, the settings are changed to settings.remove(Settings.USE_ACTIVATION_POLICY); I have a fix.
Note: the right workaround is to run Eclipse once with "-clean" argument, to reset osgi settings to defaults.
New Gerrit change created: https://git.eclipse.org/r/160021
Gerrit change https://git.eclipse.org/r/160021 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=d769296442acc818c0368b831ca576caec3be6da
New Gerrit change created: https://git.eclipse.org/r/160090
Verified with I20200326-1800
Gerrit change https://git.eclipse.org/r/160090 was merged to [R4_15_maintenance]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=7bd38f003e982d07ea0e89a6c13162340b3044fc