Skip to content

Analyzer .dart_tool/build/generated support fails in workspaces #60873

Open
@davidmorgan

Description

@davidmorgan

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.model-build-integrationIssues related to analyzer/cfe/build_runner integration.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions