Closed stefancocora closed 6 years ago
Looks like it's an old version of the gocode. Make sure you actually run the latest one.
The logic is the following:
csv-with-package
.nice
formatter is used. This formatter is also picked up if you provide an unknown formatter as an argument.csv-with-package
yet.I am sorry about breaking it, but it's just how it is, there is no single path to upgrade both parts of the software. You either use latest company-go with latest gocode or older company-go script with older gocode.
After updating gocode, don't forget to kill the server which might be running: gocode close
. New one will start automatically. Also make sure there is only one gocode binary on your PATH: which -a gocode
.
Looks like it's an old version of the gocode. Make sure you actually run the latest one.
As far as I can see I am running the latest version of gocode
and that is why I put the git shasum in my previous post.
My local gocode
version
gocode: c7fddb39ecbc9ebd1ebe7d2a3af473ed0fffffa1
Looks like I have the latest gocode
with the csv-with-package
formatter
ag 'csv-with-package' ./
emacs-company/company-go.el
74: (list "-f=csv-with-package"
formatters.go
178: case "csv-with-package":
...
Latest gocode
commit in github - https://github.com/nsf/gocode/commit/c7fddb39ecbc9ebd1ebe7d2a3af473ed0fffffa1
c7fddb39ecbc9ebd1ebe7d2a3af473ed0fffffa1
As far as I can see I'm also running the latest version of company-go
I've ran gocode close
, restarted emacs server, ran emacs without a server, all kinds of scenarios ... until ....
I've looked at your last suggestion about multiple gocode
binaries in my $PATH
!
Upon verifying this possibility, I've discovered that a once installed liteide
package installed its own gocode
binary , leaving my system in a state with 2 gocode
binaries in my path.
The fix was to remove liteide
( which I don't use anyway )
After removing liteide
with its own bundled gocode
the aut-completion started working again as it was previously. 👍
for i in `which -a gocode`; do sha512sum $i ; done
c834bc6273efa2948da8595eecd322a550db3cd6081d3212a73fa2902b2b9d91ab5f26ce466708023ccefe961ddd4716d89f505eaa967e3c0001f7cd54d61e53 /usr/bin/gocode
8c8c39e5eb439d35f621cb68b79a7373095add575e059d55c548a96ef90ecf1cedbcee95b11369491eb892b3feb674db1d072c2c350655fcb880fdc0d4d081d8 $GOPATH/bin/gocode
...
pkgfile -s /usr/bin/gocode
community/liteide
...
sudo pacman -R liteide
Thank you for gocode
and for your patience ! 👍 \\//
Thank you for
gocode
!I've updated to the latest version of gocode and restarted emacs various times to take the debug snapshots but this still doesn't fix the issue.
The error I'm seeing when company-go gets activated
Versions of software:
When activating the autocompletion with company-go by typing
t.
Possibly related issues: