Repository navigation
Write a module to a temporary file that no scan takes for a module - #734
Merged
Merged
Conversation
FileRepository.storeModule wrote a module to tmp.<module><random>.xtc next to its file and renamed it when done. When the process was killed while writing, as a killed build is, the partial file stayed, named like a module. DirRepository's scan takes every *.xtc in its directory, so a later compile with that directory on its module path would read the partial file as a module. On lagergren/errs, the language server bundles every *.xtc of the XDK's library directories; its bundle listed tmp.xml.xtclang.org<random>.xtc, and the server failed to start with an EOFException reading it, until clean. The temporary file is now <file name><random>.tmp, as DirRepository names its own. Validation: the XDK built with the change (every library's compileXtc ran and wrote its module this way), and no temporary file was left. BundlerTest (9) and DirRepositoryConcurrentScanTest (1) pass. Problems found and fixed: found on lagergren/errs when a Linux test run was killed while the XDK built; the next run's lsp-server tests could not start. Limits: a killed write still leaves its temporary file behind, now named *.tmp, which no build or scan takes for a module; clean removes it. No test kills a process while it writes.
ggleyzer
approved these changes
Oct 27, 2026
lagergren
added a commit
that referenced
this pull request
Oct 28, 2026
…mmit went errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126 replays; master absorbed the two that landed as #717 and #734. errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the rebased 71. The plan's entry gives the eight conflicts and how each was resolved, the two commits that follow the replays (#716's review changes and the caller's javadoc for Runtime's debugger accessors, #742 on master), and the receipts. Validation: errs' tree equals a merge of master and the old tip, with Runtime.java and EmbeddingSupportTest's imports resolved as recorded. spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures, 42 skipped; :javatools_utils:test 122 (2 skipped); :lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped); compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren
added a commit
that referenced
this pull request
Oct 28, 2026
…mmit went errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126 replays; master absorbed the two that landed as #717 and #734. errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the rebased 71. The plan's entry gives the eight conflicts and how each was resolved, the two commits that follow the replays (#716's review changes and the caller's javadoc for Runtime's debugger accessors, #742 on master), and the receipts. Validation: errs' tree equals a merge of master and the old tip, with Runtime.java and EmbeddingSupportTest's imports resolved as recorded. spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures, 42 skipped; :javatools_utils:test 122 (2 skipped); :lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped); compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren
added a commit
that referenced
this pull request
Oct 29, 2026
…mmit went errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126 replays; master absorbed the two that landed as #717 and #734. errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the rebased 71. The plan's entry gives the eight conflicts and how each was resolved, the two commits that follow the replays (#716's review changes and the caller's javadoc for Runtime's debugger accessors, #742 on master), and the receipts. Validation: errs' tree equals a merge of master and the old tip, with Runtime.java and EmbeddingSupportTest's imports resolved as recorded. spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures, 42 skipped; :javatools_utils:test 122 (2 skipped); :lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped); compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren
added a commit
that referenced
this pull request
Oct 29, 2026
…mmit went errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126 replays; master absorbed the two that landed as #717 and #734. errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the rebased 71. The plan's entry gives the eight conflicts and how each was resolved, the two commits that follow the replays (#716's review changes and the caller's javadoc for Runtime's debugger accessors, #742 on master), and the receipts. Validation: errs' tree equals a merge of master and the old tip, with Runtime.java and EmbeddingSupportTest's imports resolved as recorded. spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures, 42 skipped; :javatools_utils:test 122 (2 skipped); :lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped); compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren
added a commit
that referenced
this pull request
Oct 29, 2026
…mmit went errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126 replays; master absorbed the two that landed as #717 and #734. errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the rebased 71. The plan's entry gives the eight conflicts and how each was resolved, the two commits that follow the replays (#716's review changes and the caller's javadoc for Runtime's debugger accessors, #742 on master), and the receipts. Validation: errs' tree equals a merge of master and the old tip, with Runtime.java and EmbeddingSupportTest's imports resolved as recorded. spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures, 42 skipped; :javatools_utils:test 122 (2 skipped); :lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped); compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren
added a commit
that referenced
this pull request
Nov 2, 2026
…mmit went errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126 replays; master absorbed the two that landed as #717 and #734. errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the rebased 71. The plan's entry gives the eight conflicts and how each was resolved, the two commits that follow the replays (#716's review changes and the caller's javadoc for Runtime's debugger accessors, #742 on master), and the receipts. Validation: errs' tree equals a merge of master and the old tip, with Runtime.java and EmbeddingSupportTest's imports resolved as recorded. spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures, 42 skipped; :javatools_utils:test 122 (2 skipped); :lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped); compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren
added a commit
that referenced
this pull request
Nov 4, 2026
…mmit went errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126 replays; master absorbed the two that landed as #717 and #734. errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the rebased 71. The plan's entry gives the eight conflicts and how each was resolved, the two commits that follow the replays (#716's review changes and the caller's javadoc for Runtime's debugger accessors, #742 on master), and the receipts. Validation: errs' tree equals a merge of master and the old tip, with Runtime.java and EmbeddingSupportTest's imports resolved as recorded. spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures, 42 skipped; :javatools_utils:test 122 (2 skipped); :lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped); compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren
added a commit
that referenced
this pull request
Nov 5, 2026
…mmit went errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126 replays; master absorbed the two that landed as #717 and #734. errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the rebased 71. The plan's entry gives the eight conflicts and how each was resolved, the two commits that follow the replays (#716's review changes and the caller's javadoc for Runtime's debugger accessors, #742 on master), and the receipts. Validation: errs' tree equals a merge of master and the old tip, with Runtime.java and EmbeddingSupportTest's imports resolved as recorded. spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures, 42 skipped; :javatools_utils:test 122 (2 skipped); :lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped); compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren
added a commit
that referenced
this pull request
Nov 9, 2026
…mmit went errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126 replays; master absorbed the two that landed as #717 and #734. errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the rebased 71. The plan's entry gives the eight conflicts and how each was resolved, the two commits that follow the replays (#716's review changes and the caller's javadoc for Runtime's debugger accessors, #742 on master), and the receipts. Validation: errs' tree equals a merge of master and the old tip, with Runtime.java and EmbeddingSupportTest's imports resolved as recorded. spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures, 42 skipped; :javatools_utils:test 122 (2 skipped); :lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped); compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren
added a commit
that referenced
this pull request
Nov 11, 2026
…mmit went errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126 replays; master absorbed the two that landed as #717 and #734. errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the rebased 71. The plan's entry gives the eight conflicts and how each was resolved, the two commits that follow the replays (#716's review changes and the caller's javadoc for Runtime's debugger accessors, #742 on master), and the receipts. Validation: errs' tree equals a merge of master and the old tip, with Runtime.java and EmbeddingSupportTest's imports resolved as recorded. spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures, 42 skipped; :javatools_utils:test 122 (2 skipped); :lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped); compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren
added a commit
that referenced
this pull request
Nov 22, 2026
…mmit went errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126 replays; master absorbed the two that landed as #717 and #734. errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the rebased 71. The plan's entry gives the eight conflicts and how each was resolved, the two commits that follow the replays (#716's review changes and the caller's javadoc for Runtime's debugger accessors, #742 on master), and the receipts. Validation: errs' tree equals a merge of master and the old tip, with Runtime.java and EmbeddingSupportTest's imports resolved as recorded. spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures, 42 skipped; :javatools_utils:test 122 (2 skipped); :lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped); compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…mmit went errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126 replays; master absorbed the two that landed as #717 and #734. errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the rebased 71. The plan's entry gives the eight conflicts and how each was resolved, the two commits that follow the replays (#716's review changes and the caller's javadoc for Runtime's debugger accessors, #742 on master), and the receipts. Validation: errs' tree equals a merge of master and the old tip, with Runtime.java and EmbeddingSupportTest's imports resolved as recorded. spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures, 42 skipped; :javatools_utils:test 122 (2 skipped); :lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped); compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…mmit went errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126 replays; master absorbed the two that landed as #717 and #734. errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the rebased 71. The plan's entry gives the eight conflicts and how each was resolved, the two commits that follow the replays (#716's review changes and the caller's javadoc for Runtime's debugger accessors, #742 on master), and the receipts. Validation: errs' tree equals a merge of master and the old tip, with Runtime.java and EmbeddingSupportTest's imports resolved as recorded. spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures, 42 skipped; :javatools_utils:test 122 (2 skipped); :lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped); compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…mmit went errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126 replays; master absorbed the two that landed as #717 and #734. errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the rebased 71. The plan's entry gives the eight conflicts and how each was resolved, the two commits that follow the replays (#716's review changes and the caller's javadoc for Runtime's debugger accessors, #742 on master), and the receipts. Validation: errs' tree equals a merge of master and the old tip, with Runtime.java and EmbeddingSupportTest's imports resolved as recorded. spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures, 42 skipped; :javatools_utils:test 122 (2 skipped); :lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped); compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
…mmit went errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126 replays; master absorbed the two that landed as #717 and #734. errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the rebased 71. The plan's entry gives the eight conflicts and how each was resolved, the two commits that follow the replays (#716's review changes and the caller's javadoc for Runtime's debugger accessors, #742 on master), and the receipts. Validation: errs' tree equals a merge of master and the old tip, with Runtime.java and EmbeddingSupportTest's imports resolved as recorded. spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures, 42 skipped; :javatools_utils:test 122 (2 skipped); :lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped); compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
…mmit went errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126 replays; master absorbed the two that landed as #717 and #734. errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the rebased 71. The plan's entry gives the eight conflicts and how each was resolved, the two commits that follow the replays (#716's review changes and the caller's javadoc for Runtime's debugger accessors, #742 on master), and the receipts. Validation: errs' tree equals a merge of master and the old tip, with Runtime.java and EmbeddingSupportTest's imports resolved as recorded. spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures, 42 skipped; :javatools_utils:test 122 (2 skipped); :lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped); compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren
added a commit
that referenced
this pull request
Nov 27, 2026
…mmit went errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126 replays; master absorbed the two that landed as #717 and #734. errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the rebased 71. The plan's entry gives the eight conflicts and how each was resolved, the two commits that follow the replays (#716's review changes and the caller's javadoc for Runtime's debugger accessors, #742 on master), and the receipts. Validation: errs' tree equals a merge of master and the old tip, with Runtime.java and EmbeddingSupportTest's imports resolved as recorded. spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures, 42 skipped; :javatools_utils:test 122 (2 skipped); :lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped); compilerStdioTest 83; :lang:intellij-plugin:test 151.
lagergren
added a commit
that referenced
this pull request
Nov 28, 2026
…mmit went errs-rebase-2026-10-28.tsv maps errs' 1128 commits to their 1126 replays; master absorbed the two that landed as #717 and #734. errs-693-rebase-2026-10-28.tsv maps the regroup's 70 #693 commits to the rebased 71. The plan's entry gives the eight conflicts and how each was resolved, the two commits that follow the replays (#716's review changes and the caller's javadoc for Runtime's debugger accessors, #742 on master), and the receipts. Validation: errs' tree equals a merge of master and the old tip, with Runtime.java and EmbeddingSupportTest's imports resolved as recorded. spotlessCheck and :lang:spotlessCheck; :javatools:test 695, 0 failures, 42 skipped; :javatools_utils:test 122 (2 skipped); :lang:dap-server:test 38; :lang:lsp-server:test 2,420 (2 skipped); compilerStdioTest 83; :lang:intellij-plugin:test 151.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FileRepository.storeModulewrote a module totmp.<module><random>.xtcnext to its file, then renamed it. If the process was killed while writing, as a killed build is, the partial file stayed behind, named like a module:DirRepository's scan takes every*.xtcin its directory (DirRepository.java:433), so a later compile with that directory on its module path would read the partial file as a module.lagergren/errs, the language server bundles every*.xtcof the XDK's library directories. After a killed Linux test run, its bundle listedtmp.xml.xtclang.org<random>.xtc, and the server failed to start with anEOFExceptionreading it, untilclean.The temporary file is now
<file name><random>.tmp, asDirRepositorynames its own cache's.Validation
compileXtcran and wrote its module this way, and no temporary file was left.BundlerTest(9) andDirRepositoryConcurrentScanTest(1) pass.lagergren/errs, with the same change, the fulllsp-serversuite passes (2401 tests, the 2 skipped as always).Limits
*.tmp, which no build or scan takes for a module;cleanremoves it.