Description
See repro here
dart-lang/build#3798 (comment)
the analyzer understands the .dart_tool/build/generated
output folder used by build_runner
, which lets you build+compile for web with build_runner
, and the analyzer behind the IDE also understands and analyzes the output.
But, if you switch to a pub workspace, the analyzer can no longer find the generated output and so the IDE says there are errors due to missing files.
As discussed on chat, this support is in a weird place today: the dart compile
command doesn't support .dart_tool/build/generated
folder so it will not be able to compile the exact same code. It looks like we should build this out into a full feature whereby all the tools can find and work on generated output in a nice way.
But for people building web apps today, it would be good to have the workspace support match the non-workspace support, so that's what this issue is for.
Then I'll follow up later on the longer term :)