File tree Expand file tree Collapse file tree 4 files changed +28
-2
lines changed Expand file tree Collapse file tree 4 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 1+ # 5.0.3
2+ - [ DAP] Stack frames with dots in paths will now be parsed and have locations attached to ` OutputEvents ` s.
3+
14# 5.0.2
25- [ DAP] Handle possible race condition when interacting with web applications
36 that can cause an ` RPCError ` to be thrown if the application's isolate is
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ final _stackFrameLocationPattern =
7575 // Characters we consider part of a path:
7676 //
7777 // - `\w` word characters
78+ // - `.` dots (valid in paths)
7879 // - `-` dash (valid in paths and URI schemes)
7980 // - `:` colons (scheme or drive letters)
8081 // - `/` forward slashes (URIs)
@@ -89,7 +90,7 @@ final _stackFrameLocationPattern =
8990 // The whole string must end with the line/col sequence, a non-word
9091 // character or be the end of the line. This avoids matching some strings
9192 // that contain ".dart" but probably aren't valid paths, like ".dart2".
92- RegExp (r'([\w\-:\/\\%+]+\.dart)(?:(?:(?: +|:)(\d+):(\d+))|\W|$)' );
93+ RegExp (r'([\w\.\ -:\/\\%+]+\.dart)(?:(?:(?: +|:)(\d+):(\d+))|\W|$)' );
9394
9495/// Attempts to parse a line as a stack frame in order to read path/line/col
9596/// information.
Original file line number Diff line number Diff line change 11name : dds
2- version : 5.0.2
2+ version : 5.0.3
33description : >-
44 A library used to spawn the Dart Developer Service, used to communicate with
55 a Dart VM Service instance.
Original file line number Diff line number Diff line change @@ -190,6 +190,17 @@ main() {
190190 2 ,
191191 );
192192 });
193+
194+ test ('with dots in path' , () {
195+ expectFrames (
196+ [
197+ 'foo a.b.c/d.dart' ,
198+ '#1 A.b (a.b.c/d.dart)' ,
199+ 'flutter: #1 A.b (a.b.c/d.dart)' ,
200+ ],
201+ Uri .file (path.join (Directory .current.path, 'a.b.c/d.dart' )),
202+ );
203+ });
193204 }, skip: Platform .isWindows);
194205
195206 group ('Windows file URIs' , () {
@@ -265,6 +276,17 @@ main() {
265276 2 ,
266277 );
267278 });
279+
280+ test ('with dots in path' , () {
281+ expectFrames (
282+ [
283+ r'foo a.b.c\d.dart' ,
284+ r'#1 A.b (a.b.c\d.dart)' ,
285+ r'flutter: #1 A.b (a.b.c\d.dart)' ,
286+ ],
287+ Uri .file (path.join (Directory .current.path, 'a.b.c/d.dart' )),
288+ );
289+ });
268290 }, skip: ! Platform .isWindows);
269291 });
270292}
You can’t perform that action at this time.
0 commit comments