Share your thoughts in the 2024 State of Clojure Survey!

Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by

(link: https://github.com/clojure/clojurescript/blob/3a0c07477ae781bf521bdc2b074ed7b783bb93f3/src/main/clojure/cljs/closure.clj#L1672-L1676 text: {{output-main-file}}) for nashorn and graaljs targets make use of {{java.io.File}}. This makes the produced artifact not work when trying to execute it with {{js.java-package-globals}} (see CLJS-3087)

It should either just concat the path strings with a forward slash, which should also work just fine on Windows as per https://docs.oracle.com/javase/8/docs/technotes/guides/scripting/nashorn/shell.html (unfortunately I don't have a machine to verify) or use the {{Java.type}} approach used in (link: https://github.com/clojure/clojurescript/blob/3a0c07477ae781bf521bdc2b074ed7b783bb93f3/src/main/cljs/cljs/bootstrap_graaljs.js#L4 text: {{graaljs_load}})

4 Answers

0 votes
by

Comment made by: kommen

I was only able to test {{CLJS-3089.patch}} on macOS for now.

0 votes
by

Comment made by: mfikes

CLJS-3089.patch passes CI (/)

0 votes
by

Comment made by: mfikes

CLJS-3089.patch added to Patch Tender (i)

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJS-3089 (reported by kommen)
...