Skip to content

"UndefRefError: access to undefined reference" in 1.11 beta #345

@numbermaniac

Description

@numbermaniac

Following the installation guide, I have this in my startup.jl file:

atreplinit() do repl
    try
        @eval using OhMyREPL
    catch e
        @warn "error while importing OhMyREPL" e
    end
end

In Julia 1.11 beta 1, I see the following message when starting a repl now:

┌ Warning: error while importing OhMyREPL
│   e =
│    InitError: UndefRefError: access to undefined reference
│    during initialization of module REPLExt
└ @ Main ~/.julia/config/startup.jl:5

I didn't see this message in 1.10, so I'm guessing it's something to do with 1.11 specifically. The error message means that none of the syntax highlighting works.

Interestingly if I do using OhMyREPL after the repl has started up, then there are no import errors and all syntax highlighting works. So it seems like something is broken here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions