redhat-developer / redhat-developer/vscode-java
_ is not on the classpath of project _, only syntax errors are reported
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
Every time I try to create a package for my java classes so I can finish my projects for school, errors like this occur:

When I finally try to run the program, I get an even more infuriating message:

It hurts me to be unable to properly test my code, even if I know I did well. It has been giving me anxiety for quite a while now, so I'm quite surprised this has slipped under the radar for so long.
-
Operating System:

-
JDK version: 15.0.2
-
Visual Studio Code version:

-
Java extension version:


Steps To Reproduce
- Create a java class with methods and everything.
- Put it in a folder with a test program.
- List the folder as a package in both programs.
- Try to use the class and it's methods in the test program. Both errors should be clearly visible by now.
Here is my code as an example of what can cause it. Try compiling either Test.java or Customer.java and it should be quite apparent.
Chapter10.zip
Current Result
A warning that constantly results in weird compiler errors
Expected Result
A working class that I can use
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、添付された Chapter10.zip を開き、JDK 15.0.2 を使用して VS Code で Test.java と Customer.java によりレポートを再現します。Java 拡張機能による package と classpath の設定の扱いを確認します。classpath の警告が解消され、サンプルクラスが期待どおりにコンパイルおよび実行できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, vscode
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100