redhat-developer / redhat-developer/vscode-java

Compact source files should not cause package error when placed in subfolders

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

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

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

説明

I am a teacher and I want to use Compact Source files in my courses. But since the students will have many programs to write, I want to place them in subfolders. Right now, when I do that, I get a compile error that the package does not match the folder where the Compact Source file is located : The declared package "" does not match the expected package "sandbox" Java(536871240) .

Is it possible to add the relative path of the Compact Source implicitly to the classpath/sourcepath while compiling/running/debugging the file? So each time a Compact Source is detected, only the relative path to that file is added, not all path to all Compact Source in the project. An option could be useful, like "Implicitly add relative path of Compact Source to sourcepath : true/false".

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

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

はじめの一歩

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

調査の方向性

サブフォルダー内の Compact Source ファイルで Java(536871240) パッケージエラーを再現し、その後、コンパイル、実行、デバッグ中に Compact Source ファイルがどのように扱われるかを追跡します。完了条件は、そのファイルがパッケージ不一致エラーなしにサブフォルダーから動作し、動作が有効な場合に sourcepath に追加されるのがその相対パスだけであることです。

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

評価

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

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

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