Skip to content

Known issues and workarounds

Cameron Bieganek edited this page Apr 17, 2020 · 7 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)

Intellisense

Disable intellisense in comments

When using Literate.jl or Weave a lot of text is written into comment sections of a .jl document and the intellisense might be counterproductive here. VS Code provides options that you can set to control this behavior. You can completely turn off suggestions in comments with this in your "settings.json" file:

{
    "editor.quickSuggestions": {
        "comments": false
    }
}

Or you can configure suggestions to not accept a suggestion on enter (and thus only accept suggestions on hitting the tab key):

{"editor.acceptSuggestionOnEnter": "off"}