microsoft / microsoft/vscode-java-test

Behavior is different between vscode web and client

Aperta
#1,647 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

ai-triaged bug investigating maven test-execution ui
Lingua principale
TypeScript
Stelle
340
Fork
173
Merge medio
1g 19h
PR unite (30g)
18

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Riproduci l’esecuzione dei test Java in vscode.dev tramite un tunnel usando il progetto demo collegato, quindi confrontala con il flusso del client VS Code. Inizia con l’importazione del progetto e il test contextLoads(); il lavoro è completato quando entrambe le versioni, web e client, importano il progetto ed eseguono il test senza l’errore workspace-folder.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java, typescript, vscode
Ambito
devtools, testing-qa, web-dev
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.