Skip to content

Compilation error with cellbuf while switching to v2 #1631

@lborcard

Description

@lborcard

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions