redhat-developer / redhat-developer/vscode-java

Package Does Not Exist Error; Project builds and Runs OK.

オープン
#3,832 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
TypeScript
スター
2.3k
フォーク
546
平均マージ
20時間 1分
マージ済み PR(30日)
11

説明

Building a simple HelloWorld app to test importing an external .JAR file
The Jar was built with an earlier version of the JDK but builds on the command line without issues.
The linter indicates that the import class "Media" does not exist even though the jar file has been referenced.
The App runs OK without any errors. Where are these errors being reported from? It looks as it's a Red Hat response.

Environment
  • Operating System: Windows 10
  • JDK version: 17.0.13
  • Visual Studio Code version: 1.94.2
  • Java extension version: 1.35.1 (Language Support for Java by Red Hat.
Steps To Reproduce

Just load the folder containing the HelloWorld.java file into VSCode and the errors show up straight away.
Run the app with or without the debugger and it runs ok.

Source, (java file):
HelloWorld.txt

Log.pdf

settings:
settings.json

Current Result

indicates that package does not exist event though it builds ok.

Expected Result

no linting errors.

Additional Information

let me know what else I can provide

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、添付された HelloWorld.java ソースと settings.json があるフォルダーを VS Code で読み込み、その後エラーと Log.pdf を調べます。エディターのパッケージが見つからないという診断結果を、コマンドラインでのビルドおよび実行時の動作と比較します。外部 JAR が Java 拡張機能によって認識され、対応する linting エラーが表示されなくなれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java, vscode
領域
tooling
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。