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 Julia <1.7 due to printstyled kwargs #153

Closed
MilesCranmer opened this issue Mar 16, 2024 · 0 comments · Fixed by #154
Closed

Broken on Julia <1.7 due to printstyled kwargs #153

MilesCranmer opened this issue Mar 16, 2024 · 0 comments · Fixed by #154

Comments

@MilesCranmer
Copy link
Member

Trying to upload a bug report only to encounter a glaring bug in BugReporting.jl 😪

tacktrace:
 [1] pkgerror(msg::String)
   @ Pkg.Types /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Types.jl:55
 [2] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, julia_args::Cmd, test_args::Cmd, test_fn::Nothing)
   @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1712
 [3] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, test_fn::Nothing, julia_args::Cmd, test_args::Cmd, kwargs::Base.Iterators.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})
   @ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:343
 [4] test(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:80
 [5] test(pkgs::Vector{Pkg.Types.PackageSpec})
   @ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:78
 [6] test(; name::Nothing, uuid::Nothing, version::Nothing, url::Nothing, rev::Nothing, path::Nothing, mode::Pkg.Types.PackageMode, subdir::Nothing, kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:96
 [7] test()
   @ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:88
 [8] top-level scope
   @ none:1
Preparing trace for upload (if your trace is large this may take a few minutes)...

ERROR: MethodError: no method matching printstyled(::String; blink=true)
Closest candidates are:
  printstyled(::Any...; bold, color) at util.jl:107 got unsupported keyword argument "blink"
  printstyled(::IO, ::Any...; bold, color) at util.jl:105 got unsupported keyword argument "blink"
Stacktrace:
  [1] kwerr(::NamedTuple{(:blink,), Tuple{Bool}}, ::Function, ::String)
    @ Base ./error.jl:157
  [2] get_upload_params()
    @ BugReporting ~/.julia/packages/BugReporting/J6Ebl/src/BugReporting.jl:577
  [3] (::BugReporting.var"#20#22"{Vector{String}})(trace_dir::String)
    @ BugReporting ~/.julia/packages/BugReporting/J6Ebl/src/BugReporting.jl:551
  [4] mktempdir(fn::BugReporting.var"#20#22"{Vector{String}}, parent::String; prefix::String)
    @ Base.Filesystem ./file.jl:729
  [5] mktempdir(fn::Function, parent::String) (repeats 2 times)
    @ Base.Filesystem ./file.jl:727
  [6] make_interactive_report(report_arg::String, ARGS::Vector{String})
    @ BugReporting ~/.julia/packages/BugReporting/J6Ebl/src/BugReporting.jl:547
  [7] #invokelatest#2
    @ ./essentials.jl:708 [inlined]
  [8] invokelatest
    @ ./essentials.jl:706 [inlined]
  [9] report_bug(kind::String)
    @ InteractiveUtils /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/InteractiveUtils/src/InteractiveUtils.jl:391
 [10] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:233
 [11] _start()
    @ Base ./client.jl:485

The Project.toml says julia = "1.3", but the blink keyword wasn't added until Julia 1.7.

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

Successfully merging a pull request may close this issue.

1 participant