Skip to content

Latest x/ansi package (0.11.3) breaks compat with v2.0.0-beta.3 #599

@mrusme

Description

@mrusme

Describe the bug
The latest x/ansi package (0.11.3) breaks compatibility with v2.0.0-beta.3.

Setup

go 1.25.1

require (
	github.com/charmbracelet/lipgloss/v2 v2.0.0-beta.3
	github.com/charmbracelet/x/ansi v0.11.3
)

To Reproduce
go build .

Additional context

# github.com/charmbracelet/lipgloss/v2
../../../.go/pkg/mod/github.com/charmbracelet/lipgloss/v2@v2.0.0-beta.3/style.go:297:8: not enough arguments in call to te.Italic
        have ()
        want (bool)
../../../.go/pkg/mod/github.com/charmbracelet/lipgloss/v2@v2.0.0-beta.3/style.go:300:8: not enough arguments in call to te.Underline
        have ()
        want (bool)
../../../.go/pkg/mod/github.com/charmbracelet/lipgloss/v2@v2.0.0-beta.3/style.go:303:18: not enough arguments in call to teWhitespace.Reverse
        have ()
        want (bool)
../../../.go/pkg/mod/github.com/charmbracelet/lipgloss/v2@v2.0.0-beta.3/style.go:304:8: not enough arguments in call to te.Reverse
        have ()
        want (bool)
../../../.go/pkg/mod/github.com/charmbracelet/lipgloss/v2@v2.0.0-beta.3/style.go:307:11: te.SlowBlink undefined (type ansi.Style has no field or method SlowBlink)
../../../.go/pkg/mod/github.com/charmbracelet/lipgloss/v2@v2.0.0-beta.3/style.go:334:8: not enough arguments in call to te.Underline
        have ()
        want (bool)
../../../.go/pkg/mod/github.com/charmbracelet/lipgloss/v2@v2.0.0-beta.3/style.go:337:8: not enough arguments in call to te.Strikethrough
        have ()
        want (bool)
../../../.go/pkg/mod/github.com/charmbracelet/lipgloss/v2@v2.0.0-beta.3/style.go:341:13: not enough arguments in call to teSpace.Underline
        have ()
        want (bool)
../../../.go/pkg/mod/github.com/charmbracelet/lipgloss/v2@v2.0.0-beta.3/style.go:344:13: not enough arguments in call to teSpace.Strikethrough
        have ()
        want (bool)

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