redhat-developer / redhat-developer/vscode-java

Build path error

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

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

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

説明

Hi, I have a problem about build directory.

cd /home/ray/dev/JavaProject ; /usr/bin/env /usr/lib/jvm/java-11-openjdk-amd64/bin/java -cp /home/ray/.vscode-server/data/User/workspaceStorage/154ea3c966ddc0a55d55766b94e4cd89/redhat.java/jdt_ws/jdt.ls-java-project/bin App

This command run when I open the java project in workspace and click Run.

usr/bin/env /usr/lib/jvm/java-11-openjdk-amd64/bin/java -cp /home/ray/dev/JavaProject/originaldemo/bin App

This command run when I open the project individually rather than in a workspace and click Run.

Image
The directory structure when opened from the workspace, springdemo is another java project

Image
Directory structure when opened separately

I can use "java.project.outputPath" option to set build directory in file JavaProject.code-workspace and it works. However, I want to set the build directory of each project in the workspace to the root directory of the project instead of the only directory of the workspace and I set this option in file settings.json under folder .vscode in this project, but this setting doesn't seem to work.

So, I want to build and run the java project using the build directory I set up for each project in my workspace instead of using the default directory under .vscode-server or the only directory of the workspace. How should I set it up to serve my purpose or is this a bug?

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

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

はじめの一歩

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

調査の方向性

ワークスペースファイル JavaProject.code-workspace と各プロジェクトの .vscode/settings.json から始め、プロジェクトをまとめて開いた場合と個別に開いた場合で java.project.outputPath がどのように適用されるかを比較します。示されているプロジェクト構成で Run アクションを再現します。各ワークスペースプロジェクトが共有の .vscode-server パスではなく、それぞれに設定された出力ディレクトリを使用すれば完了です。

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

評価

技術スタック
java, vscode
領域
build-system, developer-experience
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

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

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