flutter / flutter/devtools

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

Ouverte
#8,912 21 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug devtools extensions P1 product-quality
Langage dominant
Dart
Étoiles
1.7k
Forks
404
Merge moyen
6 j 17 h
PR mergées (30 j)
18

Description

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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.