Skip to content

[Urgent] v1.10.3 breaks AnnotatedString inputs (affects downstream packages) #343

@MilesCranmer

Description

@MilesCranmer

Version v1.10.3 inadvertently introduced a bug by calling IOBuffer on an AnnotatedString. This breaks multiple downstream packages including SymbolicRegression.jl and PySR, causing them to fail with errors like:

ERROR: MethodError: no method matching IOBuffer(::Base.AnnotatedString{String})
Closest candidates are:
  IOBuffer(!Matched::SubString{String})
    @ Base strings/io.jl:309
  IOBuffer(!Matched::String)
    @ Base strings/io.jl:308
  IOBuffer(; read, write, append, truncate, maxsize, sizehint)
    @ Base iobuffer.jl:119

Introduced in #341 (cc @MasonProtter), specifically this line:

if countlines(IOBuffer(string_value)) > 1

Could you please revert or yank v1.10.3 ASAP, and issue a patch version without this breaking change? In any case, I don't think a patch version should have introduced this kind of major code change.

In the meantime I need to issue a bunch of patch releases for SR.jl to lock to the old versions as this breaks everything. But please let me know as soon as this is fixed so I can unlock the versions again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions