version-fox / version-fox/vfox
[BUG]: maven使用 vfox的 java会有 ct.sym 错误
Open
Nobody has claimed this yet.
bug
- Dominant language
- Go
- Stars
- 4k
- Forks
- 157
- Avg merge
- 1h 3m
- Merged PRs (30d)
- 5
Description
Version
1.0.11
OS
Windows
Describe the bug
默认 Maven 的问题是 Java 8 javac 通过 vfox junction ~.vfox\sdks\java 访问 lib\ct.sym 失败。注册表中的 junction
兜底已保留,没有固定到某个 Java 版本。
让 AI 修,AI 修改了 PowerShell profile:
- 保留 vfox activate pwsh。
- 启动时及每次 prompt 从 vfox env --json 获取当前版本的物理 cache 路径,并覆盖当前会话的 JAVA_HOME。
- 实测局部选择 Java 21 时自动切到 v-21.0.2+13;回到项目后自动恢复 Java 8。
- 新 PowerShell 中 Maven 使用物理 Java 8 路径,重新编译成功,不再出现 ct.sym 错误。
Screenshots[optional]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Windows PowerShell failure where Maven using Java 8 through the vfox junction cannot access lib\ct.sym. Inspect the PowerShell profile behavior around vfox activate pwsh, vfox env --json, and JAVA_HOME, then verify that Maven uses the physical Java path and Java version switching still works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, powershell
- Domain
- build-system, cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100