feat: auto-detect Lombok and add -javaagent at startup (#74) #76
No reviewers
Labels
No labels
bug
build
enhancement
headless
P1-critical
P2-high
P3-medium
P4-low
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ai-tools/jdt-mcp-server!76
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/74-lombok-support"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
pom.xml/build.gradle, find JAR in~/.m2/repository, add-javaagentautomatically~/.jdt-mcp/jdt-mcp.inifor manual VM args +JDTMCP_VMARGSenv var +JDTMCP_NO_LOMBOK=1opt-outProblem
JDT needs the Lombok agent as
-javaagentto see generated members (getters, constructors, loggers). Without it, Lombok projects show hundreds of phantom compile errors and refactorings fail withAssertionFailedExceptioninTextFileChange.releaseDocument().Test plan
INFO: Lombok detected, adding -javaagent:...on stderrjdt_get_compilation_errorsshows 0 errors for Lombok modulesJDTMCP_NO_LOMBOK=1→ verify auto-detection is skipped~/.jdt-mcp/jdt-mcp.ini→ verify it's passed to JVMJDTMCP_VMARGS="-Xmx4g"→ verify it's passed to JVMCloses #74
🤖 Generated with Claude Code