charmbracelet / charmbracelet/bubbletea

Compilation error with cellbuf while switching to v2

Open
#1,631 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
44.9k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
I am switching v2 for huh, lipgloss, bubbletea and other bubbles components and i am getting this error at compilation. Hard for me give you more context since it's not clear where the problem lies.
```
../../../../../go/pkg/mod/github.com/charmbracelet/x/cellbuf@v0.0.13/cell.go:200:8: not enough arguments in call to b.Italic
have ()
want (bool)
../../../../../go/pkg/mod/github.com/charmbracelet/x/cellbuf@v0.0.13/cell.go:203:10: b.SlowBlink undefined (type ansi.Style has no field or method SlowBlink)
../../../../../go/pkg/mod/github.com/charmbracelet/x/cellbuf@v0.0.13/cell.go:206:8: not enough arguments in call to b.RapidBlink
have ()
want (bool)
../../../../../go/pkg/mod/github.com/charmbracelet/x/cellbuf@v0.0.13/cell.go:209:8: not enough arguments in call to b.Reverse
have ()
want (bool)
../../../../../go/pkg/mod/github.com/charmbracelet/x/cellbuf@v0.0.13/cell.go:212:8: not enough arguments in call to b.Conceal
have ()
want (bool)
../../../../../go/pkg/mod/github.com/charmbracelet/x/cellbuf@v0.0.13/cell.go:215:8: not enough arguments in call to b.Strikethrough
have ()
want (bool)
../../../../../go/pkg/mod/github.com/charmbracelet/x/cellbuf@v0.0.13/cell.go:221:8: not enough arguments in call to b.Underline
have ()
want (bool)
../../../../../go/pkg/mod/github.com/charmbracelet/x/cellbuf@v0.0.13/cell.go:223:10: b.DoubleUnderline undefined (type ansi.Style has no field or method DoubleUnderline)
../../../../../go/pkg/mod/github.com/charmbracelet/x/cellbuf@v0.0.13/cell.go:225:10: b.CurlyUnderline undefined (type ansi.Style has no field or method CurlyUnderline)
../../../../../go/pkg/mod/github.com/charmbracelet/x/cellbuf@v0.0.13/cell.go:227:10: b.DottedUnderline undefined (type ansi.Style has no field or method DottedUnderline)
../../../../../go/pkg/mod/github.com/charmbracelet/x/cellbuf@v0.0.13/cell.go:227:10: too many errors
````
**Setup**
Please complete the following information along with version numbers, if applicable.
- macos
- goland

I never had this error before and this happened the first time I tried to build after switching to v2.

thank you

Contributor guide

Open the contributing guide

Research direction

Start with github.com/charmbracelet/x/cellbuf@v0.0.13/cell.go around the reported calls, then inspect the dependency versions selected during the v2 migration. Reproduce the Go compilation failure and compare the cellbuf and ansi APIs involved. Done means the reported v2 setup builds successfully without these cellbuf errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
build-system, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.