Skip to content

Franklin.jl fails to render page on Julia 1.12 #1099

@kellertuer

Description

@kellertuer

I just switched to Julia 1.12 and it seems Frankling (or Markdown?) gets into trouble with Julia 1.12

julia> using Franklin; Franklin.serve()
  Activating project at `~/Repositories/kellertuer.github.io`
→ Initial full pass...
WARNING: Detected access to binding `Main.Utils_2` in a world prior to its definition world.
  Julia 1.12 has introduced more strict world age semantics for global bindings.
  !!! This code may malfunction under Revise.
  !!! This code will error in future versions of Julia.
Hint: Add an appropriate `invokelatest` around the access to this binding.
To make this warning an error, and hence obtain a stack trace, use `julia --depwarn=error`.
┌ Franklin Warning: in <liegroupsjl.md>
│ Encountered an issue processing 'liegroupsjl.md' in r.github.io/projects.
│ Verify, then re-start the Franklin server.
│ The error is displayed below:
│ UndefVarError(:title, 0x00000000000097f9, Main.MD_DEFINITIONS)
└
ERROR: UndefVarError: `title` not defined in `Main.MD_DEFINITIONS`
The binding may be too new: running in world age 38905, while current world is 39107.
Stacktrace:
  [1] getproperty
    @ ./Base_compiler.jl:47 [inlined]
  [2] process_mddefs(blocks::Vector{Franklin.OCBlock}, isconfig::Bool, pagevar::Bool, isinternal::Bool)
    @ Franklin ~/.julia/packages/Franklin/X68Y3/src/converter/markdown/mddefs.jl:36
  [3] convert_md(mds::String, pre_lxdefs::Vector{Franklin.LxDef}; isrecursive::Bool, isinternal::Bool, isconfig::Bool, has_mddefs::Bool, pagevar::Bool, nostripp::Bool)
    @ Franklin ~/.julia/packages/Franklin/X68Y3/src/converter/markdown/md.jl:129
  [4] convert_md (repeats 2 times)
    @ ~/.julia/packages/Franklin/X68Y3/src/converter/markdown/md.jl:23 [inlined]
  [5] convert_and_write(root::String, file::String, head::String, pgfoot::String, foot::String, output_path::String)
    @ Franklin ~/.julia/packages/Franklin/X68Y3/src/manager/write_page.jl:180
  [6] process_file_err(case::Symbol, fpair::Pair{String, String}, head::String, pgfoot::String, foot::String, t::Float64)
    @ Franklin ~/.julia/packages/Franklin/X68Y3/src/manager/file_utils.jl:153
  [7] process_file(::Symbol, ::Pair{String, String}, ::String, ::Vararg{Any})
    @ Franklin ~/.julia/packages/Franklin/X68Y3/src/manager/file_utils.jl:104
  [8] fd_fullpass(watched_files::@NamedTuple{other::Dict{…}, infra::Dict{…}, md::Dict{…}, html::Dict{…}, literate::Dict{…}}, join_to_prepath::String)
    @ Franklin ~/.julia/packages/Franklin/X68Y3/src/manager/franklin.jl:265
  [9] 
    @ Franklin ~/.julia/packages/Franklin/X68Y3/src/manager/franklin.jl:126
 [10] serve()
    @ Franklin ~/.julia/packages/Franklin/X68Y3/src/manager/franklin.jl:49
 [11] top-level scope
    @ REPL[2]:1
Some type information was truncated. Use `show(err)` to see complete types.

One might recognise this is just me locally trying to render my homepage - for now it works when starting back in 1.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions