microsoft / microsoft/vscode-java-debug
Combine classpath from all projects in workspace
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 591
- フォーク
- 429
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 19
説明
Suppose you have demo.jar, which dynamically loads class Demo2, which is to be found in demo2.jar. (There are no maven dependencies between demo and demo2.)
In VSCode, it is easy to create a workspace with the code from demo and demo2, but I have not found any good way to get demo and demo2 on the same classpath when launching the application.
In theory, I could use classPaths in workspace.json/launch.json and point to demo2/target/classes + demo2's dependencies. In practice, however, that quickly gets out of hand, since you typically have many dependencies.
I have looked everywhere but haven't found any "good" solution. Is this something that is not supported?
If it isn't, maybe one could introduce another variable like "$Auto," which includes the workspace's combined classpath.
Environment
- Operating System: macosx
- JDK version: Java(TM) SE Runtime Environment (build 19.0.1+10-21)
- Visual Studio Code version: Version: 1.74.2
- Java extension version: 1.13.0
- Java Debugger extension version: v0.47.0
Please see attached zip.
classpath-problem.zip
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、workspace.json と launch.json に対して classPaths がどのように扱われているかを調べ、添付された classpath-problem.zip を使って 2 つのプロジェクト構成を再現します。デバッガーが現在どのように workspace のプロジェクトと依存関係を解決しているかを確認します。demo の起動で、手動で列挙しなくても demo2 とその依存関係を自動的に含められれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, typescript, vscode
- 領域
- developer-experience, devtools
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100