-
Notifications
You must be signed in to change notification settings - Fork 87
auto install doesn't always work #13
Comments
I take it you're using nsf/gocode's "autobuild" feature? If so, it's not surprising it doesn't work with mdempsky/gocode: I removed all of the config options. :) Other tools like vet, gotype, and oracle/guru rely on up-to-date package objects, so I think it's appropriate for gocode to do this too. I suggest that a separate tool should be responsible for ensuring that all of a package's dependencies are up-to-date. Then that single tool can optionally be used by editors before invoking not just gocode, but those other tools too. |
FYI if you use emacs with flycheck you can set |
I use vscode-go. IMHO the auto install feature should be there, or at least optional being off by default, but I understand it is your package. |
@kostya-sh I think that's close but not exactly what @OneOfOne wants (not to mention for the wrong editor ;)). In their use case, after saving a change to libB, it sounds like @OneOfOne I'm definitely sympathetic to the desire for gocode to Just Work in the scenario you described. But like I said, I don't think it's appropriate for gocode to need to provide it. It would be redundant and bad engineering practice for every Go analysis tool to need to reimplement this functionality. I suggest you file a feature request with vscode-go (and feel free to CC me and/or reference this issue) to support auto-installation of dependencies. |
On May 21, 2016 8:27 AM, "Matthew Dempsky" notifications@github.com wrote:
Yes, not exactly the same, autocomplete will pick up changes in libB only after flycheck runs for libA. I mentioned this only to show that there are ways for editors to provide auto install functionality. |
@mdempsky just out of interest, how do you solve this problem of keeping package objects up-to-date? |
@myitcv Currently I just run "go install" manually as necessary. |
@mdempsky 👍 does the job! I'm probably going to hack together something that recursively watches a certain pattern ( |
nsf/gocode is not working well with Go 1.10. I just encountered it myself again. The author of original gocode also states and recommends the mdempsky/gocode fork over nsf/gocode: https://github.com/nsf/gocode#an-autocompletion-daemon-for-the-go-programming-language We actually [moved once](#1814), but because we didn't removed the obsolote settings, we weren't prepared for issues that were [reported](#1817), and hence [reverted it back](#1823) This PR also removes all settings. The reason is that the new gocode doesn't support settings anymore. The author decided not the support it. * For `autobuild`, this was removed because the author believe it's not worth tackling it inside `gocode`: mdempsky/gocode#13 * For `propose builtins`, this is actually still supported but disabled in the source code, we need to add it back again in the future: mdempsky/gocode@787cfae * For `unimported packages`: this was just removed and I couldn't find upcoming plans for it Going forward this package seems to be more stable and is a better bet. Most important, as I stated nfs/gocode is not 1.10 compatible and the author has no intentions to fix it.
nsf/gocode is not working well with Go 1.10. I just encountered it myself again. The author of original gocode also states and recommends the mdempsky/gocode fork over nsf/gocode: https://github.com/nsf/gocode#an-autocompletion-daemon-for-the-go-programming-language We actually [moved once](#1814), but because we didn't removed the obsolote settings, we weren't prepared for issues that were [reported](#1817), and hence [reverted it back](#1823) This PR also removes all settings. The reason is that the new gocode doesn't support settings anymore. The author decided not the support it. * For `autobuild`, this was removed because the author believe it's not worth tackling it inside `gocode`: mdempsky/gocode#13 * For `propose builtins`, this is actually still supported but disabled in the source code, we need to add it back again in the future: mdempsky/gocode@787cfae * For `unimported packages`: this was just removed and I couldn't find upcoming plans for it Going forward this package seems to be more stable and is a better bet. Most important, as I stated nfs/gocode is not 1.10 compatible and the author has no intentions to fix it.
nsf/gocode is not working well with Go 1.10. I just encountered it myself again. The author of original gocode also states and recommends the mdempsky/gocode fork over nsf/gocode: https://github.com/nsf/gocode#an-autocompletion-daemon-for-the-go-programming-language We actually [moved once](#1814), but because we didn't removed the obsolote settings, we weren't prepared for issues that were [reported](#1817), and hence [reverted it back](#1823) This PR also removes all settings. The reason is that the new gocode doesn't support settings anymore. The author decided not the support it. * For `autobuild`, this was removed because the author believe it's not worth tackling it inside `gocode`: mdempsky/gocode#13 * For `propose builtins`, this is actually still supported but disabled in the source code, we need to add it back again in the future: mdempsky/gocode@787cfae * For `unimported packages`: this was just removed and I couldn't find upcoming plans for it Going forward this package seems to be more stable and is a better bet. Most important, as I stated nfs/gocode is not 1.10 compatible and the author has no intentions to fix it.
Most of the time I'm working on multiple packages in the same time and the work flow goes like this:
go install ./...
manually.I'm using VSCode, however the issue is mainly with gocode, I got the same result with neovim.
The text was updated successfully, but these errors were encountered: