x/tools/gopls: cannot use func from same package #44831
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
ATTENTION: Please answer these questions BEFORE submitting your issue. Thanks!
What did you do?
declare a function name listenWindows in package router
and try to run it
What did you expect to see?
listenWindows can be used in other file of router package
What did you see instead?
vscode alert undeclared name: listenWindows
use
go run
orgo test
also have same problemwhen I change the file which contain listenWindows file name from
router_windows.go
torouter_window.go
, this problem is solved immediately.Once rename back, it alert againI have try to remove ~/.cache, reinstall go, upgrade go from 1.15.7 to 1.15.8 or 1.16, run
go clean -cache
. it all uselessBuild info
The text was updated successfully, but these errors were encountered: