Closed Abhilash-Chandran closed 3 years ago
I have been using the lint package for a while and now I am suddenly getting the same problem in a new project.
If you have a project with multiple modules you might run into this bug: https://github.com/dart-lang/sdk/issues/42910
When it happens for a single module this bug was fixed in Dart 2.10. Try to upgrade if possible.
Yea I just found and commented on this issue. Thanks!
Thanks for the feed back @passsy. I checked even the closed issues list before opening this. Hope its not a repeated issue. Should I close this or leave it open until the main issue is resolved..?
Close when the issue is resolved on your side
The workaround https://github.com/dart-lang/sdk/issues/42910#issuecomment-851943584, adding analysis_options.yaml
in every project is working. Including example projects
I am using VSCode and I added
lint:^1.2.0
as adev_dependencies
.Now trying to import
analysis_options_package.yaml
as shown below breaks theflutter analyze
.include: package:lint/analysis_options_package.yaml
Following warning is raise by
flutter analyze
.Should it be added to normal
dependencies
insteaddev_dependecies
? In my case that didn't help either. Not sure if I am missing any step.