micr0-dev / lexido

A terminal assistant, powered by Generative AI
GNU Affero General Public License v3.0
221 stars 8 forks source link

tea.go error #35

Closed swayz8148 closed 6 months ago

swayz8148 commented 6 months ago

Describe the bug

github.com/micr0-dev/lexido/pkg/tea

pkg/tea/tea.go:168:79: undefined: min pkg/tea/tea.go:203:159: undefined: min pkg/tea/tea.go:206:96: undefined: min note: module requires Go 1.22

To Reproduce git clone https://github.com/micr0-dev/lexido.git cd lexido ./build-all.sh

Expected behavior install without error

Screenshots image

Desktop (please complete the following information):

Additional context

micr0-dev commented 6 months ago

"Starting with Go 1.21, min and max are available as builtins..."

I believe your version of Golang is out of date specifically below version 1.21, also hinted at by this message:

note: module requires Go 1.22

Could you please provide the output of the following?

go version
swayz8148 commented 6 months ago

my go version is go1.20.5 but i used it the other day and was fine did 1.22 just come out?

swayz8148 commented 6 months ago

even after sudo pacman -Syu go i still have go version go1.20.5 linux/amd64 ill try use gvm to install 1.22

micr0-dev commented 6 months ago

Try running

which go

to see the path of the go binary that is being executed, that might help you find out what is interfering.

micr0-dev commented 6 months ago

It may be that another go project you installed may have downgraded to go 1.20 therefore caused this issue

swayz8148 commented 6 months ago

i got go version go1.22.0 linux/amd64 by installing it via gvm and then uninstalling go via pacman and then set the path to go on my .bashrc file ill test the install again to see if this has made it work

swayz8148 commented 6 months ago

it works now i have no idea what downgraded my go version but gvm helped me get it to 1.22