-
Notifications
You must be signed in to change notification settings - Fork 645
goimports and gofmt no longer working #1344
Comments
Specifying I should probably reiterate that both |
The fact that Can you try setting We did have an issue with formatting (#1333), but that was for folks on 1.19 Insiders but you are on 1.18 |
@ramya-rao-a That seems to have fixed it! |
Great, I am not sure of the root cause here though as to why goreturns and goimports do not return anything when run with Here is the upstream issue if you are interested: sqs/goreturns#28 Closing this issue as the workaround works for you. Happy Coding! |
OS: Win 10
Go: 1.9.2
VS: 1.18.0
vscode-go: 0.6.67
Notes:
They both stopped working some time last night while in the middle of working on a project.
I can run
goimports
andgofmt
manually without any issues, andgo vet
as well asgolint
are still being run on each save.All other extensions seem to be working correctly (including those with "on save" functionality).
Paths:
Current PATH:
C:\Users\user\go\bin
andC:\Users\user\go\src\Go\bin
are contained within itCurrent GOPATH (as per the VSC extension command):
C:\Users\user\go
gofmt Location:
C:\tools\go\bin\gofmt.exe
as well asC:\Users\user\go\src\Go\bin\gofmt.exe
goimports Location:
C:\Users\user\go\bin\goimports.exe
goreturns Location:
C:\Users\user\go\bin\goreturns.exe
Output:
What I've Tried:
"go.buildOnSave": "package",
to my preferences (note: I have no other variables set for this extension, and had none set for it previously)go get
)Format Document
What else should I be trying to correct this issue, or information can I provide for you?
Thanks!
The text was updated successfully, but these errors were encountered: