-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Analyzer not picking up changes after BuiltValue generation in IntelliJ #42191
Comments
How have you configured source gen? I believe there are two options - one to generate in your project source, and one to generate in the .dart_tool directory. IOW, where are the files being generated? |
Hey @devoncarew I am generating into my project source, so my NOTE: |
OK, when code gen is configured to generate into It sounds like you're generating into your existing source however (into Can you come up with a minimal repro? That would help us track down where the issue is. |
@rayk Do you exclude generated files in your For me the problem goes away when I open the generated file in IntelliJ, type around it and then undo. Not ideal, but faster than invalidating or restarting the DAS. |
@simolus3 Interesting, this is the same for me. I just try to adding and removing my |
This maybe a regression issue.
There was a previous defect with identical behaviour, which appeared to resolve itself.
The core of the issue is as follows:
The IDE (intelliJ) does not recognise (red squeakily line) newly created BuiltValue abstract classes or existing BuiltValue abstract classes that have been edited, until "Invalidate Cache / Restart..." from the File menu of intellij has restarted the IDE and reindexed the whole project (this is very time consuming).
Reproduction Steps:
flutter pub run build_runner build
orflutter pub run build_runner build --delete-conflicting-outputs
then:
PersistEventBuilder
has been created in the *.g.dart file.Observe red squeakily lines in IDE.
Select invalidate Cache / Restart... for the file menu.
Wait Wait Wait.
Observe the IDE now recognises the
PersistEvent
Environment:
and
References:
@davidmorgan (BuiltValue)
initial issue - over a year old
@aaronlademann-wf (Also impacted by pervious issue)
cross filed in flutter plugin repository
The text was updated successfully, but these errors were encountered: