Repository navigation
fix: skip a DAP exception hint on an editor closed since the stop - #1758
Merged
angelozerr merged 1 commit intoOct 26, 2026
Merged
angelozerr merged 1 commit into
angelozerr merged 1 commit into
Conversation
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Oct 22, 2026
- docs/errs-upstream-issues.md: UP31 is fixed by our redhat-developer/lsp4ij#1758, open, which skips the exception hint for a disposed editor. The pull request list counts forty, with #1757 and #1758 open, and gains its row: its new test fails without the check, and natively an XVM X307 that closes its file right after the stop reports the IDE error with a plugin built from main (ef2b18c3) and none with one built from the pull request. LSP4IJ's ./gradlew check passes 744 tests, 3 skipped, apart from the 7 macOS-only failures that main has too. - docs/remaining.md lists UP31 with its pull request, and its gate after a release: X307 without the wait, with no IDE errors. Documentation only; nothing to build.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1758 +/- ##
=========================================
Coverage 32.89% 32.89%
=========================================
Files 757 757
Lines 28352 28354 +2
Branches 4326 5683 +1357
=========================================
+ Hits 9325 9328 +3
Misses 17347 17347
+ Partials 1680 1679 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This was referenced Oct 22, 2026
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Oct 22, 2026
X307 waits for the hint LSP4IJ shows a second after an exception stop before it resumes and closes its file, since LSP4IJ shows the hint in the editor it found at the stop without checking that it is still open (UP31, fixed by redhat-developer/lsp4ij#1758). The comment now carries the TODO LSP4IJ tag that our other upstream workarounds have, so the wait is found and removed once a release has the fix. Comment only; spotlessCheck passes.
Contributor
|
@lagergren please fix conflicts |
After a stop with the reason exception, DAPClient.stopped() takes the first editor of the stopped file and shows the exception in it as an error hint one second later. If that editor is closed within the second, doShowErrorHint() fails with DisposalException "Editor is already disposed", which the IDE reports as an error. doShowErrorHint() now returns when the editor is disposed. It runs on the EDT, where editors are released, so the check cannot race with the release. DAPClientErrorHintTest shows the hint on a released editor: it fails with that DisposalException without the check, and shows no hint with it.
lagergren
force-pushed
the
fix/dap-exception-hint-disposed-editor
branch
from
October 26, 2026 09:34
958e56f to
faf7409
Compare
Collaborator
Author
|
@angelozerr Done: rebased on main. The only conflict was |
Contributor
|
Thanks @lagergren ! |
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Oct 26, 2026
- docs/errs-upstream-issues.md: UP31 is fixed by our redhat-developer/lsp4ij#1758, open, which skips the exception hint for a disposed editor. The pull request list counts forty, with #1757 and #1758 open, and gains its row: its new test fails without the check, and natively an XVM X307 that closes its file right after the stop reports the IDE error with a plugin built from main (ef2b18c3) and none with one built from the pull request. LSP4IJ's ./gradlew check passes 744 tests, 3 skipped, apart from the 7 macOS-only failures that main has too. - docs/remaining.md lists UP31 with its pull request, and its gate after a release: X307 without the wait, with no IDE errors. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Oct 26, 2026
X307 waits for the hint LSP4IJ shows a second after an exception stop before it resumes and closes its file, since LSP4IJ shows the hint in the editor it found at the stop without checking that it is still open (UP31, fixed by redhat-developer/lsp4ij#1758). The comment now carries the TODO LSP4IJ tag that our other upstream workarounds have, so the wait is found and removed once a release has the fix. Comment only; spotlessCheck passes.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Oct 26, 2026
- docs/errs-upstream-issues.md: UP31 is fixed by our redhat-developer/lsp4ij#1758, open, which skips the exception hint for a disposed editor. The pull request list counts forty, with #1757 and #1758 open, and gains its row: its new test fails without the check, and natively an XVM X307 that closes its file right after the stop reports the IDE error with a plugin built from main (ef2b18c3) and none with one built from the pull request. LSP4IJ's ./gradlew check passes 744 tests, 3 skipped, apart from the 7 macOS-only failures that main has too. - docs/remaining.md lists UP31 with its pull request, and its gate after a release: X307 without the wait, with no IDE errors. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Oct 26, 2026
X307 waits for the hint LSP4IJ shows a second after an exception stop before it resumes and closes its file, since LSP4IJ shows the hint in the editor it found at the stop without checking that it is still open (UP31, fixed by redhat-developer/lsp4ij#1758). The comment now carries the TODO LSP4IJ tag that our other upstream workarounds have, so the wait is found and removed once a release has the fix. Comment only; spotlessCheck passes.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Oct 27, 2026
- docs/errs-upstream-issues.md: UP31 is fixed by our redhat-developer/lsp4ij#1758, open, which skips the exception hint for a disposed editor. The pull request list counts forty, with #1757 and #1758 open, and gains its row: its new test fails without the check, and natively an XVM X307 that closes its file right after the stop reports the IDE error with a plugin built from main (ef2b18c3) and none with one built from the pull request. LSP4IJ's ./gradlew check passes 744 tests, 3 skipped, apart from the 7 macOS-only failures that main has too. - docs/remaining.md lists UP31 with its pull request, and its gate after a release: X307 without the wait, with no IDE errors. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Oct 27, 2026
X307 waits for the hint LSP4IJ shows a second after an exception stop before it resumes and closes its file, since LSP4IJ shows the hint in the editor it found at the stop without checking that it is still open (UP31, fixed by redhat-developer/lsp4ij#1758). The comment now carries the TODO LSP4IJ tag that our other upstream workarounds have, so the wait is found and removed once a release has the fix. Comment only; spotlessCheck passes.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Oct 28, 2026
- docs/errs-upstream-issues.md: UP31 is fixed by our redhat-developer/lsp4ij#1758, open, which skips the exception hint for a disposed editor. The pull request list counts forty, with #1757 and #1758 open, and gains its row: its new test fails without the check, and natively an XVM X307 that closes its file right after the stop reports the IDE error with a plugin built from main (ef2b18c3) and none with one built from the pull request. LSP4IJ's ./gradlew check passes 744 tests, 3 skipped, apart from the 7 macOS-only failures that main has too. - docs/remaining.md lists UP31 with its pull request, and its gate after a release: X307 without the wait, with no IDE errors. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Oct 28, 2026
X307 waits for the hint LSP4IJ shows a second after an exception stop before it resumes and closes its file, since LSP4IJ shows the hint in the editor it found at the stop without checking that it is still open (UP31, fixed by redhat-developer/lsp4ij#1758). The comment now carries the TODO LSP4IJ tag that our other upstream workarounds have, so the wait is found and removed once a release has the fix. Comment only; spotlessCheck passes.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Oct 28, 2026
- docs/errs-upstream-issues.md: UP31 is fixed by our redhat-developer/lsp4ij#1758, open, which skips the exception hint for a disposed editor. The pull request list counts forty, with #1757 and #1758 open, and gains its row: its new test fails without the check, and natively an XVM X307 that closes its file right after the stop reports the IDE error with a plugin built from main (ef2b18c3) and none with one built from the pull request. LSP4IJ's ./gradlew check passes 744 tests, 3 skipped, apart from the 7 macOS-only failures that main has too. - docs/remaining.md lists UP31 with its pull request, and its gate after a release: X307 without the wait, with no IDE errors. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Oct 29, 2026
- docs/errs-upstream-issues.md: UP31 is fixed by our redhat-developer/lsp4ij#1758, open, which skips the exception hint for a disposed editor. The pull request list counts forty, with #1757 and #1758 open, and gains its row: its new test fails without the check, and natively an XVM X307 that closes its file right after the stop reports the IDE error with a plugin built from main (ef2b18c3) and none with one built from the pull request. LSP4IJ's ./gradlew check passes 744 tests, 3 skipped, apart from the 7 macOS-only failures that main has too. - docs/remaining.md lists UP31 with its pull request, and its gate after a release: X307 without the wait, with no IDE errors. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Oct 29, 2026
X307 waits for the hint LSP4IJ shows a second after an exception stop before it resumes and closes its file, since LSP4IJ shows the hint in the editor it found at the stop without checking that it is still open (UP31, fixed by redhat-developer/lsp4ij#1758). The comment now carries the TODO LSP4IJ tag that our other upstream workarounds have, so the wait is found and removed once a release has the fix. Comment only; spotlessCheck passes.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Oct 29, 2026
- docs/errs-upstream-issues.md: UP31 is fixed by our redhat-developer/lsp4ij#1758, open, which skips the exception hint for a disposed editor. The pull request list counts forty, with #1757 and #1758 open, and gains its row: its new test fails without the check, and natively an XVM X307 that closes its file right after the stop reports the IDE error with a plugin built from main (ef2b18c3) and none with one built from the pull request. LSP4IJ's ./gradlew check passes 744 tests, 3 skipped, apart from the 7 macOS-only failures that main has too. - docs/remaining.md lists UP31 with its pull request, and its gate after a release: X307 without the wait, with no IDE errors. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Oct 29, 2026
X307 waits for the hint LSP4IJ shows a second after an exception stop before it resumes and closes its file, since LSP4IJ shows the hint in the editor it found at the stop without checking that it is still open (UP31, fixed by redhat-developer/lsp4ij#1758). The comment now carries the TODO LSP4IJ tag that our other upstream workarounds have, so the wait is found and removed once a release has the fix. Comment only; spotlessCheck passes.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 2, 2026
- docs/errs-upstream-issues.md: UP31 is fixed by our redhat-developer/lsp4ij#1758, open, which skips the exception hint for a disposed editor. The pull request list counts forty, with #1757 and #1758 open, and gains its row: its new test fails without the check, and natively an XVM X307 that closes its file right after the stop reports the IDE error with a plugin built from main (ef2b18c3) and none with one built from the pull request. LSP4IJ's ./gradlew check passes 744 tests, 3 skipped, apart from the 7 macOS-only failures that main has too. - docs/remaining.md lists UP31 with its pull request, and its gate after a release: X307 without the wait, with no IDE errors. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 2, 2026
X307 waits for the hint LSP4IJ shows a second after an exception stop before it resumes and closes its file, since LSP4IJ shows the hint in the editor it found at the stop without checking that it is still open (UP31, fixed by redhat-developer/lsp4ij#1758). The comment now carries the TODO LSP4IJ tag that our other upstream workarounds have, so the wait is found and removed once a release has the fix. Comment only; spotlessCheck passes.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 4, 2026
- docs/errs-upstream-issues.md: UP31 is fixed by our redhat-developer/lsp4ij#1758, open, which skips the exception hint for a disposed editor. The pull request list counts forty, with #1757 and #1758 open, and gains its row: its new test fails without the check, and natively an XVM X307 that closes its file right after the stop reports the IDE error with a plugin built from main (ef2b18c3) and none with one built from the pull request. LSP4IJ's ./gradlew check passes 744 tests, 3 skipped, apart from the 7 macOS-only failures that main has too. - docs/remaining.md lists UP31 with its pull request, and its gate after a release: X307 without the wait, with no IDE errors. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 4, 2026
X307 waits for the hint LSP4IJ shows a second after an exception stop before it resumes and closes its file, since LSP4IJ shows the hint in the editor it found at the stop without checking that it is still open (UP31, fixed by redhat-developer/lsp4ij#1758). The comment now carries the TODO LSP4IJ tag that our other upstream workarounds have, so the wait is found and removed once a release has the fix. Comment only; spotlessCheck passes.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 5, 2026
- docs/errs-upstream-issues.md: UP31 is fixed by our redhat-developer/lsp4ij#1758, open, which skips the exception hint for a disposed editor. The pull request list counts forty, with #1757 and #1758 open, and gains its row: its new test fails without the check, and natively an XVM X307 that closes its file right after the stop reports the IDE error with a plugin built from main (ef2b18c3) and none with one built from the pull request. LSP4IJ's ./gradlew check passes 744 tests, 3 skipped, apart from the 7 macOS-only failures that main has too. - docs/remaining.md lists UP31 with its pull request, and its gate after a release: X307 without the wait, with no IDE errors. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 5, 2026
X307 waits for the hint LSP4IJ shows a second after an exception stop before it resumes and closes its file, since LSP4IJ shows the hint in the editor it found at the stop without checking that it is still open (UP31, fixed by redhat-developer/lsp4ij#1758). The comment now carries the TODO LSP4IJ tag that our other upstream workarounds have, so the wait is found and removed once a release has the fix. Comment only; spotlessCheck passes.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 9, 2026
- docs/errs-upstream-issues.md: UP31 is fixed by our redhat-developer/lsp4ij#1758, open, which skips the exception hint for a disposed editor. The pull request list counts forty, with #1757 and #1758 open, and gains its row: its new test fails without the check, and natively an XVM X307 that closes its file right after the stop reports the IDE error with a plugin built from main (ef2b18c3) and none with one built from the pull request. LSP4IJ's ./gradlew check passes 744 tests, 3 skipped, apart from the 7 macOS-only failures that main has too. - docs/remaining.md lists UP31 with its pull request, and its gate after a release: X307 without the wait, with no IDE errors. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 9, 2026
X307 waits for the hint LSP4IJ shows a second after an exception stop before it resumes and closes its file, since LSP4IJ shows the hint in the editor it found at the stop without checking that it is still open (UP31, fixed by redhat-developer/lsp4ij#1758). The comment now carries the TODO LSP4IJ tag that our other upstream workarounds have, so the wait is found and removed once a release has the fix. Comment only; spotlessCheck passes.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 11, 2026
- docs/errs-upstream-issues.md: UP31 is fixed by our redhat-developer/lsp4ij#1758, open, which skips the exception hint for a disposed editor. The pull request list counts forty, with #1757 and #1758 open, and gains its row: its new test fails without the check, and natively an XVM X307 that closes its file right after the stop reports the IDE error with a plugin built from main (ef2b18c3) and none with one built from the pull request. LSP4IJ's ./gradlew check passes 744 tests, 3 skipped, apart from the 7 macOS-only failures that main has too. - docs/remaining.md lists UP31 with its pull request, and its gate after a release: X307 without the wait, with no IDE errors. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 11, 2026
X307 waits for the hint LSP4IJ shows a second after an exception stop before it resumes and closes its file, since LSP4IJ shows the hint in the editor it found at the stop without checking that it is still open (UP31, fixed by redhat-developer/lsp4ij#1758). The comment now carries the TODO LSP4IJ tag that our other upstream workarounds have, so the wait is found and removed once a release has the fix. Comment only; spotlessCheck passes.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 22, 2026
- docs/errs-upstream-issues.md: UP31 is fixed by our redhat-developer/lsp4ij#1758, open, which skips the exception hint for a disposed editor. The pull request list counts forty, with #1757 and #1758 open, and gains its row: its new test fails without the check, and natively an XVM X307 that closes its file right after the stop reports the IDE error with a plugin built from main (ef2b18c3) and none with one built from the pull request. LSP4IJ's ./gradlew check passes 744 tests, 3 skipped, apart from the 7 macOS-only failures that main has too. - docs/remaining.md lists UP31 with its pull request, and its gate after a release: X307 without the wait, with no IDE errors. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 22, 2026
X307 waits for the hint LSP4IJ shows a second after an exception stop before it resumes and closes its file, since LSP4IJ shows the hint in the editor it found at the stop without checking that it is still open (UP31, fixed by redhat-developer/lsp4ij#1758). The comment now carries the TODO LSP4IJ tag that our other upstream workarounds have, so the wait is found and removed once a release has the fix. Comment only; spotlessCheck passes.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 25, 2026
- docs/errs-upstream-issues.md: UP31 is fixed by our redhat-developer/lsp4ij#1758, open, which skips the exception hint for a disposed editor. The pull request list counts forty, with #1757 and #1758 open, and gains its row: its new test fails without the check, and natively an XVM X307 that closes its file right after the stop reports the IDE error with a plugin built from main (ef2b18c3) and none with one built from the pull request. LSP4IJ's ./gradlew check passes 744 tests, 3 skipped, apart from the 7 macOS-only failures that main has too. - docs/remaining.md lists UP31 with its pull request, and its gate after a release: X307 without the wait, with no IDE errors. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 25, 2026
X307 waits for the hint LSP4IJ shows a second after an exception stop before it resumes and closes its file, since LSP4IJ shows the hint in the editor it found at the stop without checking that it is still open (UP31, fixed by redhat-developer/lsp4ij#1758). The comment now carries the TODO LSP4IJ tag that our other upstream workarounds have, so the wait is found and removed once a release has the fix. Comment only; spotlessCheck passes.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 25, 2026
- docs/errs-upstream-issues.md: UP31 is fixed by our redhat-developer/lsp4ij#1758, open, which skips the exception hint for a disposed editor. The pull request list counts forty, with #1757 and #1758 open, and gains its row: its new test fails without the check, and natively an XVM X307 that closes its file right after the stop reports the IDE error with a plugin built from main (ef2b18c3) and none with one built from the pull request. LSP4IJ's ./gradlew check passes 744 tests, 3 skipped, apart from the 7 macOS-only failures that main has too. - docs/remaining.md lists UP31 with its pull request, and its gate after a release: X307 without the wait, with no IDE errors. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 25, 2026
X307 waits for the hint LSP4IJ shows a second after an exception stop before it resumes and closes its file, since LSP4IJ shows the hint in the editor it found at the stop without checking that it is still open (UP31, fixed by redhat-developer/lsp4ij#1758). The comment now carries the TODO LSP4IJ tag that our other upstream workarounds have, so the wait is found and removed once a release has the fix. Comment only; spotlessCheck passes.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 25, 2026
- docs/errs-upstream-issues.md: UP31 is fixed by our redhat-developer/lsp4ij#1758, open, which skips the exception hint for a disposed editor. The pull request list counts forty, with #1757 and #1758 open, and gains its row: its new test fails without the check, and natively an XVM X307 that closes its file right after the stop reports the IDE error with a plugin built from main (ef2b18c3) and none with one built from the pull request. LSP4IJ's ./gradlew check passes 744 tests, 3 skipped, apart from the 7 macOS-only failures that main has too. - docs/remaining.md lists UP31 with its pull request, and its gate after a release: X307 without the wait, with no IDE errors. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 25, 2026
X307 waits for the hint LSP4IJ shows a second after an exception stop before it resumes and closes its file, since LSP4IJ shows the hint in the editor it found at the stop without checking that it is still open (UP31, fixed by redhat-developer/lsp4ij#1758). The comment now carries the TODO LSP4IJ tag that our other upstream workarounds have, so the wait is found and removed once a release has the fix. Comment only; spotlessCheck passes.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 26, 2026
- docs/errs-upstream-issues.md: UP31 is fixed by our redhat-developer/lsp4ij#1758, open, which skips the exception hint for a disposed editor. The pull request list counts forty, with #1757 and #1758 open, and gains its row: its new test fails without the check, and natively an XVM X307 that closes its file right after the stop reports the IDE error with a plugin built from main (ef2b18c3) and none with one built from the pull request. LSP4IJ's ./gradlew check passes 744 tests, 3 skipped, apart from the 7 macOS-only failures that main has too. - docs/remaining.md lists UP31 with its pull request, and its gate after a release: X307 without the wait, with no IDE errors. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 26, 2026
X307 waits for the hint LSP4IJ shows a second after an exception stop before it resumes and closes its file, since LSP4IJ shows the hint in the editor it found at the stop without checking that it is still open (UP31, fixed by redhat-developer/lsp4ij#1758). The comment now carries the TODO LSP4IJ tag that our other upstream workarounds have, so the wait is found and removed once a release has the fix. Comment only; spotlessCheck passes.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 26, 2026
- docs/errs-upstream-issues.md: UP31 is fixed by our redhat-developer/lsp4ij#1758, open, which skips the exception hint for a disposed editor. The pull request list counts forty, with #1757 and #1758 open, and gains its row: its new test fails without the check, and natively an XVM X307 that closes its file right after the stop reports the IDE error with a plugin built from main (ef2b18c3) and none with one built from the pull request. LSP4IJ's ./gradlew check passes 744 tests, 3 skipped, apart from the 7 macOS-only failures that main has too. - docs/remaining.md lists UP31 with its pull request, and its gate after a release: X307 without the wait, with no IDE errors. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 26, 2026
X307 waits for the hint LSP4IJ shows a second after an exception stop before it resumes and closes its file, since LSP4IJ shows the hint in the editor it found at the stop without checking that it is still open (UP31, fixed by redhat-developer/lsp4ij#1758). The comment now carries the TODO LSP4IJ tag that our other upstream workarounds have, so the wait is found and removed once a release has the fix. Comment only; spotlessCheck passes.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 27, 2026
- docs/errs-upstream-issues.md: UP31 is fixed by our redhat-developer/lsp4ij#1758, open, which skips the exception hint for a disposed editor. The pull request list counts forty, with #1757 and #1758 open, and gains its row: its new test fails without the check, and natively an XVM X307 that closes its file right after the stop reports the IDE error with a plugin built from main (ef2b18c3) and none with one built from the pull request. LSP4IJ's ./gradlew check passes 744 tests, 3 skipped, apart from the 7 macOS-only failures that main has too. - docs/remaining.md lists UP31 with its pull request, and its gate after a release: X307 without the wait, with no IDE errors. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 27, 2026
X307 waits for the hint LSP4IJ shows a second after an exception stop before it resumes and closes its file, since LSP4IJ shows the hint in the editor it found at the stop without checking that it is still open (UP31, fixed by redhat-developer/lsp4ij#1758). The comment now carries the TODO LSP4IJ tag that our other upstream workarounds have, so the wait is found and removed once a release has the fix. Comment only; spotlessCheck passes.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 28, 2026
- docs/errs-upstream-issues.md: UP31 is fixed by our redhat-developer/lsp4ij#1758, open, which skips the exception hint for a disposed editor. The pull request list counts forty, with #1757 and #1758 open, and gains its row: its new test fails without the check, and natively an XVM X307 that closes its file right after the stop reports the IDE error with a plugin built from main (ef2b18c3) and none with one built from the pull request. LSP4IJ's ./gradlew check passes 744 tests, 3 skipped, apart from the 7 macOS-only failures that main has too. - docs/remaining.md lists UP31 with its pull request, and its gate after a release: X307 without the wait, with no IDE errors. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 28, 2026
X307 waits for the hint LSP4IJ shows a second after an exception stop before it resumes and closes its file, since LSP4IJ shows the hint in the editor it found at the stop without checking that it is still open (UP31, fixed by redhat-developer/lsp4ij#1758). The comment now carries the TODO LSP4IJ tag that our other upstream workarounds have, so the wait is found and removed once a release has the fix. Comment only; spotlessCheck passes.
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.
After a DAP stop with the reason
exception,DAPClient.stopped()takes the first editor of the stopped file and schedules the exception's error hint on it one second later, so that the editor has scrolled first. Neither the scheduled task nordoShowErrorHint()checks that the editor is still open. If it was closed within that second, for example because the program was resumed and ended, or its tab was closed,editor.offsetToVisualPosition()throws and the IDE reports an error (here with 0.21.0):The fix
doShowErrorHint()returns when the editor is disposed. It runs on the EDT, where editors are released, so the check cannot race with the release. It is package-private now, for the test.Test
New
DAPClientErrorHintTest, aLightPlatformTestCase, shows the hint on a released editor. Without the check it fails with theDisposalExceptionabove; with it, no hint is shown.Native check, in IntelliJ IDEA 2026.2.3 with the Ecstasy language server's debug adapter: a program stops on an uncaught exception, and its file is closed right after the stop. With a plugin built from
main(ef2b18c3), the IDE reports the error above a second later; with one built from this branch, it reports none. We first saw it intermittently, when a test resumed the program within that second and closed the file once it ended../gradlew check: 789 tests, 3 skipped. 7 tests fail on my macOS machine, onmainwithout this change as well:LSPIJUtils_applyWorkspaceEdit_{Go,TypeScript,Scala,Zig}TestandCommandExecutorTest. Each reportsFile accessed outside allowed rootsfor a temporary file: the file is reached as/private/var/folders/…/T/…, while the allowed root is/var/folders/…/T/, and/varis a symlink to/private/varon macOS. They are unrelated to this change.