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.
Andreas S. 2020-02-13T13:13:55.034600Z

help! I'm on windows and clj/clojure command doesn't seem to work

borkdude 2020-02-13T13:14:15.035200Z

@andreas.scheinert Are you in cmd.exe or powershell?

Andreas S. 2020-02-13T13:14:21.035300Z

cygwin?

borkdude 2020-02-13T13:15:10.035900Z

not sure about that one. deps.exe from the clojure-scoop may work there if the official doesn't

borkdude 2020-02-13T13:15:30.036400Z

the official is known to work in powershell only I think

Andreas S. 2020-02-13T13:15:49.036600Z

I ran the install script for linux here: https://clojure.org/guides/getting_started

borkdude 2020-02-13T13:15:51.036800Z

https://github.com/littleli/scoop-clojure

Andreas S. 2020-02-13T13:17:09.037300Z

lein works without problems in cygwin

Andreas S. 2020-02-13T13:22:12.037700Z

when I type: I get$ clj Please install rlwrap for command editing or use "clojure" instead.

Andreas S. 2020-02-13T13:22:29.037900Z

when i type "clojure"

Andreas S. 2020-02-13T13:22:31.038100Z

$ clojure Error: Could not find or load main class clojure.main Caused by: java.lang.ClassNotFoundException: clojure.main

borkdude 2020-02-13T13:23:23.038400Z

maybe post an issue on ask.clojure if no-one else responds here

borkdude 2020-02-13T13:23:42.038600Z

or try in #tools-deps

Andreas S. 2020-02-13T13:24:40.038900Z

thank you borkdude I will try that

alexmiller 2020-02-13T13:50:13.039300Z

I don't think any of the windows install methods work on cygwin

alexmiller 2020-02-13T13:50:47.039800Z

either WSL + linux stuff or Windows + powershell or scoop

Andreas S. 2020-02-13T13:51:05.040200Z

Hi alex!

alexmiller 2020-02-13T13:51:12.040400Z

the path stuff is too wonky on cygwin I think

Andreas S. 2020-02-13T13:51:49.041Z

but ultimately I wanted to try gigasquids clj-python brdige and and in cygwin I already have it...

Andreas S. 2020-02-13T13:52:03.041400Z

the good news is your powershell installer works

Andreas S. 2020-02-13T13:52:10.041600Z

I have installed it

alexmiller 2020-02-13T13:52:44.042400Z

btw, the clj-python folks hang out in a zulip room and usually someone is available there for questions about it

Andreas S. 2020-02-13T13:52:49.042500Z

but now when I want to use this deps comand I get an error: https://github.com/clj-python/clj-template

Andreas S. 2020-02-13T13:53:18.043100Z

clj -Sdeps '{:deps {seancorfield/clj-new {:mvn/version "0.8.6"}}}' \
  -m clj-new.create \
  <https://github.com/clj-python/clj-template@2d615fcbea6a5a39321a9e192d3dcee6319719d1> \
  appcompany.funapp
[2:42 PM] I figured I remove all the \ and create a long single line of command, but then that still gives me: [2:42 PM] Error while parsing option "--config-data {:deps {seancorfield/clj-new {:mvn/version 0.8.6}}}": java.lang.NumberFormatException: Invalid number: 0.8.6

alexmiller 2020-02-13T13:53:44.043500Z

the quoting stuff in windows is different

Andreas S. 2020-02-13T13:54:13.044100Z

ah I have to add \"0.8.6\"

Andreas S. 2020-02-13T13:54:43.044700Z

you are using double quotes, I will try that , thank you

Andreas S. 2020-02-13T14:19:01.045400Z

Thanks a lot @alexmiller in the end I got it to work!

alexmiller 2020-02-13T14:23:47.045600Z

great!