GoSublime: goimports doesn't run automatically on save
Hi, I’m having trouble running goimports automatically when I save a file on Sublime Text 3. It doesn’t auto format (gofmt) or do any goimports tasks.
Hi, I’ve installed correctly GoSublime + goimports
which goimports
/Users/fabrice/workspace/Go/bin/goimports
I’ve also set correctly my GOPATH and PATH :
echo $GOPATH
/Users/fabrice/workspace/Go
I’ve set my GoSublime custom config like that :
{
"env": {
"GOPATH": "/Users/fabrice/workspace/Go"
},
"fmt_cmd": ["goimports"]
}
Any advice?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 23 (11 by maintainers)
I am no longer able to reproduce the bug after update. Thanks! Not sure the bug-in-comments was the same as the bug-that-was-filed.
Please read https://margo.sh/b/migrate/ for instructions on switching to the development branch. Please be sure to read all the comments in https://margo.sh/s/extension-example as well, they should explain which GoSublime settings no longer work and what their replacements are.