clojure-emacs / enrich-classpath

Enriches Lein/deps.edn dependency trees with Java sources, JDK sources, javadocs, etc
Eclipse Public License 2.0
32 stars 9 forks source link

clojure.sh fails on "-e" #58

Closed behrica closed 11 months ago

behrica commented 12 months ago

Using the clojure.sh with -e fails

enrich-classpath/tools.deps/src/cider/enrich_classpath/clojure.sh clojure -e "(+ 1 1)" 
WARNING: Implicit use of clojure.main with options is deprecated, use -M
2
Execution error (FileNotFoundException) at java.io.FileInputStream/open0 (FileInputStream.java:-2).
-Sforce (No such file or directory)

Full report at:
/tmp/clojure-18079930326633686545.edn
vemv commented 12 months ago

Thanks, will check out soon.

behrica commented 12 months ago

I try to integrate enrich-classpath with 'launchpad' which relies on -e

behrica commented 12 months ago

My use case can be solved by not using launchpad, see here : https://github.com/behrica/clj-polyglot-app/blob/main/README.md#02alpha-release

I still think the issue is valid, as likely the clojure.sh should support all options of clj ?

vemv commented 11 months ago

Yes, generally I try clojure.sh to be a true drop-in replacement

vemv commented 11 months ago

Fixed! 1.19.0 will be published 30m from now.