Summary: | Julia backend does not find sys.so | ||
---|---|---|---|
Product: | [Applications] cantor | Reporter: | samcaspar |
Component: | julia-backend | Assignee: | Nikita Sirgienko <warquark> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | warquark |
Priority: | NOR | ||
Version First Reported In: | 20.08 | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/education/cantor/commit/76c6c50126b469181856ff6ff17a9ef19c382ada | Version Fixed In: | 20.08.2 |
Sentry Crash Report: |
Description
samcaspar
2020-08-23 01:58:41 UTC
Well, I now understand, what cause the problem. Cantor Julia backend uses Julia C API and this API requests path to some internal file (the "sys.so" file, which you mentioned before). Julia also provide method for getting path (but relative) to this file. Cantor, using information from settings, create absolute path and pass the path to julia code. The problem is, that cantor-backend-julia have been builded with system julia (I suppose, there is package "julia" in KDE Neon repos). But you pass path to local installation from jill. And relative paths to this internal file don't equal. Cantor julia backend uses "../lib/x86_64-linux-gnu/julia/" from system julia installation (from system library libjulia.so, I suppose), but for in-one-dir julia installation from jill you actually need a path "../lib/julia" (and if you manually build Cantor with Julia backend for this jill installation, then this proper path will be used and passed from Juila C API). But I have added some code for working with situation like this, so it will work in future Cantor versions. And have a more proper problem message, if there is a problem with this internal file. Git commit 76c6c50126b469181856ff6ff17a9ef19c382ada by Nikita Sirgienko. Committed on 09/09/2020 at 21:03. Pushed by sirgienko into branch 'release/20.08'. [Julia] Add some code for working with wrong path to Julia internal file "sys.so" FIXED-IN: 20.08.2 M +31 -4 src/backends/julia/juliaserver/juliaserver.cpp M +2 -1 src/backends/julia/juliaserver/juliaserver.h M +23 -1 src/backends/julia/juliasession.cpp https://invent.kde.org/education/cantor/commit/76c6c50126b469181856ff6ff17a9ef19c382ada |