clj-on-windows

For those interested in making clj on Windows https://dev.clojure.org/jira/browse/TDEPS-67. Also see https://github.com/littleli/scoop-clojure.
carkh 2019-07-28T21:44:45.175400Z

I updated that list of issues with Powershell and possible solutions, still looking for feedback : https://github.com/cark/clojure-windows-cli-issues

carkh 2019-07-28T21:45:41.176200Z

And to go along with it a binary wrapper around the powershell scripts : https://github.com/cark/clojure-win-cli-wrap

carkh 2019-07-28T21:46:11.176800Z

And a portable binary rewrite of the bash/powershell scripts : https://github.com/cark/clojure-cli-portable

2019-07-28T22:13:21.180700Z

@carkh haven't tested windows yet for clojure-cli-portable -- tried the linux version. basic repl, -Spath seem to work -- an alias like the following seems to trip clojure (not clj) up:

:sock
   {
    :jvm-opts ["-Dclojure.server.repl={:port,11119,:accept,clojure.core.server/repl}"]
    :main-opts ["-e" "(println,\"socket-repl-at-port:11119\")"]
   }
this works with the official clj / clojure. the error i get for clojure-cli-portable's clojure when invoked as "clojure -A:sock -r" is:
Syntax error compiling at (REPL:1:1).
Unable to resolve symbol: socket-repl-at-port:11119 in this context

carkh 2019-07-28T22:14:01.181100Z

nice i'll go and fix it, thanks !

2019-07-28T22:14:39.181700Z

thanks for your ongoing work on this, btw -- as well as pointing out nim -- looks quite interesting 🙂

carkh 2019-07-28T22:15:05.182100Z

=)

carkh 2019-07-28T22:40:37.182700Z

@sogaiu should be fixed

carkh 2019-07-28T22:40:41.182900Z

I have a question though

carkh 2019-07-28T22:41:13.183600Z

I see you're using the corfield comma, is it required with the regular clojure cli ?

carkh 2019-07-28T22:42:16.184300Z

(in the main-opts of your deps.edn)

2019-07-28T22:42:37.184600Z

i think so, but i will try to verify

2019-07-28T22:44:44.185400Z

so i removed commas from the :jvm-opts as well as :main-opts portions and what i get for clj -A:sock -r is:

Error: Could not find or load main class 11119

carkh 2019-07-28T22:45:11.185700Z

yes i guess that's required

carkh 2019-07-28T22:46:03.186300Z

that's an issue that ought be fixed in regular clojure cli, for now i'll keep it exactly as it is there

2019-07-28T22:46:24.186600Z

i think it's been discussed, but don't know the status

2019-07-28T22:46:42.187Z

may be #tools-deps might have some hints?

carkh 2019-07-28T22:47:13.187500Z

right now i'm focused on parity rather than fixing upstream issues =)

carkh 2019-07-28T22:48:12.188200Z

so err, does it work in the regular case for you now ?

carkh 2019-07-28T22:48:40.188600Z

i mean with the "Corfield commas"

carkh 2019-07-28T22:51:24.188800Z

hum actually nope still buggy

carkh 2019-07-28T22:51:38.189Z

(on linux)

carkh 2019-07-28T22:59:41.189200Z

nope it works

2019-07-28T23:13:31.189400Z

works now, thanks 🙂

carkh 2019-07-28T23:15:03.189800Z

no, thank you