Skip to content

fix(navigation): 识别 Ant 类路径中 lib 目录之外的依赖 JAR - #12

Merged
devin-ai-integration[bot] merged 2 commits into
mainfrom
devin/1795694970-7-ant-classpath
Nov 26, 2026
Merged

devin-ai-integration[bot] merged 2 commits into
mainfrom
devin/1795694970-7-ant-classpath

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Closes #7

Summary

Ant 项目可以正常编译,但 Java Support Lite 会漏掉声明在 ext/ 等目录中的依赖,导致类和方法都无法跳转。现在插件静态读取 <path> 和 <classpath> 下的 pathelement location 与 fileset dir,解析项目顶层属性及显式加载的同目录 build.properties,按声明顺序收录工作区中的 JAR。修改属性交换同一组 JAR 的优先级后,下一次扫描会更新跳转目标。

复现与复测 在 Ubuntu x86_64 上用 Ant 1.10.12、OpenJDK 17 编译包含两个外部 JAR 的最小项目。对同一源码运行 nav-bench -under src/,修复前后各启动语言服务器三次。每轮结果一致。

指标 main a1eb3d2 本分支
依赖类与方法命中 0/4 4/4
项目内声明命中 2/2 2/2
查询后 RSS 7 MiB 8 MiB

go vet ./...、全仓 gofmt 检查和 go test -timeout=120s -race -count=1 ./... 均通过。回归测试覆盖模块相对路径、include/exclude、源码包、未知属性和更改 JAR 顺序后的定义跳转。

独立提交修正主分支已有的 gofmt 差异,并将受校验和约束的 SDK 文件固定为 LF。在启用 core.autocrlf=true 的检出中,12 项 SDK 校验和均匹配。主分支 CI 记录

Link to Devin session: https://app.devin.ai/sessions/db081744c2054744960f17c6380c8dad
Open in Devin Desktop: https://app.devin.ai/desktop/session/db081744c2054744960f17c6380c8dad?variant=devin
Requested by: @1lck

1lck and others added 2 commits November 26, 2026 12:15
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration
devin-ai-integration Bot merged commit 4750015 into main Nov 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

读取 Ant build.xml 里 lib 目录之外的 classpath

1 participant