You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Breakpoints are missed if path casing mismatches between rootLib and breakpoint uri #586
There was some refactoring around this a couple of releases back but it was supposed to improve things not make them worse! Should be an easy fix though.
Ok, scratch the above - this is actually caused by the drive letter casing being different. The VM treats file:\/\/\/C:\/HelloDart\/main.dart and /c:/HelloDart/main.dart differently. I have a workaround that I might use, but I'm gonna investigate why the paths (which both came from Code) have different casing.
if(isWin){// Flip the casing of the drive letter since it's often different and the VM doesn't// consider then the same.uris.slice().forEach((uri)=>{if(uri.startsWith("/")&&uri.substring(1,2)===uri.substring(1,2).toLowerCase())uris.push("/"+uri.substring(1,2).toUpperCase()+uri.substring(2));if(uri.startsWith("/")&&uri.substring(1,2)===uri.substring(1,2).toUpperCase())uris.push("/"+uri.substring(1,2).toLowerCase()+uri.substring(2));});}
changed the title [-]Dart-Code is not stopping at breakpoints[/-][+]Breakpoints are missed if path casing mismatches between rootLib and breakpoint uri[/+]on Feb 19, 2018
I'm committing my workaround as a fix for this for now, though I've raised cases with Code and the Dart VM as they might be able to provide better fixes:
Ugh, so it turns out this changed in Code very recently! I was certain it all worked when I tested it only a few weeks ago; good to know I wasn't going mad.
Activity
DanTup commentedon Feb 17, 2018
We seem to be sending the breakpoint only once with a URI that looks bad.
There was some refactoring around this a couple of releases back but it was supposed to improve things not make them worse! Should be an easy fix though.
DanTup commentedon Feb 19, 2018
Ok, scratch the above - this is actually caused by the drive letter casing being different. The VM treats
file:\/\/\/C:\/HelloDart\/main.dartand/c:/HelloDart/main.dartdifferently. I have a workaround that I might use, but I'm gonna investigate why the paths (which both came from Code) have different casing.[-]Dart-Code is not stopping at breakpoints[/-][+]Breakpoints are missed if path casing mismatches between rootLib and breakpoint uri[/+]DanTup commentedon Feb 19, 2018
I'm committing my workaround as a fix for this for now, though I've raised cases with Code and the Dart VM as they might be able to provide better fixes:
microsoft/vscode#43959
dart-lang/sdk#32222
TomasLinhart commentedon Feb 19, 2018
Thank you for figuring out the issue and fixing it!
DanTup commentedon Feb 19, 2018
Ugh, so it turns out this changed in Code very recently! I was certain it all worked when I tested it only a few weeks ago; good to know I wasn't going mad.
Related: microsoft/vscode#43959
Changeset that changed it: microsoft/vscode@0d66fa0