Julia LanguageServer.jl and Kate Editor's LSP Client
SOC VIRNYL ESTELA <[email protected]>
| Newsgroups | gmane.comp.kde.devel.kwrite |
|---|---|
| Message-ID | <CAMJpY3-=xOAuK7c23CQMeoEuucQHXOJZ7NryUq_qPYhgddvVzw@mail.gmail.com> |
Hello. I have tried setting up Julia's LanguageServer.jl on Kate but it
currently does not work. Here is my configuration:
```json
{
"servers": {
"julia": {
"command": ["julia",
"--project/home/tricks/.julia/packages/LanguageServer/y1ebo/src/",
"--startup-file=no",
"--history-file=no",
"--sysimage=/home/tricks/Developer/Julia/julials.so",
"--sysimage-native-code=yes",
"-e",
"using Pkg; Pkg.instantiate(); using
LanguageServer; using SymbolServer; depot_path = get(ENV,
\"JULIA_DEPOT_PATH\", \"\");project_path =
dirname(something(Base.current_project(pwd()),
Base.load_path_expand(LOAD_PATH[2])));@info \"Running language server\"
env=Base.load_path()[1] pwd() project_path depot_path\nserver =
LanguageServer.LanguageServerInstance(stdin, stdout, project_path,
depot_path);server.runlinter = true; run(server);"
],
"url": "https://github.com/julia-vscode/LanguageServer.jl",
"highlightingModeRegex": "^Julia$"
}
}
}
```
Even without using the sysimage, the server still crashes. The logs are
attached to this email named as julials.log. If I missed something, are
there any ways to make LanguageServer.jl work on Kate?
--
---*DISCLAIMER AND CONFIDENTIALITY NOTICE* The Mindanao State
University-Iligan Institute of Technology <http://www.iit.edu.ph/>
(MSU-IIT) makes no warranties of any kind, whether expressed or implied,
with respect to the MSU-IIT e-mail resources it provides. MSU-IIT will not
be responsible for damages resulting from the use of MSU-IIT e-mail
resources, including, but not limited to, loss of data resulting from
delays, non-deliveries, missed deliveries, service interruptions caused by
the negligence of a MSU-IIT employee, or by the User's error or omissions.
MSU-IIT specifically denies any responsibility for the accuracy or quality
of information obtained through MSU-IIT e-mail resources, except material
represented as an official MSU-IIT record. Any views expressed in this
e-mail are those of the individual sender and may not necessarily reflect
the views of MSU-IIT, except where the message states otherwise and the
sender is authorized to state them to be the views of MSU-IIT. The
information contained in this e-mail, including those in its attachments,
is confidential and intended only for the person(s) or entity(ies) to which
it is addressed. If you are not an intended recipient, you must not read,
copy, store, disclose, distribute this message, or act in reliance upon the
information contained in it. If you received this e-mail in error, please
contact the sender and delete the material from any computer or system.
julials.log
(text/x-log, 2.9 KB)
[2021-04-14T08:25:41] [Log] [LSP Client] Started server julia@/home/tricks: julia --project=/home/tricks/.julia/packages/LanguageServer/y1ebo/src/ --startup-file=no --history-file=no --sysimage=/home/tricks/Developer/Julia/julials.so --sysimage-native-code=yes -e using Pkg; Pkg.instantiate(); using LanguageServer; using SymbolServer; depot_path = get(ENV, "JULIA_DEPOT_PATH", "");project_path = dirname(something(Base.current_project(pwd()), Base.load_path_expand(LOAD_PATH[2])));@info "Running language server" env=Base.load_path()[1] pwd() project_path depot_path server = LanguageServer.LanguageServerInstance(stdin, stdout, project_path, depot_path);server.runlinter = true; run(server); [2021-04-14T08:25:50] [Warning] [LSP Client] Server terminated unexpectedly ... Restarting [julia --project=/home/tricks/.julia/packages/LanguageServer/y1ebo/src/ --startup-file=no --history-file=no --sysimage=/home/tricks/Developer/Julia/julials.so --sysimage-native-code=yes -e using Pkg; Pkg.instantiate(); using LanguageServer; using SymbolServer; depot_path = get(ENV, "JULIA_DEPOT_PATH", "");project_path = dirname(something(Base.current_project(pwd()), Base.load_path_expand(LOAD_PATH[2])));@info "Running language server" env=Base.load_path()[1] pwd() project_path depot_path server = LanguageServer.LanguageServerInstance(stdin, stdout, project_path, depot_path);server.runlinter = true; run(server);] [homepage: https://github.com/julia-vscode/LanguageServer.jl] [2021-04-14T08:25:51] [Log] [LSP Client] Started server julia@/home/tricks: julia --project=/home/tricks/.julia/packages/LanguageServer/y1ebo/src/ --startup-file=no --history-file=no --sysimage=/home/tricks/Developer/Julia/julials.so --sysimage-native-code=yes -e using Pkg; Pkg.instantiate(); using LanguageServer; using SymbolServer; depot_path = get(ENV, "JULIA_DEPOT_PATH", "");project_path = dirname(something(Base.current_project(pwd()), Base.load_path_expand(LOAD_PATH[2])));@info "Running language server" env=Base.load_path()[1] pwd() project_path depot_path server = LanguageServer.LanguageServerInstance(stdin, stdout, project_path, depot_path);server.runlinter = true; run(server); [2021-04-14T08:26:01] [Warning] [LSP Client] Server terminated unexpectedly ... NOT Restarting [julia --project=/home/tricks/.julia/packages/LanguageServer/y1ebo/src/ --startup-file=no --history-file=no --sysimage=/home/tricks/Developer/Julia/julials.so --sysimage-native-code=yes -e using Pkg; Pkg.instantiate(); using LanguageServer; using SymbolServer; depot_path = get(ENV, "JULIA_DEPOT_PATH", "");project_path = dirname(something(Base.current_project(pwd()), Base.load_path_expand(LOAD_PATH[2])));@info "Running language server" env=Base.load_path()[1] pwd() project_path depot_path server = LanguageServer.LanguageServerInstance(stdin, stdout, project_path, depot_path);server.runlinter = true; run(server);] [homepage: https://github.com/julia-vscode/LanguageServer.jl]