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
When opening a file in a subdirectory, the file is not in the right location. E.g. nvim foo/bar.go will create cover.cov in the current directory, not under foo/.
Similar wrong behavior if running nvim ../foo/bar.go
This file has to be ignored in git.
Solution
One of:
Default to a temporary file that is automatically cleaned up upon editor exit
Use a well known location in ~/.cache/
Use the file's current directory
The text was updated successfully, but these errors were encountered:
Related to issue #526.
lua/go/coverage.lua hardcodes "cover.cov" in the current working directory and not in the directory containing of the active buffer's file path.
Ref:
go.nvim/lua/go/coverage.lua
Line 185 in 6368756
go.nvim/lua/go/coverage.lua
Line 308 in 6368756
This is problematic for two reasons:
foo/bar.go
will create cover.cov in the current directory, not under foo/.nvim ../foo/bar.go
Solution
One of:
The text was updated successfully, but these errors were encountered: