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

PDE: Restarting development eclipse does not relaunch #1622

Merged

Conversation

umairsair
Copy link
Contributor

@umairsair umairsair commented Feb 4, 2024

  • In development mode, changing restart parameters is not allowed, hence exit code 24 is not supported. Previously Workbench.buildCommandLine(..) used to return null for development mode, hence exit code was not set by Workbench.restart(..). And IDEApplication.start(..) used to take care of restarting development mode eclipse with exit code 23.
  • Now in PR#1307, Workbench.buildCommandLine(..) does not check for development mode, hence Workbench.restart(..) is setting return code 24.

Fix:

Similar to Workbench.setRestartArguments(..), Workbench.restart(..) also checks for development mode and explicitly sets the exit code 23

Related to eclipse-equinox/p2#166

@umairsair umairsair force-pushed the eclipse-equinox-p2-issues-166 branch 3 times, most recently from 00950c3 to dd99633 Compare February 4, 2024 12:36
- In development mode, changing restart parameters is not allowed, hence exit code 24 is not supported. Previously Workbench.buildCommandLine(..) used to return null for development mode, hence exit code was not set by Workbench.restart(..). And IDEApplication.start(..) used to take care of restarting development mode eclipse with exit code 23.
- Now in [PR#1307](eclipse-platform#1307), Workbench.buildCommandLine(..) does not check for development mode, hence Workbench.restart(..) is setting return code 24.

Fix:
====
Similar to Workbench.setRestartArguments(..), Workbench.restart(..) also checks for development mode and explicitly sets the exit code 23
@merks
Copy link
Contributor

merks commented Feb 4, 2024

Yes, that looks correct and then the 24 doesn't not surface as a return value.

Copy link
Contributor

github-actions bot commented Feb 4, 2024

Test Results

   917 files   -  1     917 suites   - 1   1h 8m 41s ⏱️ -5s
 7 433 tests ± 0   7 282 ✅  -  1  150 💤 ±0  1 ❌ +1 
23 404 runs   - 44  22 906 ✅  - 40  497 💤  - 5  1 ❌ +1 

For more details on these failures, see this check.

Results for commit 3773e46. ± Comparison against base commit a8f84f8.

@merks merks merged commit 1dceecc into eclipse-platform:master Feb 4, 2024
14 of 16 checks passed
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.

2 participants