tlienart / Franklin.jl

(yet another) static site generator. Simple, customisable, fast, maths with KaTeX, code evaluation, optional pre-rendering, in Julia.
https://franklinjl.org
MIT License
932 stars 108 forks source link

No Method for _memcmp #1053

Closed limarta closed 8 months ago

limarta commented 8 months ago

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 commented 8 months ago

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

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