-
Notifications
You must be signed in to change notification settings - Fork 645
Renaming functionality not working at all #1954
Comments
This issue has been closed automatically because it needs more information and has not had recent activity. Thank you for your contributions. |
No go modules. I tried multiple configurations for GOPATH. Same result all the time. I mean. Is, this supposed to be working? I really have the same error in different machines with different projects and completely different set-ups. |
Yes, when not using Go modules, rename feature should work. Run Also see GOPATH in VS Code |
@ramya-rao-a Yes $GOPATH is set-up correctly. The issue of renaming not working happens in all the golang projects I tried. It never ever worked. |
@JoseFMP Can you try running |
😈 |
This bug happens in all operating systems. No matter what I set-up. Happens in Windows, Linux, and Mac.
Steps to reproduce:
Click on a symbol with the right button (not package name)
Click on "Rename Symbol" option in the context menu
Enter the new different name of the symbol
Press enter (return key)
Expected behavior
Symbol is renamed
Actual behavior
Symbol is not renamed. the Output console will contain the error message:
Rename failed: gorename: can't find package containing ****
Where the stars point to the folder of your package. Wherever it is.
This is not particular of any source code. Happens everywhere.
VS Code version 1.27.2
Extension version: 0.6.89
The text was updated successfully, but these errors were encountered: