microsoft / microsoft/vscode-java-test

Behavior is different between vscode web and client

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

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

ai-triaged bug investigating maven test-execution ui
主要言語
TypeScript
スター
340
フォーク
173
平均マージ
1日 19時間
マージ済み PR(30日)
18

説明

Recently, when I run java test on web, it showed an errer: Failed to get workspace folder from test item: $(symbol-method) contextLoads().

image

Tunnel Host OS: Linux debian-server 6.1.0-16-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.67-1 (2023-12-12) x86_64 GNU/Linux
Tunnel Host VSCode CLI Version: code 1.85.1 (commit 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2)
Plugin Version: v0.40.1

Client: Microsoft Edge Version 120.0.2210.91 (Official build) (64-bit)

demo project was created by spring initializr without adding any dependency.

How to reduplicate:

  1. Open vscode web and connect to the tunnel.
  2. Open the demo project via direct link, and import the project into workspace. (Also, I don't know why the project wasn't auto imported)
  3. Run contextLoad() test method.

However, when I ran the test method in vscode client, everyting went well.

Client OS: Windows 11 Professional 23H2
Client VSCode Version: 1.85.1 (commit 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2)

  1. Open vscode and connect to the tunnel.
  2. Open the demo project via direct link, and the project will be imported into workspace automatically.
  3. Run contextLoad() test method.

image

I thought the behavior should be the same, but actually not. I have seen some issues #1463 and microsoft/vscode#74104, but I thought these issues were not the same as mine.

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

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

はじめの一歩

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

調査の方向性

リンク先のデモプロジェクトを使い、トンネル経由で vscode.dev での Java テスト実行を再現してから、VS Code クライアントのフローと比較します。まずプロジェクトのインポートと contextLoads() テストから始めます。Web 版とクライアント版の両方でプロジェクトをインポートし、workspace-folder エラーなしでテストを実行できれば完了です。

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

評価

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

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

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