flutter-intellij: Can't not see the varable's information at breakpoint
Steps to Reproduce
Setup a breakPoint and see the info in var. But everytime will raise error in log console:
Cannot invoke "com.google.gson.JsonElement.isJsonPrimitive()" because "elem" is null
Here is the img:
Version info
[!] Flutter (Channel stable/v3.3.8.xianyu, 3.3.9-0.0.pre.210, on macOS 14.1.2
23B92 darwin-x64, locale zh-Hans-CN)
• Flutter version 3.3.9-0.0.pre.210 on channel stable/v3.3.8.xianyu at
/Users/wjr/flutter
! Upstream repository git@gitlab.alibaba-inc.com:ali-flutter/flutter.git is
not a standard remote
• Framework revision a1f0c4291a (6 weeks ago), 2024-01-12 15:32:44 +0800
• Engine revision 7bc1415569
• Dart version 2.18.4
• DevTools version 2.15.0
• Flutter download mirror http://aliuc-flutter-storage.alibaba.net/uc
[!] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
• Android SDK at /Users/wjr/Library/Android/sdk
• Platform android-33, build-tools 33.0.2
• ANDROID_HOME = /Users/wjr/Library/Android/sdk
• ANDROID_SDK_ROOT = /Users/wjr/Library/Android/sdk
• Java binary at: /Library/Internet
Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java
• Java version Java(TM) SE Runtime Environment (build 1.8.0_291-b10)
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for
more details.
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15C500b
• CocoaPods version 1.14.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[!] Android Studio (version 2023.1)
• Android Studio at /Users/wjr/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
✗ Unable to find bundled Java version.
• Try updating or re-installing Android Studio.
[✓] VS Code (version 1.86.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.82.0
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 13
- Comments: 34 (7 by maintainers)
Commits related to this issue
- Fix for debugger breakpoint issue (#7228) — committed to jwren/flutter-intellij by jwren 3 years ago
- Fix for debugger breakpoint issue (#7228) (#7248) — committed to flutter/flutter-intellij by jwren 3 years ago
- Deprecation of BoundField.getDecl() with NPE check (#7228) — committed to jwren/flutter-intellij by jwren 3 years ago
- Deprecation of BoundField.getDecl() with NPE check (#7228) (#7254) — committed to flutter/flutter-intellij by jwren 3 years ago
- Additional hardening in DartStaticFieldsGroup.java in an attempt to resolve https://github.com/flutter/flutter-intellij/issues/7228 — committed to jwren/flutter-intellij by jwren 3 years ago
- Additional hardening in DartStaticFieldsGroup.java in an attempt to resolve https://github.com/flutter/flutter-intellij/issues/7228 — committed to jwren/flutter-intellij by jwren 3 years ago
- Additional hardening in DartStaticFieldsGroup.java in an attempt to resolve issue 7228 (#7282) https://github.com/flutter/flutter-intellij/issues/7228 — committed to flutter/flutter-intellij by jwren 3 years ago
flutter-intellij.zip
Here is the plugin that seems works fine. Everybody can take this and install from disk to fallback
Plugin ‘Flutter’ (version ‘77.1.2’) is not compatible with the current version of the IDE, because it requires build 231.* or older but the current build is AI-232.10227.8
Emm seems 78.2.x still have issue…
https://github.com/flutter/flutter-intellij/assets/49340347/3e6ea80d-c86a-40dd-b4dd-8e07e3139db0
+1
Android Studio Iguana | 2023.2.1 Build #AI-232.10227.8.2321.11479570, built on February 21, 2024
Shout out to @trueAtom for validating before I was able to ping this issue.
Closing this issue now as obsolete, this issue was caused by the VM protocol removing an old protocol, and the Flutter Plugin following suite to remove/deprecate old API calls. From what I can tell this issue was only encountered by projects on very old versions of the Flutter/ Dart SDKs.
… That said, I did have one last attempt to fix this for projects on older SDKs: https://github.com/flutter/flutter-intellij/pull/7282. Thanks to @luckysmg who posted the error that lead to this fix. I hope that others find what @trueAtom did and that the issue is resolved.
The latest release of the Flutter Plugin,
74.4.xfor both Iguana and Jellyfish (!) has this fix.Debugging is working fine with Android Studio Giraffe and Lower Versions, but not Working with the higher versions.
the same
This problem is really blocking coding debug, please…
Thank you @trueAtom 👍