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

MethodError of replace in Julia 1.6.3 #1

Closed
szcf-weiya opened this issue Nov 15, 2022 · 1 comment
Closed

MethodError of replace in Julia 1.6.3 #1

szcf-weiya opened this issue Nov 15, 2022 · 1 comment

Comments

@szcf-weiya
Copy link
Owner

dev with julia 1.6

$ julia1.6
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.6.3 (2021-09-23)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release

julia> tex2png("col2.tex")
ERROR: MethodError: no method matching replace(::String, ::Pair{String, String}, ::Pair{String, String})
Closest candidates are:
  replace(::AbstractString, ::Pair, ::Pair) at set.jl:613
  replace(::Any, ::Pair...; count) at set.jl:555
  replace(::Union{Function, Type}, ::Pair, ::Pair; count) at set.jl:612
  ...
Stacktrace:
 [1] replace(a::String, b::Pair{String, String}, c::Pair{String, String})
   @ Base ./set.jl:613
 [2] tex2png(file::String, url::String)
   @ LaTeXTables /media/weiya/PSSD/GitHub/LaTeXTables.jl/src/render.jl:16
 [3] tex2png(file::String)
   @ LaTeXTables /media/weiya/PSSD/GitHub/LaTeXTables.jl/src/render.jl:8
 [4] top-level scope
   @ REPL[9]:1
@szcf-weiya
Copy link
Owner Author

support for multiple patterns requires version 1.7, https://github.com/JuliaLang/julia/blob/v1.7.0/NEWS.md, which is implemented in JuliaLang/julia#40484

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