Hello Please help with Riverpod. Everything works on the command line (Code generation, etc) But VSCode quick refactoring options are absent. I have analysis_options.yaml with :
analyzer: plugins: custom_lint
I followed all the installation pages from the official documentation. should I install some plugins or something? Code asistant has no more ideas.
Try this recipe again:
pubspec.yaml
. In the simplest case, this is:dependencies:
flutter_riverpod:
dev_dependencies:
riverpod_lint:
custom_lint:
and
flutter pub get
analysis_options.yaml
:analyzer:
plugins:
- custom_lint
custom_lint:
# To check, we forcefully enable all the rules
enable_all_lint_rules: true
dart run custom_lint
or
# install `custom_lint` for all projects
dart pub global activate custom_lint
# and run `custom_lint`'s command line in a project
custom_lint
If these steps do not help, also try these commands:
flutter clear
--> flutter pub get
ctrl + shift + p
--> Dart: Restart Analysis Server
ctrl + shift + p
--> Dart: Reanalyze Dart Sources
If all else fails, write an issue in the repository Issues · invertase/dart_custom_lint.