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

No Method for _memcmp #1053

Closed
limarta opened this issue Sep 12, 2023 · 1 comment
Closed

No Method for _memcmp #1053

limarta opened this issue Sep 12, 2023 · 1 comment

Comments

@limarta
Copy link

limarta commented Sep 12, 2023

There doesn't seem to be a matching signature for _memcmp. Usually this occurs when I save new changes while the server is running.

Stacktrace:
 [1] serve(fw::LiveServer.SimpleWatcher; host::String, port::Int64, dir::String, debug::Bool, verbose::Bool, coreloopfun::Franklin.var"#259#262"{…}, preprocess_request::typeof(identity), inject_browser_reload_script::Bool, launch_browser::Bool, allow_cors::Bool)
   @ LiveServer ~/.julia/packages/LiveServer/vclP5/src/server.jl:660
 [2] serve (repeats 2 times)
   @ LiveServer ~/.julia/packages/LiveServer/vclP5/src/server.jl:580 [inlined]
 [3] 
   @ Franklin ~/.julia/packages/Franklin/ZGels/src/manager/franklin.jl:140
 [4] top-level scope
   @ REPL[4]:1

caused by: MethodError: no method matching _memcmp(::Vector{UInt8}, ::Vector{UInt8}, ::Int64)

Closest candidates are:
  _memcmp(::Union{Ptr{UInt8}, AbstractString}, ::Union{Ptr{UInt8}, AbstractString}, ::Int64)
   @ Base strings/string.jl:129

Stacktrace:
  [1] (::FranklinTemplates.var"#5#7"{IOStream})(file2::IOStream)
    @ FranklinTemplates ~/.julia/packages/FranklinTemplates/g5wx9/src/utils.jl:219
  [2] open(::FranklinTemplates.var"#5#7"{IOStream}, ::String, ::Vararg{String}; kwargs::@Kwargs{})
    @ Base ./io.jl:396
  [3] open
    @ Base ./io.jl:393 [inlined]
  [4] #4
    @ Base ~/.julia/packages/FranklinTemplates/g5wx9/src/utils.jl:212 [inlined]
  [5] open(::FranklinTemplates.var"#4#6"{String}, ::String, ::Vararg{String}; kwargs::@Kwargs{})
    @ Base ./io.jl:396
  [6] open
    @ Base ./io.jl:393 [inlined]
  [7] filecmp
    @ FranklinTemplates ~/.julia/packages/FranklinTemplates/g5wx9/src/utils.jl:211 [inlined]
  [8] process_file_err(case::Symbol, fpair::Pair{String, String}, head::String, pgfoot::String, foot::String, t::Float64)
    @ Franklin ~/.julia/packages/Franklin/ZGels/src/manager/file_utils.jl:169
  [9] process_file(::Symbol, ::Pair{String, String}, ::String, ::Vararg{Any})
    @ Franklin ~/.julia/packages/Franklin/ZGels/src/manager/file_utils.jl:104
 [10] fd_loop(cycle_counter::Int64, ::LiveServer.SimpleWatcher, watched_files::@NamedTuple{…})
    @ Franklin ~/.julia/packages/Franklin/ZGels/src/manager/franklin.jl:408
 [11] #259
    @ Franklin ~/.julia/packages/Franklin/ZGels/src/manager/franklin.jl:136 [inlined]
 [12] serve(fw::LiveServer.SimpleWatcher; host::String, port::Int64, dir::String, debug::Bool, verbose::Bool, coreloopfun::Franklin.var"#259#262"{…}, preprocess_request::typeof(identity), inject_browser_reload_script::Bool, launch_browser::Bool, allow_cors::Bool)
    @ LiveServer ~/.julia/packages/LiveServer/vclP5/src/server.jl:650
 [13] serve (repeats 2 times)
    @ LiveServer ~/.julia/packages/LiveServer/vclP5/src/server.jl:580 [inlined]
 [14] 
    @ Franklin ~/.julia/packages/Franklin/ZGels/src/manager/franklin.jl:140
 [15] top-level scope
    @ REPL[4]:1
Some type information was truncated. Use `show(err)` to see complete types.
@tlienart
Copy link
Owner

tlienart commented Sep 13, 2023

Hello @limarta you're on Julia 1.10 right? this was flagged here: tlienart/Xranklin.jl#261

I think I know how to fix it, just haven't had the occasion to implement and test it but should now

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

2 participants