Skip to content

Conversation

@kwin
Copy link
Contributor

@kwin kwin commented Apr 30, 2025

Otherwise one might run into "ISE: The instance data location has not been specified yet." depending on the bundle start order Also only register workspace change listener when workspace service is available.

This closes #684

What it does

How to test

Author checklist

@kwin kwin marked this pull request as ready for review April 30, 2025 11:06
@kwin kwin marked this pull request as draft April 30, 2025 12:10
fWorkspaceServiceTracker.open();

InstanceScope.INSTANCE.getNode(ID_PLUGIN).addPreferenceChangeListener(this);
Filter instanceLocationFilter = context.createFilter("(&(objectClass=" + Location.class.getName() + ")(" + Location.SERVICE_PROPERTY_TYPE //$NON-NLS-1$ //$NON-NLS-2$
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is unfortunately not the right condition: eclipse-equinox/equinox#932. Unclear how to defer until the workspace is set (i.e. the instance config is being set).

registered

Otherwise one might run into "ISE: The instance data location has not
been specified yet." depending on the bundle start order
Also only register workspace change listener when workspace service is
available.

This closes eclipse-jdt#684
@kwin kwin force-pushed the bugfix/use-service-tracker-to-defer-accessing-instance-preferences branch from b672b4c to 039caef Compare May 1, 2025 17:47
@kwin kwin marked this pull request as ready for review May 1, 2025 17:49
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.

java.lang.IllegalStateException: The instance data location has not been specified yet.

1 participant