devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Reporting error: Failed to parse package:app/mvvm/view.abs.dart.

Open siddhamjain02 opened this issue 7 months ago • 1 comments

Stack trace: org-dartlang-sdk:///dart-sdk/lib/_internal/js_runtime/lib/core_patch.dart 787:58 StackTrace.current ../../../lib/src/screens/debugger/codeview_controller.dart 250:29 CodeViewController._showScriptLocation org-dartlang-sdk:///dart-sdk/lib/_internal/js_runtime/lib/async_patch.dart 311:19 _wrapJsFunctionForAsync org-dartlang-sdk:///dart-sdk/lib/_internal/js_runtime/lib/async_patch.dart 336:23 _wrapJsFunctionForAsync. org-dartlang-sdk:///dart-sdk/lib/_internal/js_runtime/lib/async_patch.dart 287:19 _awaitOnObject. org-dartlang-sdk:///dart-sdk/lib/async/zone.dart 1538:46 _rootRunUnary org-dartlang-sdk:///dart-sdk/lib/async/zone.dart 1428:34 _CustomZone.runUnary org-dartlang-sdk:///dart-sdk/lib/async/future_impl.dart 173:29 _FutureListener.handleValue org-dartlang-sdk:///dart-sdk/lib/async/future_impl.dart 961:13 _Future._propagateToListeners

<-- Please describe your problem here. Be sure to include repro steps. -->


DevTools version: 2.42.3 IDE: VSCode Connected Device: CPU / OS: arm64 (64 bit) android Connected app type: Flutter native (profile build) Dart Version: 3.7.2 Flutter Version: 3.29.2 / stable Framework / Engine: c236373904 / 18b71d647a

siddhamjain02 avatar Jun 11 '25 09:06 siddhamjain02

From the stack trace it looks to me like if the Dart code for a file can't be parsed, the debugger screen is crashing. I have not confirmed though myself.

This could also be related to language versions, if DevTools is older than the package being loaded and can't understand some code that is at a newer language version.

jakemac53 avatar Jun 11 '25 15:06 jakemac53