BootBlock · GitHub

There appears to be someplace within the file loading chain that may be normalising file paths to lowercase, while other parts of Dart-Code are not normalising the paths and so paths to files are being seen as being different even though they're in actuality the same.

This results in an issue - and potentially others - of test tree node duplication when running tests as suite keys are specified via file path.

This only happens when LSP is enabled.

image

Note that the passed another_test.dart node is a duplication of the grey version below it; they're the same test(s) but seen as different due to casing differences as mentioned above.

Versions (please complete the following information):

  • VS Code version: 1.52.1
  • Dart extension version: 3.18
  • Dart/Flutter SDK version: 2.10.4 / 1.26.0-2.0.pre.170

Read the original on github.com ↗