flutter / flutter/devtools

In tests, on Windows & WSL, devtools extension doesn't load first time, fails when loading the second time

Aperta
#8,912 21 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug devtools extensions P1 product-quality
Lingua principale
Dart
Stelle
1.7k
Fork
404
Merge medio
6g 17h
PR unite (30g)
18

Descrizione

The latest version of the ROHD package on `main` (https://github.com/intel/rohd) has a functioning devtools extension when run in the virtual environment, and we have flutter tests passing as well. We have an `artifacts` branch (https://github.com/intel/rohd/tree/artifacts) which (via GitHub actions) contains the built devtool extension in the proper location.

We cannot get the devtool extension to open properly after it has been built. A few datapoints:

- When we build the devtools extension locally, and point to it, then open devtools, chrome freezes, and we can't get to any debug console.
- When we point to a git path in pubspec.yaml (`artifacts` branch) with build available, and run a test, and we do Command Pallette > "Open Devtools in Browser", the "rohd" extension tab is not visible.
- When we point to a git path with build available, and run a test, and we do Command Pallette > "Open Devtools" > "In Web Browser" (note the difference from the previous bullet), the "rohd" extension is visible, but cannot enable the extension. Clicking the enable button seems to trigger some API to localhost, but to no effect.
- When we point to a git path with build available, and run an example (from example/ directory), and we do Command Pallette > "Open Devtools" > "In Web Browser" OR Command Pallette > "Open Devtools in Browser", chrome opens but then the debug session immediately ends and the devtools extension does not connect.

An example repo you could use is rohd-hcl (https://github.com/intel/rohd-hcl) which depends on rohd. For the extension to fully be functional, you'd just need to set a breakpoint after some `.build()` step in a test or example -- but we haven't even gotten to the point where any of the UI loads anyways yet.

We've tried running with:
- Dart 3.7.0 on WSL2 on Windows 11
- Flutter 3.29.0 on Windows 11

We use Visual Studio Code.

We're happy to provide any additional details to help. All our source code to reproduce is available in the repos mentioned, including the rohd package, the rohd devtools extension, and rohd-hcl as a package that depends on rohd.

Tagging @kenzieschmoll @DanTup, since they were helpful last time we were trying to get this all working :)

___
**DevTools version**: 2.42.2
**IDE**: VSCode

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Riprodurre su Windows 11 o WSL2 usando il package rohd, il suo branch artifacts, il repository di esempio rohd-hcl e un esempio dalla directory example/. Confrontare i due comandi di VS Code per aprire DevTools e l’estensione locale o compilata con Git, quindi usare il breakpoint di test o di esempio indicato per verificare se la sessione di debug e l’estensione si connettono; l’operazione è completata quando la scheda rohd viene caricata e può essere abilitata al primo tentativo.

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

Valutazione

Stack tecnologico
dart, flutter, vscode
Ambito
desktop-dev, devtools, operating-systems
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.