-
Notifications
You must be signed in to change notification settings - Fork 767
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
code coverage: highlighting not working on windows outside GOPATH/src #553
Comments
I'm seeing this problem too |
@benmj87 @liambrown89 Thanks for the report. @pjweinbgo FYI go list output for mapping between package import path and directory
go-code-cover output
|
The regexp used to parse the coverage file (https://github.com/golang/vscode-go/blob/master/src/goCover.ts#L258) does not work for windows absolute file path that includes drive name like ( |
Creating an empty go mod file ( |
Change https://golang.org/cl/250457 mentions this issue: |
I'm having this issue too after updating to go 1.15, code coverage was working last time I used it and now there is no code coverage. I am using Go modules. |
@Splizard it sounds like you have a different issue if you are using go modules. Can you share your settings and the coverage output file from the test run? (In the Go Tests output channel, the test command with |
@hyangah I've realised that the code coverage still works in other projects. So it must be something else. I have only noticed the issue in one package. Here is the coverage file. There is a generated .go file in the package.
It has a number of line-number overides, I am not sure if this could be cause trouble.
It is a public module but I haven't pushed the changes yet, when I do I'l give this issue a bump and see if it can be reproduced. |
@Splizard thanks for the update - seems like this is a different issue and worth opening a separate issue. BTW, is it |
created code coverage is broken when file contains //line directives #603
…On Thu, Sep 3, 2020 at 9:27 AM Hyang-Ah Hana Kim ***@***.***> wrote:
@Splizard <https://github.com/Splizard> thanks for the update - seems
like this is a different issue and worth opening a separate issue. BTW, is
it .go2 file? I never tested coverage feature with go2.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#553 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACL4QJE62WSN4OM3OYNXMHDSD6KVVANCNFSM4QFZP66Q>
.
|
Change https://golang.org/cl/254017 mentions this issue: |
What version of Go, VS Code & VS Code Go extension are you using?
go version
to get version of Gogo version go1.15 windows/amd64
code -v
orcode-insiders -v
to get version of VS Code or VS Code Insidersv0.16.1
go env
to get the go development environment detailsShare the Go related settings you have added/edited
Run
Preferences: Open Settings (JSON)
command to open your settings.json file.Share all the settings with the
go.
or["go"]
orgopls
prefixes.Describe the bug
Upon updating vscode to the latest version, code coverage isn't shown in either the gutter or highlighting.
Steps to reproduce the behavior:
Screenshots or recordings
The text was updated successfully, but these errors were encountered: