flutter / devtools

Performance tools for Flutter
https://flutter.dev/docs/development/tools/devtools/
BSD 3-Clause "New" or "Revised" License
1.59k stars 328 forks source link

Serving and debugging a web app prints unactionable survey errors #8405

Open elliette opened 1 month ago

elliette commented 1 month ago

Copied from: https://github.com/dart-lang/sdk/issues/56843

When I try running and debugging a (in this case, pure Dart) web app with webdev serve --debug, I get repeated survey errors that are unactionable and aren't relevant to developers:

[INFO] Serving DevTools at http://127.0.0.1:56627
[INFO] Serving `web` on http://127.0.0.1:8080
[INFO] Running build completed, took 54ms
[INFO] Caching finalized dependency graph completed, took 90ms
[INFO] Succeeded after 146ms with 0 outputs (0 actions)
[INFO] Debug service listening on sse://127.0.0.1:56677/ecP-qts8hmU=/$debugHandler

ERROR: setActiveSurvey not called. - api/getSurveyShownCount
ERROR: setActiveSurvey not called. - api/getSurveyActionTaken
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Reproduction steps:

  1. dart create -t web web_app
  2. dart pub add dev:webdev
  3. dart run webdev serve --debug
  4. Open DevTools, either through the output link or the debug extension.
kenzieschmoll commented 1 month ago

I'd like to refactor the survey APIs so that we can remove the setActiveSurvey api altogether and just send the active survey as a parameter with the other survey APIs.