Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken on 1.11 #8

Open
MilesCranmer opened this issue Dec 30, 2024 · 1 comment
Open

Broken on 1.11 #8

MilesCranmer opened this issue Dec 30, 2024 · 1 comment

Comments

@MilesCranmer
Copy link
Member

on 1.11.2:

julia> using JuliaSyntaxHighlighting

julia> JuliaSyntaxHighlighting.highlight("sum(1:8)")
ERROR: ArgumentError: Wrong number of arguments to named tuple constructor.
Stacktrace:
  [1] @NamedTuple{region::UnitRange{Int64}, label::Symbol, value}(args::Tuple{UnitRange{Int64}, Pair{Symbol, Any}})
    @ Base ./namedtuple.jl:117
  [2] convert(::Type{@NamedTuple{region::UnitRange{…}, label::Symbol, value}}, t::Tuple{UnitRange{Int64}, Pair{Symbol, Any}})
    @ Base ./namedtuple.jl:182
  [3] setindex!(A::Memory{@NamedTuple{…}}, x::Tuple{UnitRange{…}, Pair{…}}, i1::Int64)
    @ Base ./genericmemory.jl:243
  [4] unsafe_copyto!(dest::Memory{@NamedTuple{…}}, doffs::Int64, src::Memory{Tuple{…}}, soffs::Int64, n::Int64)
    @ Base ./genericmemory.jl:153
  [5] unsafe_copyto!
    @ ./genericmemory.jl:133 [inlined]
  [6] _copyto_impl!
    @ ./array.jl:308 [inlined]
  [7] copyto!
    @ ./array.jl:294 [inlined]
  [8] copyto!
    @ ./array.jl:319 [inlined]
  [9] copyto_axcheck!
    @ ./abstractarray.jl:1167 [inlined]
 [10] Array
    @ ./array.jl:626 [inlined]
 [11] AnnotatedString
    @ ./strings/annotated.jl:104 [inlined]
 [12] highlight(str::String, ast::JuliaSyntax.GreenNode{JuliaSyntax.SyntaxHead})
    @ JuliaSyntaxHighlighting ~/.julia/packages/JuliaSyntaxHighlighting/Vm3KU/src/JuliaSyntaxHighlighting.jl:397
 [13] highlight(str::String)
    @ JuliaSyntaxHighlighting ~/.julia/packages/JuliaSyntaxHighlighting/Vm3KU/src/JuliaSyntaxHighlighting.jl:389
 [14] top-level scope
    @ REPL[5]:1
Some type information was truncated. Use `show(err)` to see complete types.
@MilesCranmer MilesCranmer changed the title Internal ArgumentError Internal ArgumentError on 1.11 Dec 30, 2024
@MilesCranmer MilesCranmer changed the title Internal ArgumentError on 1.11 Broken on 1.11 Dec 30, 2024
@MilesCranmer
Copy link
Member Author

I think the registered version might need to be yanked? It looks like it was updated to 1.12 but julia is still set to 1.11 @tecosaur

If I install this package on 1.11 I end up with an incompatible one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant