bit: bitcomplete not working properly

Hi @chriswalz,

after installing bit and bitcomplete too, bit completion not working properly ( panic goroutine ), any idea ?

Screen Shot 2020-10-07 at 14 25 14

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 19 (9 by maintainers)

Most upvoted comments

for the fish shell I had to set a universal exported envvar:

set -Ux COMP_POINT 1

After this bit completion no longer crashes and shows completions.

Seems to be working now

Looks like gobinaries.com is down…

@chriswalz, having trouble updating:

λ bash -c "curl -sf https://gobinaries.com/chriswalz/bit | sh; curl -sf https://gobinaries.com/chriswalz/bit/bitcomplete | sh && echo y | COMP_INSTALL=1 bitcomplete"

  ==> Downloading github.com/chriswalz/bit@master
  ==> Resolved version master to v0.5.1
  ==> Downloading binary for darwin amd64

  Error downloading, got 500 response from server


  ==> Downloading github.com/chriswalz/bit/bitcomplete@master
  ==> Resolved version master to v0.5.1
  ==> Downloading binary for darwin amd64

  Error downloading, got 500 response from server

bit could be useful, so I hope I can get it working to understand it better. Not trying to pile on here.

I think I get the same error, but I get a different error message so I thought I’d add the additional message(s) in hopes they might help:


$ bitcomplete # should this be run at the command line?
goroutine 1 [running]:
github.com/chriswalz/bit/cmd.AllGitAliases(0x8, 0x4, 0x203000)
	/go/pkg/mod/github.com/chriswalz/bit@v0.4.10/cmd/util.go:344 +0x505
github.com/chriswalz/bit/cmd.AllBitAndGitSubCommands(0x8159a0, 0xc00000e3e0, 0x5f1a74, 0x66b0ba)
	/go/pkg/mod/github.com/chriswalz/bit@v0.4.10/cmd/util.go:365 +0x37
main.main()
	/go/pkg/mod/github.com/chriswalz/bit@v0.4.10/bitcomplete/complete.go:26 +0x72
 


(master) mcarifio@shuttle:/opt/bit/current/bin$p go version  # go version and go env
go version go1.15.2 linux/amd64
 
(master) mcarifio@shuttle:/opt/bit/current/bin$p go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/mcarifio/.cache/go-build"
GOENV="/home/mcarifio/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/mcarifio/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/mcarifio/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/snap/go/6439"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/snap/go/6439/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build776571046=/tmp/go-build -gno-record-gcc-switches"