redhat-developer / redhat-developer/vscode-java
Reference other unmanaged folders as dependencies
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 547
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
[provide a description of the issue]
Environment
- Operating System: ANY
- JDK version: 11
- Visual Studio Code version: 1.74.2
- Java extension version: Any
Steps To Reproduce
- Create a javaproject 0, a package and a class
- Create other project 1 a package and a class where you use class of project 0.
Suppose I have 4 independent Java projects: project0, project1, project2, and project3.
Inside each project, I have the src folder, and inside some packages and classes. Project 1, 2, and 3 use classes from project0.
In Eclipse, I can indicate in a section that the sources of project 0 are used. When I try something similar in VScode, I go to configure the classpath of project one and see that it includes its src folder. When I add the src folder of project0, I get the following error: "The source path must be contained in the project root folder."
I can solve this by creating the .jar of project 0 and adding it to the other projects, but this is very inconvenient when making quick tests.
I know there are tools like Maven or Ant to do these things, but I would like to know if there is any way to indicate in vscode that one project uses classes from another without having to include the .jar as a dependency.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
未指定源文件、测试或入口点。首先复现四个项目的设置,并跟踪 Java 扩展的类路径配置,尤其是源路径验证。完成的标准是:project1、project2 和 project3 可以引用 project0 的非托管源,而无需构建 JAR 或触发项目根目录错误。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, vscode
- 领域
- developer-experience
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100