redhat-developer / redhat-developer/vscode-java
Document how to work with a non-"project" set of files
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 546
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
I'm very new to Java development and am learning by simply creating a few ad hoc files. I'm following a book that uses a folder/package structure of "ch01/sec01" which I mimicked in my VSC folder structure. I noticed that the plugin would always give an error for:
package ch01.sec01;
Saying that the package was actually "" instead. I ignored this error and just carried on but it bothered me. :) A friend pointed out that if I moved my files into a "src" folder, this would go away, and apparently this is the default if you make a new Java project, but as I was just playing around and not really doing a 'project', I never knew this was an issue.
My recommendation is that a quick note be adding to the Troubleshooting section of the readme.
Steps To Reproduce
- Work with Java files w/o first making a Java project
- Note that even though you have the right package, it gets flagged as an error.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
打开 README 并找到 Troubleshooting 部分。添加一条简洁说明,解释在项目结构之外使用 Java 文件时出现的 package 警告,包括 src 文件夹的作用,然后验证新增说明与报告的复现步骤一致。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, vscode
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 45/100