Repository navigation
fix: make a DAP expression code fragment physical when IntelliJ asks - #1763
Merged
angelozerr merged 1 commit intoOct 26, 2026
Merged
angelozerr merged 1 commit into
angelozerr merged 1 commit into
Conversation
IntelliJ asks for a physical code fragment for the document of an expression editor: XDebuggerEditorsProviderBase.createDocument() calls createExpressionCodeFragment(project, expression, context, true). DAPDebuggerEditorsProvider ignored isPhysical, and DAPExpressionCodeFragment.isPhysical() always returned false. IntelliJ 2026.2 shows a breakpoint's "Evaluate and log" expression in an inline logpoint editor (XLogpointEditor), whose highlighter runs LocalInspectionsPass on that fragment. LocalInspectionsPass asserts file.isPhysical(), so with IntelliJ's default -ea every such breakpoint reports an IDE error: "can't inspect non-physical file: FILE; LightVirtualFile: /DAPExpressionCodeFragment.txt". DAPExpressionCodeFragment gets a constructor that takes physical, which isPhysical() returns and which enables the view provider's PSI events, as for IntelliJ's own code fragments; the old constructor stays, non-physical. DAPDebuggerEditorsProvider passes isPhysical to createExpressionCodeFragment(project, text, fileType, language, isPhysical), which gains the parameter. Tests: DAPDebuggerEditorsProviderTest. A fragment is physical exactly when asked, and the document of an expression editor (createDocument()) has a physical fragment. Both fail without the change.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Oct 22, 2026
UP37 is filed as redhat-developer/lsp4ij#1763, from fix/dap-physical-expression-fragment (e869c476): a DAP expression code fragment is physical when IntelliJ asks for one, so IntelliJ 2026.2's inline logpoint editor no longer fails LocalInspectionsPass's assertion with an IDE error. Checks, recorded in docs/errs-upstream-issues.md: - IntelliJ shows the inline logpoint editor only for a breakpoint whose Suspend is unchecked; a suspending one with the same log expression reports nothing on main (run-4529688658410320836). - With Suspend unchecked, a plugin built from main reports the error (run-6266382029699247857), and one built from the fix doesn't (run-695486991974889100; X304 then times out, as expected without UP32, since such a breakpoint leaves the program stopped on main). - The fix's two tests fail without it; LSP4IJ's ./gradlew check runs 745 tests, 3 skipped, apart from the 7 macOS-only failures main has too. docs/remaining.md lists UP37 with its pull request and gate. Documentation only; nothing to build.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1763 +/- ##
=======================================
Coverage 32.28% 32.28%
=======================================
Files 753 753
Lines 28015 28018 +3
Branches 5598 5598
=======================================
+ Hits 9044 9045 +1
- Misses 17344 17345 +1
- Partials 1627 1628 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
|
Thanks @lagergren ! |
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Oct 26, 2026
UP37 is filed as redhat-developer/lsp4ij#1763, from fix/dap-physical-expression-fragment (e869c476): a DAP expression code fragment is physical when IntelliJ asks for one, so IntelliJ 2026.2's inline logpoint editor no longer fails LocalInspectionsPass's assertion with an IDE error. Checks, recorded in docs/errs-upstream-issues.md: - IntelliJ shows the inline logpoint editor only for a breakpoint whose Suspend is unchecked; a suspending one with the same log expression reports nothing on main (run-4529688658410320836). - With Suspend unchecked, a plugin built from main reports the error (run-6266382029699247857), and one built from the fix doesn't (run-695486991974889100; X304 then times out, as expected without UP32, since such a breakpoint leaves the program stopped on main). - The fix's two tests fail without it; LSP4IJ's ./gradlew check runs 745 tests, 3 skipped, apart from the 7 macOS-only failures main has too. docs/remaining.md lists UP37 with its pull request and gate. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Oct 26, 2026
UP37 is filed as redhat-developer/lsp4ij#1763, from fix/dap-physical-expression-fragment (e869c476): a DAP expression code fragment is physical when IntelliJ asks for one, so IntelliJ 2026.2's inline logpoint editor no longer fails LocalInspectionsPass's assertion with an IDE error. Checks, recorded in docs/errs-upstream-issues.md: - IntelliJ shows the inline logpoint editor only for a breakpoint whose Suspend is unchecked; a suspending one with the same log expression reports nothing on main (run-4529688658410320836). - With Suspend unchecked, a plugin built from main reports the error (run-6266382029699247857), and one built from the fix doesn't (run-695486991974889100; X304 then times out, as expected without UP32, since such a breakpoint leaves the program stopped on main). - The fix's two tests fail without it; LSP4IJ's ./gradlew check runs 745 tests, 3 skipped, apart from the 7 macOS-only failures main has too. docs/remaining.md lists UP37 with its pull request and gate. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Oct 27, 2026
UP37 is filed as redhat-developer/lsp4ij#1763, from fix/dap-physical-expression-fragment (e869c476): a DAP expression code fragment is physical when IntelliJ asks for one, so IntelliJ 2026.2's inline logpoint editor no longer fails LocalInspectionsPass's assertion with an IDE error. Checks, recorded in docs/errs-upstream-issues.md: - IntelliJ shows the inline logpoint editor only for a breakpoint whose Suspend is unchecked; a suspending one with the same log expression reports nothing on main (run-4529688658410320836). - With Suspend unchecked, a plugin built from main reports the error (run-6266382029699247857), and one built from the fix doesn't (run-695486991974889100; X304 then times out, as expected without UP32, since such a breakpoint leaves the program stopped on main). - The fix's two tests fail without it; LSP4IJ's ./gradlew check runs 745 tests, 3 skipped, apart from the 7 macOS-only failures main has too. docs/remaining.md lists UP37 with its pull request and gate. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Oct 28, 2026
UP37 is filed as redhat-developer/lsp4ij#1763, from fix/dap-physical-expression-fragment (e869c476): a DAP expression code fragment is physical when IntelliJ asks for one, so IntelliJ 2026.2's inline logpoint editor no longer fails LocalInspectionsPass's assertion with an IDE error. Checks, recorded in docs/errs-upstream-issues.md: - IntelliJ shows the inline logpoint editor only for a breakpoint whose Suspend is unchecked; a suspending one with the same log expression reports nothing on main (run-4529688658410320836). - With Suspend unchecked, a plugin built from main reports the error (run-6266382029699247857), and one built from the fix doesn't (run-695486991974889100; X304 then times out, as expected without UP32, since such a breakpoint leaves the program stopped on main). - The fix's two tests fail without it; LSP4IJ's ./gradlew check runs 745 tests, 3 skipped, apart from the 7 macOS-only failures main has too. docs/remaining.md lists UP37 with its pull request and gate. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Oct 28, 2026
UP37 is filed as redhat-developer/lsp4ij#1763, from fix/dap-physical-expression-fragment (e869c476): a DAP expression code fragment is physical when IntelliJ asks for one, so IntelliJ 2026.2's inline logpoint editor no longer fails LocalInspectionsPass's assertion with an IDE error. Checks, recorded in docs/errs-upstream-issues.md: - IntelliJ shows the inline logpoint editor only for a breakpoint whose Suspend is unchecked; a suspending one with the same log expression reports nothing on main (run-4529688658410320836). - With Suspend unchecked, a plugin built from main reports the error (run-6266382029699247857), and one built from the fix doesn't (run-695486991974889100; X304 then times out, as expected without UP32, since such a breakpoint leaves the program stopped on main). - The fix's two tests fail without it; LSP4IJ's ./gradlew check runs 745 tests, 3 skipped, apart from the 7 macOS-only failures main has too. docs/remaining.md lists UP37 with its pull request and gate. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Oct 29, 2026
UP37 is filed as redhat-developer/lsp4ij#1763, from fix/dap-physical-expression-fragment (e869c476): a DAP expression code fragment is physical when IntelliJ asks for one, so IntelliJ 2026.2's inline logpoint editor no longer fails LocalInspectionsPass's assertion with an IDE error. Checks, recorded in docs/errs-upstream-issues.md: - IntelliJ shows the inline logpoint editor only for a breakpoint whose Suspend is unchecked; a suspending one with the same log expression reports nothing on main (run-4529688658410320836). - With Suspend unchecked, a plugin built from main reports the error (run-6266382029699247857), and one built from the fix doesn't (run-695486991974889100; X304 then times out, as expected without UP32, since such a breakpoint leaves the program stopped on main). - The fix's two tests fail without it; LSP4IJ's ./gradlew check runs 745 tests, 3 skipped, apart from the 7 macOS-only failures main has too. docs/remaining.md lists UP37 with its pull request and gate. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Oct 29, 2026
UP37 is filed as redhat-developer/lsp4ij#1763, from fix/dap-physical-expression-fragment (e869c476): a DAP expression code fragment is physical when IntelliJ asks for one, so IntelliJ 2026.2's inline logpoint editor no longer fails LocalInspectionsPass's assertion with an IDE error. Checks, recorded in docs/errs-upstream-issues.md: - IntelliJ shows the inline logpoint editor only for a breakpoint whose Suspend is unchecked; a suspending one with the same log expression reports nothing on main (run-4529688658410320836). - With Suspend unchecked, a plugin built from main reports the error (run-6266382029699247857), and one built from the fix doesn't (run-695486991974889100; X304 then times out, as expected without UP32, since such a breakpoint leaves the program stopped on main). - The fix's two tests fail without it; LSP4IJ's ./gradlew check runs 745 tests, 3 skipped, apart from the 7 macOS-only failures main has too. docs/remaining.md lists UP37 with its pull request and gate. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Oct 29, 2026
UP37 is filed as redhat-developer/lsp4ij#1763, from fix/dap-physical-expression-fragment (e869c476): a DAP expression code fragment is physical when IntelliJ asks for one, so IntelliJ 2026.2's inline logpoint editor no longer fails LocalInspectionsPass's assertion with an IDE error. Checks, recorded in docs/errs-upstream-issues.md: - IntelliJ shows the inline logpoint editor only for a breakpoint whose Suspend is unchecked; a suspending one with the same log expression reports nothing on main (run-4529688658410320836). - With Suspend unchecked, a plugin built from main reports the error (run-6266382029699247857), and one built from the fix doesn't (run-695486991974889100; X304 then times out, as expected without UP32, since such a breakpoint leaves the program stopped on main). - The fix's two tests fail without it; LSP4IJ's ./gradlew check runs 745 tests, 3 skipped, apart from the 7 macOS-only failures main has too. docs/remaining.md lists UP37 with its pull request and gate. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 2, 2026
UP37 is filed as redhat-developer/lsp4ij#1763, from fix/dap-physical-expression-fragment (e869c476): a DAP expression code fragment is physical when IntelliJ asks for one, so IntelliJ 2026.2's inline logpoint editor no longer fails LocalInspectionsPass's assertion with an IDE error. Checks, recorded in docs/errs-upstream-issues.md: - IntelliJ shows the inline logpoint editor only for a breakpoint whose Suspend is unchecked; a suspending one with the same log expression reports nothing on main (run-4529688658410320836). - With Suspend unchecked, a plugin built from main reports the error (run-6266382029699247857), and one built from the fix doesn't (run-695486991974889100; X304 then times out, as expected without UP32, since such a breakpoint leaves the program stopped on main). - The fix's two tests fail without it; LSP4IJ's ./gradlew check runs 745 tests, 3 skipped, apart from the 7 macOS-only failures main has too. docs/remaining.md lists UP37 with its pull request and gate. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 4, 2026
UP37 is filed as redhat-developer/lsp4ij#1763, from fix/dap-physical-expression-fragment (e869c476): a DAP expression code fragment is physical when IntelliJ asks for one, so IntelliJ 2026.2's inline logpoint editor no longer fails LocalInspectionsPass's assertion with an IDE error. Checks, recorded in docs/errs-upstream-issues.md: - IntelliJ shows the inline logpoint editor only for a breakpoint whose Suspend is unchecked; a suspending one with the same log expression reports nothing on main (run-4529688658410320836). - With Suspend unchecked, a plugin built from main reports the error (run-6266382029699247857), and one built from the fix doesn't (run-695486991974889100; X304 then times out, as expected without UP32, since such a breakpoint leaves the program stopped on main). - The fix's two tests fail without it; LSP4IJ's ./gradlew check runs 745 tests, 3 skipped, apart from the 7 macOS-only failures main has too. docs/remaining.md lists UP37 with its pull request and gate. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 5, 2026
UP37 is filed as redhat-developer/lsp4ij#1763, from fix/dap-physical-expression-fragment (e869c476): a DAP expression code fragment is physical when IntelliJ asks for one, so IntelliJ 2026.2's inline logpoint editor no longer fails LocalInspectionsPass's assertion with an IDE error. Checks, recorded in docs/errs-upstream-issues.md: - IntelliJ shows the inline logpoint editor only for a breakpoint whose Suspend is unchecked; a suspending one with the same log expression reports nothing on main (run-4529688658410320836). - With Suspend unchecked, a plugin built from main reports the error (run-6266382029699247857), and one built from the fix doesn't (run-695486991974889100; X304 then times out, as expected without UP32, since such a breakpoint leaves the program stopped on main). - The fix's two tests fail without it; LSP4IJ's ./gradlew check runs 745 tests, 3 skipped, apart from the 7 macOS-only failures main has too. docs/remaining.md lists UP37 with its pull request and gate. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 9, 2026
UP37 is filed as redhat-developer/lsp4ij#1763, from fix/dap-physical-expression-fragment (e869c476): a DAP expression code fragment is physical when IntelliJ asks for one, so IntelliJ 2026.2's inline logpoint editor no longer fails LocalInspectionsPass's assertion with an IDE error. Checks, recorded in docs/errs-upstream-issues.md: - IntelliJ shows the inline logpoint editor only for a breakpoint whose Suspend is unchecked; a suspending one with the same log expression reports nothing on main (run-4529688658410320836). - With Suspend unchecked, a plugin built from main reports the error (run-6266382029699247857), and one built from the fix doesn't (run-695486991974889100; X304 then times out, as expected without UP32, since such a breakpoint leaves the program stopped on main). - The fix's two tests fail without it; LSP4IJ's ./gradlew check runs 745 tests, 3 skipped, apart from the 7 macOS-only failures main has too. docs/remaining.md lists UP37 with its pull request and gate. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 11, 2026
UP37 is filed as redhat-developer/lsp4ij#1763, from fix/dap-physical-expression-fragment (e869c476): a DAP expression code fragment is physical when IntelliJ asks for one, so IntelliJ 2026.2's inline logpoint editor no longer fails LocalInspectionsPass's assertion with an IDE error. Checks, recorded in docs/errs-upstream-issues.md: - IntelliJ shows the inline logpoint editor only for a breakpoint whose Suspend is unchecked; a suspending one with the same log expression reports nothing on main (run-4529688658410320836). - With Suspend unchecked, a plugin built from main reports the error (run-6266382029699247857), and one built from the fix doesn't (run-695486991974889100; X304 then times out, as expected without UP32, since such a breakpoint leaves the program stopped on main). - The fix's two tests fail without it; LSP4IJ's ./gradlew check runs 745 tests, 3 skipped, apart from the 7 macOS-only failures main has too. docs/remaining.md lists UP37 with its pull request and gate. Documentation only; nothing to build.
This was referenced Nov 17, 2026
Tests that need the JavaScript plugin never run: give them a test task with the plugin enabled
#2007
Closed
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 22, 2026
UP37 is filed as redhat-developer/lsp4ij#1763, from fix/dap-physical-expression-fragment (e869c476): a DAP expression code fragment is physical when IntelliJ asks for one, so IntelliJ 2026.2's inline logpoint editor no longer fails LocalInspectionsPass's assertion with an IDE error. Checks, recorded in docs/errs-upstream-issues.md: - IntelliJ shows the inline logpoint editor only for a breakpoint whose Suspend is unchecked; a suspending one with the same log expression reports nothing on main (run-4529688658410320836). - With Suspend unchecked, a plugin built from main reports the error (run-6266382029699247857), and one built from the fix doesn't (run-695486991974889100; X304 then times out, as expected without UP32, since such a breakpoint leaves the program stopped on main). - The fix's two tests fail without it; LSP4IJ's ./gradlew check runs 745 tests, 3 skipped, apart from the 7 macOS-only failures main has too. docs/remaining.md lists UP37 with its pull request and gate. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 25, 2026
UP37 is filed as redhat-developer/lsp4ij#1763, from fix/dap-physical-expression-fragment (e869c476): a DAP expression code fragment is physical when IntelliJ asks for one, so IntelliJ 2026.2's inline logpoint editor no longer fails LocalInspectionsPass's assertion with an IDE error. Checks, recorded in docs/errs-upstream-issues.md: - IntelliJ shows the inline logpoint editor only for a breakpoint whose Suspend is unchecked; a suspending one with the same log expression reports nothing on main (run-4529688658410320836). - With Suspend unchecked, a plugin built from main reports the error (run-6266382029699247857), and one built from the fix doesn't (run-695486991974889100; X304 then times out, as expected without UP32, since such a breakpoint leaves the program stopped on main). - The fix's two tests fail without it; LSP4IJ's ./gradlew check runs 745 tests, 3 skipped, apart from the 7 macOS-only failures main has too. docs/remaining.md lists UP37 with its pull request and gate. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 25, 2026
UP37 is filed as redhat-developer/lsp4ij#1763, from fix/dap-physical-expression-fragment (e869c476): a DAP expression code fragment is physical when IntelliJ asks for one, so IntelliJ 2026.2's inline logpoint editor no longer fails LocalInspectionsPass's assertion with an IDE error. Checks, recorded in docs/errs-upstream-issues.md: - IntelliJ shows the inline logpoint editor only for a breakpoint whose Suspend is unchecked; a suspending one with the same log expression reports nothing on main (run-4529688658410320836). - With Suspend unchecked, a plugin built from main reports the error (run-6266382029699247857), and one built from the fix doesn't (run-695486991974889100; X304 then times out, as expected without UP32, since such a breakpoint leaves the program stopped on main). - The fix's two tests fail without it; LSP4IJ's ./gradlew check runs 745 tests, 3 skipped, apart from the 7 macOS-only failures main has too. docs/remaining.md lists UP37 with its pull request and gate. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 25, 2026
UP37 is filed as redhat-developer/lsp4ij#1763, from fix/dap-physical-expression-fragment (e869c476): a DAP expression code fragment is physical when IntelliJ asks for one, so IntelliJ 2026.2's inline logpoint editor no longer fails LocalInspectionsPass's assertion with an IDE error. Checks, recorded in docs/errs-upstream-issues.md: - IntelliJ shows the inline logpoint editor only for a breakpoint whose Suspend is unchecked; a suspending one with the same log expression reports nothing on main (run-4529688658410320836). - With Suspend unchecked, a plugin built from main reports the error (run-6266382029699247857), and one built from the fix doesn't (run-695486991974889100; X304 then times out, as expected without UP32, since such a breakpoint leaves the program stopped on main). - The fix's two tests fail without it; LSP4IJ's ./gradlew check runs 745 tests, 3 skipped, apart from the 7 macOS-only failures main has too. docs/remaining.md lists UP37 with its pull request and gate. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 26, 2026
UP37 is filed as redhat-developer/lsp4ij#1763, from fix/dap-physical-expression-fragment (e869c476): a DAP expression code fragment is physical when IntelliJ asks for one, so IntelliJ 2026.2's inline logpoint editor no longer fails LocalInspectionsPass's assertion with an IDE error. Checks, recorded in docs/errs-upstream-issues.md: - IntelliJ shows the inline logpoint editor only for a breakpoint whose Suspend is unchecked; a suspending one with the same log expression reports nothing on main (run-4529688658410320836). - With Suspend unchecked, a plugin built from main reports the error (run-6266382029699247857), and one built from the fix doesn't (run-695486991974889100; X304 then times out, as expected without UP32, since such a breakpoint leaves the program stopped on main). - The fix's two tests fail without it; LSP4IJ's ./gradlew check runs 745 tests, 3 skipped, apart from the 7 macOS-only failures main has too. docs/remaining.md lists UP37 with its pull request and gate. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 26, 2026
UP37 is filed as redhat-developer/lsp4ij#1763, from fix/dap-physical-expression-fragment (e869c476): a DAP expression code fragment is physical when IntelliJ asks for one, so IntelliJ 2026.2's inline logpoint editor no longer fails LocalInspectionsPass's assertion with an IDE error. Checks, recorded in docs/errs-upstream-issues.md: - IntelliJ shows the inline logpoint editor only for a breakpoint whose Suspend is unchecked; a suspending one with the same log expression reports nothing on main (run-4529688658410320836). - With Suspend unchecked, a plugin built from main reports the error (run-6266382029699247857), and one built from the fix doesn't (run-695486991974889100; X304 then times out, as expected without UP32, since such a breakpoint leaves the program stopped on main). - The fix's two tests fail without it; LSP4IJ's ./gradlew check runs 745 tests, 3 skipped, apart from the 7 macOS-only failures main has too. docs/remaining.md lists UP37 with its pull request and gate. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 27, 2026
UP37 is filed as redhat-developer/lsp4ij#1763, from fix/dap-physical-expression-fragment (e869c476): a DAP expression code fragment is physical when IntelliJ asks for one, so IntelliJ 2026.2's inline logpoint editor no longer fails LocalInspectionsPass's assertion with an IDE error. Checks, recorded in docs/errs-upstream-issues.md: - IntelliJ shows the inline logpoint editor only for a breakpoint whose Suspend is unchecked; a suspending one with the same log expression reports nothing on main (run-4529688658410320836). - With Suspend unchecked, a plugin built from main reports the error (run-6266382029699247857), and one built from the fix doesn't (run-695486991974889100; X304 then times out, as expected without UP32, since such a breakpoint leaves the program stopped on main). - The fix's two tests fail without it; LSP4IJ's ./gradlew check runs 745 tests, 3 skipped, apart from the 7 macOS-only failures main has too. docs/remaining.md lists UP37 with its pull request and gate. Documentation only; nothing to build.
lagergren
added a commit
to xtclang/xvm
that referenced
this pull request
Nov 28, 2026
UP37 is filed as redhat-developer/lsp4ij#1763, from fix/dap-physical-expression-fragment (e869c476): a DAP expression code fragment is physical when IntelliJ asks for one, so IntelliJ 2026.2's inline logpoint editor no longer fails LocalInspectionsPass's assertion with an IDE error. Checks, recorded in docs/errs-upstream-issues.md: - IntelliJ shows the inline logpoint editor only for a breakpoint whose Suspend is unchecked; a suspending one with the same log expression reports nothing on main (run-4529688658410320836). - With Suspend unchecked, a plugin built from main reports the error (run-6266382029699247857), and one built from the fix doesn't (run-695486991974889100; X304 then times out, as expected without UP32, since such a breakpoint leaves the program stopped on main). - The fix's two tests fail without it; LSP4IJ's ./gradlew check runs 745 tests, 3 skipped, apart from the 7 macOS-only failures main has too. docs/remaining.md lists UP37 with its pull request and gate. Documentation only; nothing to build.
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.
In IntelliJ 2026.2, a DAP breakpoint whose Suspend option is unchecked and which has an Evaluate and log expression reports an IDE error:
IntelliJ 2026.2 shows such a breakpoint's expression in an inline logpoint editor (
XLogpointEditor), labelledLog:above the line. Its highlighter runsLocalInspectionsPasson the expression's PSI file, and that pass assertsfile.isPhysical(). IntelliJ ships with-eain its default VM options, so the assertion fires for users, not only in tests.The file is LSP4IJ's
DAPExpressionCodeFragment, whoseisPhysical()always returnsfalse. IntelliJ asks for a physical fragment there:XDebuggerEditorsProviderBase.createDocument()callscreateExpressionCodeFragment(project, expression, context, true), butDAPDebuggerEditorsProviderignoresisPhysical.The fix
DAPExpressionCodeFragmentgets a constructor that takesphysical.isPhysical()returns it, and it enables the view provider's PSI events, as IntelliJ's own code fragments do. The existing constructor stays, and creates a non-physical fragment as before.DAPDebuggerEditorsProviderpassesisPhysicaltocreateExpressionCodeFragment(project, text, fileType, language, isPhysical). That protected method gains the parameter, so a subclass that overrides it gets a compile error instead of silently no longer being called.Test
DAPDebuggerEditorsProviderTestgains two tests, both failing without the change:createDocument()) has a physical fragment.Native check, in IntelliJ IDEA 2026.2.3 with the Ecstasy language server's debug adapter: a breakpoint with Suspend unchecked, "Breakpoint hit" message and
nto evaluate and log. With a plugin built frommain(ef2b18c3), the IDE reports the error above. With one built from this branch, it reports no error. I found it while testing #1759, which makes such breakpoints log; this fix doesn't depend on it../gradlew check: 745 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.