Skip to content

Known issues and workarounds

David Anthoff edited this page May 12, 2019 · 5 revisions

Revise.jl

If you want to load Revise.jl in your .julia/config/startup.jl file, you need to use the following formulation, not the one on the Revise.jl homepage:

atreplinit() do repl
    @async try
        sleep(0.1)
        @eval using Revise
        @async Revise.wait_steal_repl_backend()
    catch
        @warn("Could not load Revise.")
    end
end

OhMyREPL.jl

When sending code to the REPL, OhMyREPL.jl may intercept opening parentheses and autocomplete the closing parenthesis at the end of the same line. This means that if you execute code like this:

string(1,
       2,
       3)

it will appear in the REPL like this:

julia> string(1,)
1

julia>        2,
(2,)

julia>        3)
ERROR: syntax: extra token ")" after end of expression

The workaround is to disable bracket autocompletion after you load OhMyREPL:

OhMyREPL.enable_autocomplete_brackets(false)
You can’t perform that action at this time.