Skip to content

Permit failure to delete files on Windows, and close finished logs#10273

Merged
niloc132 merged 1 commit intogwtproject:mainfrom
niloc132:10272-windows-sdm-startup
Mar 13, 2026
Merged

Permit failure to delete files on Windows, and close finished logs#10273
niloc132 merged 1 commit intogwtproject:mainfrom
niloc132:10272-windows-sdm-startup

Conversation

@niloc132
Copy link
Copy Markdown
Member

@niloc132 niloc132 commented Feb 7, 2026

Audited all other usages of PrintWriterTreeLogger, and found this was only one of two usages that writes to a file rather than System.out/err or a StringWriter. The other usage writes to a file in the old devmode flag -logdir, which is optional, and expected not to be within another directory that the compiler needs to clean.

Fixes #10272

@niloc132 niloc132 added this to the 2.13 milestone Feb 7, 2026
@niloc132 niloc132 added the ready This PR has been reviewed by a maintainer and is ready for a CI run. label Feb 7, 2026
@niloc132
Copy link
Copy Markdown
Member Author

niloc132 commented Feb 7, 2026

Patch is best reviewed with "hide whitespace" https://github.com/gwtproject/gwt/pull/10273/changes?w=1

@niloc132
Copy link
Copy Markdown
Member Author

niloc132 commented Feb 7, 2026

@keinhaar are you able to build and validate this works for you before we merge? Whatever it is about your machine/env, you're the only Windows user so far to test and see this issue.

Prebuilt SDK is available through the action results, see the links at the bottom of https://github.com/gwtproject/gwt/actions/runs/21780568450?pr=10273

@keinhaar
Copy link
Copy Markdown

keinhaar commented Feb 8, 2026

I tried the prebuild version gwt-java17.zip.
It work's as expected.
Thanks!

@niloc132
Copy link
Copy Markdown
Member Author

niloc132 commented Feb 8, 2026

Since we're just about done with the 2.13.0 release process and still only the one report of this, my opinion is that we should just going to finish that and then kick off another one immediately, with this fix and any other bugs found in the wild.

I'll make sure release notes mention and link here to avoid surprises by teams that run windows.

@niloc132 niloc132 modified the milestones: 2.13, 2.13.1, 2.14 Feb 11, 2026
@niloc132 niloc132 merged commit 378fd96 into gwtproject:main Mar 13, 2026
8 checks passed
niloc132 added a commit to niloc132/gwt that referenced this pull request Mar 13, 2026
…wtproject#10273)

Audited all other usages of `PrintWriterTreeLogger`, and found this was
only one of two usages that writes to a file rather than System.out/err
or a StringWriter. The other usage writes to a file in the old devmode
flag `-logdir`, which is optional, and expected not to be within another
directory that the compiler needs to clean.

Fixes gwtproject#10272
zbynek pushed a commit that referenced this pull request Mar 13, 2026
…10296)

Audited all other usages of `PrintWriterTreeLogger`, and found this was
only one of two usages that writes to a file rather than System.out/err
or a StringWriter. The other usage writes to a file in the old devmode
flag `-logdir`, which is optional, and expected not to be within another
directory that the compiler needs to clean.

Fixes #10272
Backport #10273
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready This PR has been reviewed by a maintainer and is ready for a CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CodeServer doesn't close log files after writing, tries to delete parent directory

3 participants