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

Defer registering SaveParticipant until IWorkspace service is available #752

Conversation

kwin
Copy link
Contributor

@kwin kwin commented Oct 20, 2023

This fixes the issue "IllegalStateException: Workspace is already closed or not ready yet" when the bundle is started early

This closes #748

This fixes the issue "IllegalStateException: Workspace is already closed
or not ready yet" when the bundle is started early

This closes eclipse-platform#748
@github-actions
Copy link
Contributor

github-actions bot commented Oct 20, 2023

Test Results

       42 files  +       6         42 suites  +6   53m 43s ⏱️ + 5m 8s
  3 778 tests +1 035    3 774 ✔️ +1 035    3 💤 ±0  1 ±0 
11 337 runs  +3 105  11 309 ✔️ +3 105  27 💤 ±0  1 ±0 

For more details on these failures, see this check.

Results for commit 9518cf0. ± Comparison against base commit cfb3c5f.

♻️ This comment has been updated with latest results.

Rely on BundleContext.(un)getService(...) instead of ServiceTracker impl
Copy link
Contributor

@laeubi laeubi left a comment

Choose a reason for hiding this comment

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

I approve this here as extending ST or using STC is a style question.

What I wonder is if we probably should just push this down to the ResourcesPlugin as an abstract class (e.g. WorkspaceTracker) with two abstract methods like

  • WorkspaceTracker#onOpen(IWorkspace workspace)
  • WorkspaceTracker#onClose(IWorkspace workspace)

so this can easily be reused at other places.

@laeubi laeubi merged commit 97e0144 into eclipse-platform:master Oct 21, 2023
13 of 16 checks passed
@laeubi
Copy link
Contributor

laeubi commented Oct 21, 2023

@kwin please verify this on the next integration build (somewhere available around tomorrow)

@kwin
Copy link
Contributor Author

kwin commented Oct 30, 2023

@laeubi Where is the p2 update site of the integration build for platform? I only found the outdated documentation at https://wiki.eclipse.org/Eclipse_Project_Update_Sites... and 2023-12 m2 (i.e. https://download.eclipse.org/technology/epp/packages/2023-12/202310261200/ and https://download.eclipse.org/releases/2023-12/202310271000/) contains an older version of debug.core (3.21.200.v20230920-0608)

@iloveeclipse
Copy link
Member

You can use update site from last successful IBuild, like from

https://download.eclipse.org/eclipse/downloads/drops4/I20231028-1800/

this would be then

https://download.eclipse.org/eclipse/updates/4.30-I-builds/I20231028-1800/

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.

IllegalStateException: Workspace is already closed or not ready yet
3 participants