You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This doesn't appear to be happening on the CI, because tests pass there. But locally, I see these improperly generated mocks each time I run dt generate-code.
Run dt update-flutter-sdk --update-on-path to ensure that the tool/flutter-sdk directory and your local flutter sdk are on the flutter version that DevTools is pinned to use.
Run dt generate-code to generate mocks. Optionally, you can also try dt generate-code --upgrade to upgrade pub dependencies before generating code. Both resulted in generated code with errors for me.
The text was updated successfully, but these errors were encountered:
kenzieschmoll
added
P2
important to work on, but not at the top of the work list.
tool
Issues pertaining to `devtools/tool/` scripts and functionality
labels
Oct 15, 2024
I've seen this a few times before and it's fairly sporadic. I thought it was just me so I didn't dig into it too much (honestly, I didn't know where to start debugging). Sometimes I just manually fix the file up (changing dynamic to the type it wants), but if it's not just me it would be nice to track down.
I just pulled latest (7a9b23f) and ran dt update-flutter-sdk then dt generate-code and did not have this issue. So I tried with --upgrade but it still didn't occur.
It's weird because when it happens, it's only for a couple of requests, and as far as I can tell the missing types (which have been replaced by dynamic) are all in the same library as other types that were included correctly!?
This doesn't appear to be happening on the CI, because tests pass there. But locally, I see these improperly generated mocks each time I run
dt generate-code
.CC @DanTup because I think you've run into this before?
CC @srawlins in case you have any ideas about our generate mocks setup.
Repro steps:
dt update-flutter-sdk --update-on-path
to ensure that thetool/flutter-sdk
directory and your local flutter sdk are on the flutter version that DevTools is pinned to use.dt generate-code
to generate mocks. Optionally, you can also trydt generate-code --upgrade
to upgrade pub dependencies before generating code. Both resulted in generated code with errors for me.The text was updated successfully, but these errors were encountered: