2 ms·
Gopls is great, but it's still alpha quality, in my opinion. I've tried using it with VSCode this week, and it frequently stopped working in different ways, re
by atombender 8y ago
Gopls is great, but it's still alpha quality, in my opinion.
I've tried using it with VSCode this week, and it frequently stopped working in different ways, requiring a restart.
The peskiest problem is that it just refuses to automatically add some imports. No errors in the log, just messages about "undefined: someimportedname".
Really looking forward to Gopls stabilizing, because it's bound to be better than what came before.
- stamblerre 8y agogopls 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 8y agohttps://github.com/golang/go/issues/31977 https://github.com/golang/go/issues/31977
- deleted 8y ago[deleted]