flutter / devtools

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

DevTools is calling a VM service extension that no longer exists #4973

Open jacob314 opened 1 year ago

jacob314 commented 1 year ago

Repro: open DevTools. flutter: Attempted to call extension 'ext.flutter.inspector.structuredErrors', but no service with that name exists

kenzieschmoll commented 1 year ago

Is it that the service extension doesn't exist or that we are calling it before it is registered?

kenzieschmoll commented 1 year ago

It looks like we do register this service extension here: https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/widgets/widget_inspector.dart#L1006-L1013

What kind of app are you connecting DevTools to?

Nekobaex commented 1 year ago

I have switched the channel of flutter to beta (3.16.0-0.4.pre) and connected to windows, but still have this issue.

image

emanuel-braz commented 10 months ago

Same Here.

I'm creating a Devtools Extension, in simulated env it works well, but when I deploy, it stops working on real environment. I can see the tab "Flutter Micro App", but it's not possible to enable it


DevTools version: 2.28.4 IDE: VSCode Connected Device: CPU / OS: arm64 (64 bit) android Connected app type: Flutter native (debug build) Dart Version: 3.2.3 Flutter Version: 3.16.5 / stable Framework / Engine: 78666c8dc5 / 3f3e560236

Log: {"level":"INFO","message":"DevTools version 2.28.4.","timestamp":"2024-01-15 14:34:56.760Z","loggerName":"framework_core"} {"level":"INFO","message":"Attempted to call extension 'ext.flutter.inspector.structuredErrors', but no service with that name exists","timestamp":"2024-01-15 14:34:56.938Z","loggerName":"service_extension_manager"} {"level":"WARNING","message":"DevTool's log level changed to FINEST","timestamp":"2024-01-15 14:35:34.472Z","loggerName":""}

Error screen image

Expected screen image

Flutter Doctor [✓] Flutter (Channel stable, 3.16.5, on macOS 13.0 22A8380 darwin-arm64 (Rosetta), locale en-BR) • Flutter version 3.16.5 on channel stable at /Users/eb/.puro/envs/v3_16_5/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 78666c8dc5 (4 weeks ago), 2023-12-19 16:14:14 -0800 • Engine revision 3f3e560236 • Dart version 3.2.3 • DevTools version 2.28.4 [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2) • Android SDK at /Users/eb/Library/Android/sdk • Platform android-34, build-tools 33.0.2 • ANDROID_HOME = /Users/eb/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 14.2) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 14C18 • CocoaPods version 1.12.0 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2022.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301) [✓] VS Code (version 1.85.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.81.20231227 [✓] Connected device (3 available) • sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64 • Android 13 (API 33) (emulator) • macOS (desktop) • macos • darwin-arm64 • macOS 13.0 22A8380 darwin-arm64 (Rosetta) • Chrome (web) • chrome • web-javascript • Google Chrome 120.0.6099.216 [✓] Network resources • All expected network resources are available.