Skip to content

No analysis on package:build in build repo in VSCode #60052

@davidmorgan

Description

@davidmorgan

I guess this is an issue with workspaces.

If I load the whole build repo in VSCode:

# ~/git/build from: https://github.com/dart-lang/build
code --remote ssh-remote+davidmorgan@<host> /usr/local/google/home/davidmorgan/git/build 

then everything works except in the folder ~/git/build/build, where there seem to be no analysis results reported.

For example if I write int x = '3'; at the top level in ~/git/build/lib/src/asset/reader.dart, nothing is reported.

I am guessing this might have something to do with both the workspace and package being called build. If I just rename the folder ~/git/build/build to ~/git/build/buildx, it immediately reports "A value of type 'String' can't be assigned to a variable of type 'int'.".

It also works without the rename if I open the package but not the workspace

code --remote ssh-remote+davidmorgan@<host> /usr/local/google/home/davidmorgan/git/build/build

In addition to that if I have two VSCode windows open, one at the workspace ~/git/build and one at the package ~/git/build/build, and make edits, and see analysis reported in the package window and not in the workspace window.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions