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

0 votes
in tools.deps.alpha by
closed by
Clojure is installed per https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Windows in a fresh Windows 10 VM.

Repro in Powershell:


PS C:\Users\IEUser> $env:JAVA_HOME="C:\Users\IEUser\Downloads\graalvm\graalvm-ce-19.0.0"
PS C:\Users\IEUser> clojure -Sdeps '{:deps {org.clojure/tools.deps.alpha {:mvn/version \"0.6.496\"}}}'
Clojure 1.10.0
user=> (require '[clojure.tools.deps.alpha.reader :as deps-reader])
nil
user=> (deps-reader/clojure-env)
Execution error (IOException) at java.lang.ProcessImpl/create (ProcessImpl.java:-2).
CreateProcess error=2, The system cannot find the file specified
user=> *e
#error {
 :cause "CreateProcess error=2, The system cannot find the file specified"
 :via
 [{:type java.io.IOException
   :message "Cannot run program \"clojure\": CreateProcess error=2, The system cannot find the file specified"
   :at [java.lang.ProcessBuilder start "ProcessBuilder.java" 1048]}
  {:type java.io.IOException
   :message "CreateProcess error=2, The system cannot find the file specified"
   :at [java.lang.ProcessImpl create "ProcessImpl.java" -2]}]
 :trace
 [[java.lang.ProcessImpl create "ProcessImpl.java" -2]
  [java.lang.ProcessImpl <init> "ProcessImpl.java" 386]
  [java.lang.ProcessImpl start "ProcessImpl.java" 137]
  [java.lang.ProcessBuilder start "ProcessBuilder.java" 1029]
  [java.lang.Runtime exec "Runtime.java" 620]
  [clojure.java.shell$sh invokeStatic "shell.clj" 113]
  [clojure.java.shell$sh doInvoke "shell.clj" 79]
  [clojure.lang.RestFn invoke "RestFn.java" 421]
  [clojure.tools.deps.alpha.reader$scrape_clojure_env invokeStatic "reader.clj" 21]
  [clojure.tools.deps.alpha.reader$scrape_clojure_env invoke "reader.clj" 19]
  [clojure.lang.AFn applyToHelper "AFn.java" 152]
  [clojure.lang.AFn applyTo "AFn.java" 144]
  [clojure.core$apply invokeStatic "core.clj" 665]
  [clojure.core$memoize$fn__6862 doInvoke "core.clj" 6353]
  [clojure.lang.RestFn invoke "RestFn.java" 397]
  [user$eval199 invokeStatic "NO_SOURCE_FILE" 1]
  [user$eval199 invoke "NO_SOURCE_FILE" 1]
  [clojure.lang.Compiler eval "Compiler.java" 7176]
  [clojure.lang.Compiler eval "Compiler.java" 7131]
  [clojure.core$eval invokeStatic "core.clj" 3214]
  [clojure.core$eval invoke "core.clj" 3210]
  [clojure.main$repl$read_eval_print__9068$fn__9071 invoke "main.clj" 414]
  [clojure.main$repl$read_eval_print__9068 invoke "main.clj" 414]
  [clojure.main$repl$fn__9077 invoke "main.clj" 435]
  [clojure.main$repl invokeStatic "main.clj" 435]
  [clojure.main$repl_opt invokeStatic "main.clj" 499]
  [clojure.main$main invokeStatic "main.clj" 598]
  [clojure.main$main doInvoke "main.clj" 561]
  [clojure.lang.RestFn invoke "RestFn.java" 397]
  [clojure.lang.AFn applyToHelper "AFn.java" 152]
  [clojure.lang.RestFn applyTo "RestFn.java" 132]
  [clojure.lang.Var applyTo "Var.java" 705]
  [clojure.main main "main.java" 37]]}
user=>
closed with the note: Jira is now closed.

2 Answers

0 votes
by
Reference: https://clojure.atlassian.net/browse/TDEPS-128 (reported by borkdude)
0 votes
by

As of tools.deps.alpha 0.7.516, clojure-env is deprecated and you should use (reader/default-deps) instead (which is cross-platform).

...