Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-dev] how to debug "Choose workspace" dialog workflow?

Hi Tony,
 
Just leave the location field in the launch config empty.
 
Your problem with pre-selected default workspace is because one of your dependencies that start early uses resources plugin before workspace location is set.
You will see who does it if you will add -Dosgi.dataAreaRequiresExplicitInit=true argument to the Eclipse VM arguments (which is recommended to do anyway).
 
Kind regards,
Andrey Loskutov

Спасение утопающих - дело рук самих утопающих

https://www.eclipse.org/user/aloskutov
 
 
Gesendet: Mittwoch, 11. November 2020 um 00:22 Uhr
Von: "Homer, Tony" <tony.homer@xxxxxxxxx>
An: "Eclipse platform general developers list." <platform-dev@xxxxxxxxxxx>
Betreff: [platform-dev] how to debug "Choose workspace" dialog workflow?

I recently made a change in an Eclipse product to switch from a static product declaration to a dynamic product declaration, as documented here:

https://help.eclipse.org/2020-09/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fextension-points%2Forg_eclipse_core_runtime_products.html&cp%3D2_1_1_30

 

After making this change, most everything works as expected, but the “Choose workspace” dialog is no longer displayed on startup.  The workspace can be switched via the File>Switch Workspace menu item, but on subsequent starts, the selection has not been saved (RECENT_WORKSPACES is empty) and the default workspace is opened.  I imagine that my dynamic product implementation is causing this, so I want to step through the workflow (by the way, if anyone reading has an idea of how I could have broken this, please let me know!).

 

However, as far as I can tell, when launching an “Eclipse Application” there is no way to avoid specifying the target workspace in the workspace data section, so on initial launch, the “Choose workspace” dialog is not displayed.  Trying to exercise the workflow via File>Switch Workspace also fails, because an error occurs (“Missing System Property - Unable to relaunch the platform because the eclipse.vm property has not been set.").

 

How can I debug the “Choose workspace” dialog workflow with an “Eclipse Application” launch?

 

_______________________________________________ platform-dev mailing list platform-dev@xxxxxxxxxxx To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/platform-dev

Back to the top