Repository navigation
Declare the Java debugger module for the AI debugger on 2026.1+ (EDU-9198) - #64
Merged
Merged
Conversation
Since 2026.2 `intellij.java.debugger.impl` is an optional content module of the Java plugin with its own classloader, and a dependency on `com.intellij.modules.java` exposes only `intellij.java.backend`. So ai-debugger-jvm could not load `JavaLineBreakpointType`, and `JvmAIDebuggerBreakpointType` failed with ClassNotFoundException on startup (EDU-9198). The module dependency is inserted by processResources for 2026.1+ only, because the module does not exist in 2025.x, where these classes are part of the Java plugin's main module.
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.
Fixes EDU-9198:
ClassNotFoundException: com.intellij.debugger.ui.breakpoints.JavaLineBreakpointTypeon IDEA 2026.2 and 2026.3. Because of it, the AI debugger'sJvmAIDebuggerBreakpointTypecan't be created.Cause
Since 2026.2 the Java plugin's
intellij.java.debugger.implcontent module (JavaLineBreakpointType,DebugProcessImpl,JavaBreakpointHandlerFactory) is optional and has its own classloader. In 2026.1 it wasrequired-if-available, so a dependency on the Java plugin was enough to see it.ai-debugger-jvmonly declares<plugin id="com.intellij.modules.java"/>. On 2026.2+ that gives itintellij.java.backendas its only Java classloader parent, so the superclass ofJvmAIDebuggerBreakpointTypecan't be loaded. It fails in two places:XDebuggerManagerImpl.createDefaultBreakpointscreates every registered breakpoint type at startup.AIBreakPointsStartupActivity→AIBreakPointService.initialize→JvmBreakpointTypeManager.Compilation and tests can't catch it, because both run on a flat classpath that contains every Java plugin module.
Fix
ai-debugger-jvm.xmldeclares<module name="intellij.java.debugger.impl"/>.processResourcesinserts it in place of a marker comment only whenenvironmentName >= 261, the same approach ashs-sql-jvm. The module doesn't exist on 2025.2/2025.3, where these classes are in the Java plugin's main module, and declaring it there would stopai-debugger-jvmfrom loading.Testing
runIdea --args="inspect …") on a fresh project with-Xlog:class+load.Cannot create extension (class=…JvmAIDebuggerBreakpointType)caused by the sameClassNotFoundException.JavaLineBreakpointTypeandJvmAIDebuggerBreakpointTypeload with no error.