scicloj / wolframite

An interface between Clojure and Wolfram Language (the language of Mathematica)
Mozilla Public License 2.0
47 stars 2 forks source link

JLink detection still unstable #49

Closed light-matters closed 2 weeks ago

light-matters commented 4 months ago

Tried to use Wolframite on another machine (Still linux, Manjaro, but Mathematica version 13.0) and ran into more JLink path problems. Not sure why Wolfram has so many default paths...

This time, there is an extra subdirectory in the path which breaks the absolute path constructor.

We should probably move to using a more intelligent system, i.e. to programmatically 'search' for the binaries, at least as a backup when the default paths don't work.

light-matters commented 4 months ago

Made a quick fix for this particular problem, 06ef8f2, but the jlink namespace still needs tidied up.

light-matters commented 4 months ago

Tided up the jlink namespace and restructured the functions, df1f6aaeffc8dd42ddd6b81b24f81de497f11bbd, but would still be nice to have a backup 'search'.

light-matters commented 4 months ago

Searching for the binaries/jlink as a last resort is now implemented (f617013).

light-matters commented 4 months ago

Reopened, because jlink is not automatically detected in Mathematica installations with version paths, as opposed to the relevant kernels. This is because the version path correction is not done at the (defn info...) level, but only at the (defn path--kernel...) function.

holyjak commented 2 weeks ago

@light-matters looking at the code, this seems to be fixed now. Could you be so kind and confirm?