-
-
Notifications
You must be signed in to change notification settings - Fork 883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WorldEdit cannot find js.jar
when running under Paper
#2691
Comments
this is basically working as expected. we don't really have any control over classloading, if paper loads the jar from another dir than i suppose another alternative would be using something like the spigot library loader to download it automatically at runtime, which relieves the burden from the user to do anything, but i'd rather not depend on that particular spigot "feature". or we could do as we do on NF/Fabric and just bundle it entirely. though i think that also has some issues as we don't relocate or anything. i remember someone reporting this can cause conflicts on forge, not sure if NF/Fabric(/Paper) do modules differently (NF might have inherited that behavior from FML, dunno). |
Thanks for the quick response and clarification of the issue. I'll check with Paper to see if there's any suggestions from them. |
fwiw, modifying the classpath manually to account for the folder change works: |
oh yea i was thinking about modifying the manifest and totally forgot you can just use the relative parent. guess that would be another workaround too, we could just add more classpath entries. also uh yea this dates back 15 years to hmod. there was no support for things like libraries, very limited support for things like shading (we uh, may have still been using ant at the time?), and we didn't want to bloat the jar with the rhino dep most people wouldn't even use. |
I think "the paper way" (tm) of this would be a config option "enable-rhino: true" or "js-engine: rhino" and then using the plugin loading mechanism to optionally load the lib, if the config is set. you can use that api without having a paper-plugin manifest since may last year: PaperMC/Paper#10758 |
WorldEdit Version
7.3.10-beta-01
Platform Version
Paper version 1.21.4-72-main@daddcf6
Confirmations
Bug Description
When running under recent Paper versions, WorldEdit is unable to locate
js.jar
when it is installed in the documented location.If
js.jar
is placed in either theplugins
orplugins/WorldEdit
directories, WorldEdit always reports that it cannot find it (worldedit.script.missing-script-engine\nworldedit.script.please-see
).strace
shows that Paper's remapping is having an impact on the path WorldEdit is checking:These are the only two references to
js.jar
during startup.Sure enough placing
js.jar
inplugins/.paper-remapped
enables craftscript, but that's less than ideal.Expected Behavior
craftscript should work when
js.jar
is installed inplugins/WorldEdit
Reproduction Steps
Anything Else?
No response
The text was updated successfully, but these errors were encountered: