redhat-developer / redhat-developer/vscode-java

"The source path must be contained in the project root folder"

未关闭
#3,581 5 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
TypeScript
星标
2.3k
派生
546
平均合并
20 小时 1 分钟
30 天内合并 PR
11

描述

I'm new to VS Code and now trying to convert an Eclipse project to VS Code.
I have multiple Java projects stored in a common folder.
Each project have its own .vscode/settings.json file.
The projects refer to each other on source level as which requires cross-project references.
The projects are unmanaged using VS Code terminology.

Environment
  • Operating System: Mac Sonoma 14.4.1
  • JDK version: 21
  • Visual Studio Code version: 1.88.1
  • Java extension version: 1.29
Steps To Reproduce
  1. Try to add a source path from another project in the folder.
    Then you get the error message from the issue.

[Please attach a sample project reproducing the error]
Please attach logs

Current Result
Expected Result
Additional Informations

If this will be addressed, I think "sourcePaths" should permit relative and absolute paths to any folder.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,使用多个 Java 项目及其 .vscode/settings.json 文件重现该错误。检查 sourcePaths 设置在引用项目根目录之外的文件夹时是如何进行验证的。当预期的跨项目源路径被接受,并且针对所报告配置具有回归覆盖时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, typescript, vscode
领域
tooling
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。