Repository navigation
fix(navigation): 识别 Ant 类路径中 lib 目录之外的依赖 JAR - #12
Merged
devin-ai-integration[bot] merged 2 commits intoNov 26, 2026
Merged
Conversation
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>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
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.
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/,修复前后各启动语言服务器三次。每轮结果一致。a1eb3d2go 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