Commit 60a00ed
committed
[release] src/testUtils.ts: fix parsing of the compiler error file expansion
Build error output format can be different from the test output format.
Adjust the regex change in expandFilePathInOutput so it can capture
build errors that contain column numbers as well while capturing the
file path from test outputs such as
```
TestB: b_test.go:6: test failed
```
The above line was incorrectly expanded in pre v0.16.0
pre v0.16.0: /^\s*(.+.go):(\d+):/
v0.16.0, v0.16.1: /\s+(\S+.go):(\d+):\s+/
this CL: /\s*(\S+\.go):(\d+):/
Fixes #522
Change-Id: Ifa8f07d3bb7c5aaa61d40dd29d9fae77d8ad0cbe
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/248737
Run-TryBot: Hyang-Ah Hana Kim <[email protected]>
Reviewed-by: Suzy Mueller <[email protected]>
(cherry picked from commit 1e4dbe2)
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/252118
TryBot-Result: kokoro <[email protected]>1 parent 354ea27 commit 60a00ed
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
489 | | - | |
| 489 | + | |
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
| |||
0 commit comments