Breakpoint paths sent to the VM are case-sensitive on Windows #32222
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
vm-debugger
I suspect this is a can of worms, but I was investigating a bug with breakpoints not being hit today (Dart-Code/Dart-Code#586) and it turned out to be related to the casing of drive letters.
The drive letter that the VM is deciding is correct for the drive is different to the one that my editor is providing me as a breakpoint path. This causes the breakpoint to be missed. I have a dirty workaround, which is to always send breakpoints with both a lowercase and uppercase drive letter:
However, this seems a bit fragile - I'm sure in future someone will manage to have some other part of the path cased differently and we'll see a similar bug.
Since I can't influence the casing of the URI inside the VM, I wonder if the the best fix would be for the VM to treat
file:///
URIs as case-insensitive on Windows?(We have a similar issue with the analyzer #32095 so I suspect inconsistencies with Windows reported casing of drive letters might spread quite far!)
The text was updated successfully, but these errors were encountered: