-
-
Notifications
You must be signed in to change notification settings - Fork 920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
riverpod_lint didn't show assists (in context menu) #3582
Comments
This could be related to flutter 3.22.x. |
wouldn't this disable riverpod_lint entirely, hence not solving the problem? I tried (at least in AS) and it's not showing the "convert to consumer widget" assist. |
Same problem facing |
The request edit.getAssists failed with the following error: at: The request edit.getAssists failed with the following error: at: The request edit.getAssists failed with the following error: at: [ConvertToStatelessBaseWidget] 2024-06-02T23:33:24.354847 Plugin ConvertToStatelessBaseWidget threw while analyzing /Users/nhcoder/FlutterProjects/pro_pdf/lib/main.dart: |
Nothing at the moment will show the Riverpod "Convert to..." assists. The custom_lint disable just enables the "Wrap with widget..." context assists to work reliably. They seem to show inconsistently without the custom_lint disable temp fix. |
Yes, that's what I am experiencing too. I am getting that OP was reporting that he/she didn't see the "Convert" assist, not the inconsistent showing of "Wrap" (for some reason it shows only when the caret is just before the widget name). No big deal since converting them manually is easy, but still disorienting the first time you see it. |
I came across this issue too. I'll fix after I'm back from Japan |
Description of the bug
Expected context menu what look like this:
https://raw.githubusercontent.com/rrousselGit/riverpod/master/packages/riverpod_lint/resources/convert_to_consumer_widget.gif
But all i got is "Convert to StatefulWidget"
To Reproduce
pubspec.yaml click me to see
analysis_options.yaml click me to see
flutter doctor --verbose click me to see
/home/alex/Android/flutter/bin/flutter doctor --verbose
[✓] Flutter (Channel stable, 3.22.1, on openSUSE Leap 15.5 5.14.21-150500.55.62-default, locale en_US.UTF-8)
• Flutter version 3.22.1 on channel stable at /home/alex/Android/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision a14f74ff3a (vor 7 Tagen), 2024-05-22 11:08:21 -0500
• Engine revision 55eae6864b
• Dart version 3.4.1
• DevTools version 2.34.3
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /home/alex/Android/Sdk
• Platform android-34, build-tools 34.0.0
• ANDROID_HOME = /home/alex/Android/Sdk
• Java binary at: /home/alex/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-1/232.10227.8.2321.11479570/jbr/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Linux toolchain - develop for Linux desktop
• clang version 13.0.1
• cmake version 3.20.4
• ninja version 1.10.0
• pkg-config version 0.29.2
[✓] Android Studio (version 2023.3)
• Android Studio at /home/alex/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-1/232.10227.8.2321.11479570
• Flutter plugin version 79.0.2
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)
[✓] Android Studio (version 2023.2)
• Android Studio at /home/alex/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-1/232.10227.8.2321.11280706
• Flutter plugin version 78.2.2
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
[✓] VS Code (version 1.89.1)
• VS Code at /usr/share/code
• Flutter extension version 3.88.0
[✓] Connected device (2 available)
• Linux (desktop) • linux • linux-x64 • openSUSE Leap 15.5 5.14.21-150500.55.62-default
• Chrome (web) • chrome • web-javascript • Google Chrome 125.0.6422.112
[✓] Network resources
• All expected network resources are available.
• No issues found!
Process finished with exit code 0
Expected behavior
I expect context menu what look like this:
https://raw.githubusercontent.com/rrousselGit/riverpod/master/packages/riverpod_lint/resources/convert_to_consumer_widget.gif
The text was updated successfully, but these errors were encountered: