LanguageServer.jl icon indicating copy to clipboard operation
LanguageServer.jl copied to clipboard

Language sever fails to start

Open steven-varga opened this issue 3 years ago • 2 comments

On the following julia compile:

Julia Version 1.7.0-DEV.130
Commit 58d6684e5e* (2020-12-20 15:11 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz
  WORD_SIZE: 64
  LIBM: libimf
  LLVM: libLLVM-11.0.0 (ORCJIT, skylake)

the langauge server fails to load:

[Error - 12:28:18 a.m.] Connection to server is erroring. Shutting down server.
[Error - 12:28:18 a.m.] Connection to server is erroring. Shutting down server.
[Error - 12:28:18 a.m.] Connection to server is erroring. Shutting down server.
[Error - 12:28:18 a.m.] Connection to server is erroring. Shutting down server.
ERROR: Unable to load dependent library /usr/local/bin/../lib/julia/libimf.so
Message:libintlc.so.5: cannot open shared object file: No such file or director

It seems as if it didn't find the required shared objects, what otherwise is available in shell when the following is sourced:

source /opt/intel/bin/compilervars.sh intel64
source /opt/intel/parallel_studio_xe_2020/bin/psxevars.sh

is there a way to source the intel tool chain scripts before julia starts?

steven-varga avatar Dec 22 '20 05:12 steven-varga

This to me looks like a but in Julia to me, not LanguageServer.jl. Presumably 1.7 is just not very stable at the moment?

davidanthoff avatar Jan 05 '21 22:01 davidanthoff

This PR provides a fix, details are on this julia discourse thread pointing to the environment not being propagated as well as the default julia depot not being enabled.

It fixed the issues with vscode and code-server, where julia has been compiled against Intel MKL.

steven-varga avatar Jan 06 '21 02:01 steven-varga