-
Notifications
You must be signed in to change notification settings - Fork 256
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
Exclude autogenerated files from analyzer #1961
Comments
Thanks, but I am not very sure whether that is most perfect. For example, IIRC, if excluding the frb_generated.dart, then things like autocomplete will not work for classes there (e.g. we want to call RustLib.init()); I am not sure whether today's Dart linter still does this? |
At least in my case, VSCode will still autocomplete function names in these folders. That might be different for other people though. If you think this change would instead create trouble for others, feel free to close it :) |
That looks great! To double check, have you ensured that the dart analyzer is using the new configurations, e.g. by restarting VSCode and analysis server? (I remembered sometimes the analyzer does not pick up new config automatically, but it may be outdated information and only applies to old Dart) Possibly related: #1949 |
I've been using this config for about a week now and it seems to work great (at least for me) |
I will think about it a bit later. Originally I thought about the preamble thing, but |
I checked it a little bit for the pure_dart example (which contains a ton of code):
Could you please share a minimal reproducible sample and the corresponding dart fix? Then it may be easier to see what is happening. |
Describe the bug
VSCode was prompting me to run dart fix all the time, but it wanted to fix code from cargokit and the generated code all the time.
I just added the following to my
analysis_options.yaml
:Is the template project a git repo or is it generated using code?
I'd like to create a pull request to exclude these directories by default if that sounds reasonable to you.
Steps to reproduce
dart fix -n
Logs
Expected behavior
No response
Generated binding code
No response
OS
No response
Version of
flutter_rust_bridge_codegen
flutter_rust_bridge_codegen 2.0.0-dev.32
Flutter info
No response
Version of
clang++
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: