How to get the path for shared articafacts of a package? #1553
-
There are API like My requirement is to get |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Reaching into the internal package structure is not recommended and not supported as this may change in-between versions. Instead, these artifacts are also available at a stable location inside the In the case of java-test, this could for example look like: local java_test_jar = vim.fn.glob "$MASON/share/java-test/com.microsoft.java.test.plugin-*.jar"
-- /Users/williamboman/.local/share/nvim/mason/share/java-test/com.microsoft.java.test.plugin-0.39.0.jar
-- do something with the file path to the jar… Note that the above example uses |
Beta Was this translation helpful? Give feedback.
Reaching into the internal package structure is not recommended and not supported as this may change in-between versions. Instead, these artifacts are also available at a stable location inside the
bin/
(executables),share/
(architecture-independent files), andopt/
(rarely used for architecture-dependent files) directories..jar
files will be found inside theshare/
directory. The recommended way to access these are by expanding the$MASON
environment variable which mason.nvim sets up during setup.In the case of java-test, this could for example look like: