3 ms·
gopls does support automatically organizing imports (it uses the same library as goimports). If you're having problems with this feature, please file a bug on t
by stamblerre 8y ago
gopls does support automatically organizing imports (it uses the same library as goimports). If you're having problems with this feature, please file a bug on the Go issue tracker (https://github.com/golang/go/issues https://github.com/golang/go/issues). Thanks!
- atombender 8y agoI'll try, but the code I've been working on is not open source, and the problem only happened with some imports within my own project. I don't expect a bug report is very useful without my code given the relative sparseness of Gopls's debug log.
- stamblerre 8y agoNo worries, but if you are able to encounter a scenario where goimports works, but gopls fails, it would be very helpful. Totally understand if you aren't able to share, but even redacted logs will be useful for debugging.
- atombender 7y agohttps://github.com/golang/go/issues/31977 https://github.com/golang/go/issues/31977
- deleted 8y ago[deleted]