Skip to content

OhMyREPL sysimage breaks VScode language server #434

@Crown421

Description

@Crown421

I am running julia 1.5-rc on Manjaro Linux and replaced my default sysimage with one including Revise and OhMyREPL. This was very nice, and Julia sessions started up very quickly.

Unfortunately, with this sysimage the VScode Julia Language Server doesn't start, with the following error

Warning: Package OhMyREPL does not have REPL in its dependencies:
│ - If you have OhMyREPL checked out for development and have
│   added REPL as a dependency but haven't updated your primary
│   environment's manifest file, try `Pkg.resolve()`.
│ - Otherwise you may need to report an issue with OhMyREPL
└ Loading REPL into OhMyREPL from project dependency, future warnings for OhMyREPL are suppressed.
fatal: error thrown and no exception handler available.
#<null>
require at ./loading.jl:906
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2214 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2398
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1690 [inlined]
call_require at /buildworker/worker/package_linux64/build/src/toplevel.c:425 [inlined]
eval_import_path at /buildworker/worker/package_linux64/build/src/toplevel.c:462
jl_toplevel_eval_flex at /buildworker/worker/package_linux64/build/src/toplevel.c:682
jl_parse_eval_all at /buildworker/worker/package_linux64/build/src/ast.c:913
jl_load_rewrite at /buildworker/worker/package_linux64/build/src/toplevel.c:914
include at ./Base.jl:380
include at ./Base.jl:368 [inlined]
include at /home/steffen/.julia/packages/OhMyREPL/7qVFi/src/OhMyREPL.jl:6 [inlined]
__init__ at /home/steffen/.julia/packages/OhMyREPL/7qVFi/src/OhMyREPL.jl:122
jfptr___init___32261 at /home/steffen/Apps/julia-1.5.0-rc2/lib/julia/sys.so (unknown line)
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2214 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2398
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1690 [inlined]
jl_module_run_initializer at /buildworker/worker/package_linux64/build/src/toplevel.c:74
_julia_init at /buildworker/worker/package_linux64/build/src/init.c:779
main at /buildworker/worker/package_linux64/build/ui/repl.c:221
__libc_start_main at /usr/lib/libc.so.6 (unknown line)
_start at /home/steffen/Apps/julia-1.5.0-rc2/bin/julia (unknown line)
[Info  - 17:04:13] Connection to server got closed. Server will restart.

Reverting to the default sysimage allows the language server to start again. I then rebuild the system image, once with a precompile log file, and once without, and in both cases the error above returned.

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