emilianbold opened a new pull request, #53: URL: https://github.com/apache/netbeans-jackpot30/pull/53
Three defects, all in the --filter-patch path: 1. filterBatchResult computed the filtered resource map, but returned the unfiltered one 2. PatchDescription.included computed the end line of a match from the begin position, so a match never spanned more than one line for the purposes of the filter. 3. Even with (2) fixed, the filter cannot work from the ErrorDescription's range: ErrorDescriptionFactory never produces a multi-line span (forTree clamps the end to the end of the first line, forName uses the name span), so a match starting on a line the patch did not add and ending on a line it did add was dropped. The hint worker wrapper now filters by the span of the tree the hint matched (from SourcePositions), falling back to the description's own range. Assisted-by: GLM-5.3 Personal note to reviewers: this PR is me upstreaming fixes and improvements as part of https://github.com/emilianbold/jackpot/tree/agent-tool, where I hope to make a tool (for AI agents and humans) to do semantic edits on Java code (instead of plain edits or regexp edits). I always thought Jackpot could be a hidden jewel and could be something more tool-like / lightweight compared to a language server. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
