-
Notifications
You must be signed in to change notification settings - Fork 645
Unable to use rename symbol #1449
Comments
Can you try the |
It works ok:
|
The error you are seeing is coming from Your Go executable seems to be in |
Definitely I'm missing something. If I type
|
I've just come across this: https://stackoverflow.com/questions/43983718/set-global-path-environment-variable-in-vs-code BTW the visual studio code embedded terminal is working ok: it has |
How do you usually open vscode? Do you open it from the fish shell? |
I usually open it from the Dock. I've tried opening it from both shells (fish and bash) but none of them work. In all of the cases I got |
A workaround until we figure this out is to add |
|
VS Code has 3 kinds of processes
The main process spawns the renderer process which in turn spawns the extension host process. When you open the Developer Tools and look for I would suggest to open an issue in the vscode repo for the problem of env vars not reaching the renderer process Meanwhile, for the Go extension I have pushed a fix that will ensure that the GOROOT is part of the PATH when the Go extension calls the dependent Go tools. Can you give this a try and see if this helps?
|
It finally works! 🎉 . Thanks a lot for your fix. |
Thats good to hear @jolivares |
I was about to report the issue in the vscode repo when I realised that now I get the proper PATH contents when typing |
well, if you ever encounter it again, please log the issue Happy Coding! |
@jolivares, @ramya-rao-a, thanks for your help with this issue. I had exactly the same problem, and this solved it. Note: my |
Just released an update (0.6.74) that has the fix for this issue. Thanks for your patience everyone! |
When trying to use the rename symbol functionality I get the following error:
It works ok if I use the command line:
Other tools like
gofmt
,golint
... works ok.Go: Current GOPATH
output:Current GOPATH: /Users/juanolivares/workspaces/go-programs
go env
output:pwd
output:/Users/juanolivares/workspaces/go-programs/src/github.com/jolivares/snapshot-downloader
The text was updated successfully, but these errors were encountered: