-
Notifications
You must be signed in to change notification settings - Fork 645
Links to source files in go test output are not correct for when testing all pkgs in workspace #1626
Comments
However, if I open up stuff_test.go and invoke the Go: Test Package action, the go test output contains the correct source file link:
|
When running I dont see a good fix here other than to skip trying to complete the relative paths when testing the entire workspace. Thoughts? PRs are welcome. |
The FAIL line following the error has a package path which could be used to resolve the file correctly. But that would mean a more complicated parsing setup since you can’t just recognize file paths on a per line basis. |
I’ll take a look at the code. 👍 |
It looks like |
Do you have any particularly strong feeling about emitting fully-qualified paths? I notice that relative paths in the go build output in a terminal are automatically linked by VSCode. I find relative paths easier to read. |
In the terminal the relative paths do get linked, I am not so sure about the output channel though |
Alas, relative paths are not linked in the output channel. |
This bug fix is now out in the latest update to the Go extension (0.6.80) |
Sample project: gotestbug.zip
Steps to Reproduce:
The link to the source file is incorrect. It should be
c:\Users\gordon.tyler\go\src\gotestbug\stuff\stuff_test.go
.The text was updated successfully, but these errors were encountered: