Comments (6)
I will close it! Thanks for your help though.
from gum.
Is this issue also present for you with 0.14.1?
from gum.
Here's the error I'm seeing:
go install github.com/charmbracelet/[email protected]
go: downloading github.com/charmbracelet/gum v0.14.1
go: downloading github.com/alecthomas/kong v0.9.0
go: downloading github.com/charmbracelet/log v0.4.0
go: downloading github.com/charmbracelet/huh v0.4.2
go: downloading github.com/charmbracelet/lipgloss v0.11.0
go: downloading github.com/charmbracelet/bubbles v0.18.0
go: downloading github.com/charmbracelet/bubbletea v0.26.3
go: downloading github.com/charmbracelet/glamour v0.7.0
go: downloading github.com/sahilm/fuzzy v0.1.1
go: downloading golang.org/x/sys v0.20.0
go: downloading github.com/charmbracelet/x/ansi v0.1.1
go: downloading github.com/rivo/uniseg v0.4.7
go: downloading github.com/charmbracelet/x/term v0.1.1
go: downloading golang.org/x/sync v0.7.0
go: downloading github.com/charmbracelet/x/input v0.1.1
go: downloading github.com/catppuccin/go v0.2.0
go: downloading github.com/charmbracelet/x/exp/strings v0.0.0-20240525152034-77596eb8760e
go: downloading golang.org/x/exp v0.0.0-20240525044651-4c93da0ed11d
go: downloading github.com/yuin/goldmark v1.7.1
go: downloading github.com/yuin/goldmark-emoji v1.0.2
go: downloading github.com/alecthomas/chroma/v2 v2.14.0
go: downloading github.com/microcosm-cc/bluemonday v1.0.26
go: downloading github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f
go: downloading github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e
go: downloading golang.org/x/net v0.25.0
go: downloading github.com/gorilla/css v1.0.1
go: downloading github.com/dlclark/regexp2 v1.11.0
# github.com/charmbracelet/gum/choose
/opt/go/pkg/mod/github.com/charmbracelet/[email protected]/choose/command.go:59:11: undefined: max
/opt/go/pkg/mod/github.com/charmbracelet/[email protected]/choose/command.go:60:3: undefined: max
note: module requires Go 1.21
The code is here: https://github.com/charmbracelet/gum/blob/main/choose/command.go#L59-L61
Would the problem be that the choose
package just doesn't have max()
defined like it is in filter
? https://github.com/charmbracelet/gum/blob/main/filter/filter.go#L336-L341
from gum.
Thank you for trying it out. I can see that go added a built-in function for min() and max() in 1.21 which is also stated as the required version in the output you just send. So which version of go are you using when you try to install? 😊
And to answer your question; it wouldn't make much sense to define it as in filter since the function is now a built-in.
from gum.
That explains it! I am generally using 1.22.X on my machines. But for some reason the version on the machine I'm trying to set up for my coworker is using 1.20.12:
$ go version
go version go1.20.12 linux/amd64
I can't believe I missed the requirement at the bottom of that output. I'll see what I can do about updating my coworker's machine to have a newer version and you can feel free to close this out.
from gum.
I can't close issues because I'm only a contributor (:
from gum.
Related Issues (20)
- gum input header flags can output an incorrect render
- `--cursor.foreground` not respected for `gum input` or `gum write`
- `choose` pagination has no indicators or prev/next since 0.14
- Helping hand HOT 2
- `gum input` mangling prompt (docs need updated) HOT 1
- gum confirm: Handling exit code 130 isn't working anymore HOT 3
- Shell gets stuck when `--placeholder` in `gum input` contains Japanese characters HOT 1
- Add preselected options when using filter command
- Ability to specify `huh` theme HOT 2
- Confirm does not allow to default to the negative action HOT 1
- Alternative for autocomplete in zsh HOT 1
- Filepicker fuzzy find
- A HOT 1
- problem running binary from tarball on osx sonoma
- gum choose --selected=: cursor do not appear
- gum spin messes the screen HOT 1
- 0.14: navigation by page via arrow keys no longer works HOT 3
- `gum choose --item.foreground` has no effect HOT 3
- `gum file` with filtering
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gum.