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.
2019-07-29T03:34:52.191300Z

@carkh i cloned the portable repos to a windows 10 pro machine, ran script\build.cmd, then added the out\clojure-cli directory to PATH. in cmd.exe, -Spath worked ok, but -r just gave me back a command prompt (no repl).

2019-07-29T03:35:34.191900Z

where clojure.exe does give the appropriate path

carkh 2019-07-29T03:35:40.192100Z

hum that's a problem i encountered while fixing the problem you reported earlier, but i thought i fixed it, let me try again

carkh 2019-07-29T03:38:38.192900Z

hum works here, did you clone maybe a little while back ?

carkh 2019-07-29T03:39:12.193500Z

i've been a bad boy and pushed some partial changes at some point

2019-07-29T03:40:05.193800Z

i did a fresh clone right before trying just now

2019-07-29T03:40:23.194Z

will try for a different clojure project folder

2019-07-29T03:44:01.194500Z

same result

carkh 2019-07-29T03:44:19.194700Z

mhh

carkh 2019-07-29T03:47:16.195900Z

what's your nim --version ? (though that should not matter at all but i can switch to it and try)

carkh 2019-07-29T03:51:35.196500Z

did you restart your console window after setting the path ?

carkh 2019-07-29T03:59:17.197400Z

i tried pointing the path to out/clojure-cli and it works too

2019-07-29T04:38:17.197600Z

nim compiler 0.20.2

carkh 2019-07-29T04:39:21.198200Z

ok let me switch to it (though i tried quite a few just now)

2019-07-29T04:39:35.198600Z

the s is in "windows" on line 138

2019-07-29T04:39:42.198800Z

i did try from a fresh prompt, but will try again

carkh 2019-07-29T04:40:16.199300Z

is it 32bit nim or 64 ?

2019-07-29T04:41:36.200100Z

x64 64 bit

2019-07-29T04:41:39.200300Z

ah wait

2019-07-29T04:41:42.200600Z

how do i check that?

carkh 2019-07-29T04:41:52.200900Z

ah that's a difference, i wonder why i'm on 32bits

2019-07-29T04:42:02.201100Z

it says amd64

2019-07-29T04:42:12.201300Z

from output of nim --version

carkh 2019-07-29T04:53:08.201700Z

works with amd64 compiler too

2019-07-29T04:54:42.202Z

which clojure project did you try with?

carkh 2019-07-29T04:55:04.202400Z

your example, which is in issues/sogaiu1

carkh 2019-07-29T04:55:28.202800Z

and i switched to it for my own clojure programming too

2019-07-29T04:56:36.203100Z

i will try rebooting

carkh 2019-07-29T04:57:15.203800Z

damn that's not a good user experience =)

carkh 2019-07-29T04:57:44.204100Z

want to try my own binaries maybe ? i'll upload them

2019-07-29T04:59:18.204700Z

unfortunately, no change -- sure i'll try your binaries

carkh 2019-07-29T05:00:28.205300Z

also maybe you have some bad data in .cpcache but it's a long shot

2019-07-29T05:01:58.205800Z

same result -- i will look into .cpcache content

2019-07-29T05:03:21.206500Z

in one case, there was no .cpcache -- in another project there was, so i removed it and tried again -- unfortunately, same result

carkh 2019-07-29T05:03:41.206900Z

clojure -Sverbose -A:sock -r will give you a bit more info, but not much

carkh 2019-07-29T05:04:28.207400Z

so that means it doesn't even reach the step where it builds the cache

2019-07-29T05:07:13.208400Z

ah, one of the cases was my fault -- that wasn't a valid directory to test -- sorry for the other case, i see various paths followed by the message "Refreshing classpath", then the command prompt

carkh 2019-07-29T05:07:36.208600Z

oh so it works then =)

carkh 2019-07-29T05:07:44.208900Z

pfiuh you got me worried for a minute there =)

carkh 2019-07-29T05:07:52.209200Z

i was stumped on this one =)

carkh 2019-07-29T05:08:29.209500Z

thanks for persisting through it !

2019-07-29T05:09:10.209900Z

sorry to be unclear -- it still has problems

2019-07-29T05:09:20.210200Z

it's just that one of the project directories i was testing was invalid

2019-07-29T05:09:26.210500Z

it still has problems with the other one

carkh 2019-07-29T05:09:31.210700Z

oh

2019-07-29T05:09:38.211100Z

i also tried another project: https://github.com/seancorfield/depstar

2019-07-29T05:10:39.211600Z

i will try in a vm to compare

carkh 2019-07-29T05:11:10.211900Z

i still need to test the latest changes to depstar

carkh 2019-07-29T05:11:33.212400Z

might be able to use it again, and still produce cljdocs

carkh 2019-07-29T05:12:06.212800Z

if you wait a bit for more tests, i'll add a bunch of print statements to see how it fails

carkh 2019-07-29T05:17:55.213400Z

ah i found somethign that might be a problem in a machine dependent way, checking it out

carkh 2019-07-29T05:25:35.214400Z

@sogaiu pushed possible fix, with more verbosity and updated binaries too

2019-07-29T05:33:37.214900Z

i am not seeing any difference after pulling and rebuilding -- when you say updated binaries, are they on the releases page?

carkh 2019-07-29T05:34:00.215300Z

yes, but there should be some differences in the code

2019-07-29T05:34:28.216Z

doing -Sverbose should turn on more verbosity?

carkh 2019-07-29T05:34:37.216100Z

wait i found one of my projects exhibiting the same issue

carkh 2019-07-29T05:34:44.216300Z

so i can take it from there

carkh 2019-07-29T05:34:50.216500Z

yes

2019-07-29T05:35:12.216700Z

ah ok

carkh 2019-07-29T05:35:39.217Z

so it's not fixed, but i've got a test case now !

2019-07-29T05:37:47.217200Z

hurray for reproducibility 😉

2019-07-29T05:41:04.217700Z

for the record, depstar exhibited the same behavior on a physical machine windows 10 pro as well as a vm window 10 home

2019-07-29T05:41:45.218300Z

i was only typing clojure -r (or with -Sverbose)

carkh 2019-07-29T05:44:15.218900Z

oh i'll check on it too (depstar)

carkh 2019-07-29T05:44:29.219100Z

pushed a possible fix

carkh 2019-07-29T05:47:48.219300Z

i can start a repl on depstar

2019-07-29T05:48:17.219500Z

hurray! it works here too 🙂

carkh 2019-07-29T05:48:26.219700Z

weee !

carkh 2019-07-29T05:48:31.220Z

thank you so much =)

2019-07-29T05:48:59.220300Z

thank you! it also works on my other test project 🙂

🥂 2
carkh 2019-07-29T05:52:25.221700Z

i'll go and make a test library with depstar, i promised i would test it

2019-07-29T05:52:44.221900Z

sounds like a good idea

seancorfield 2019-07-29T05:53:35.222200Z

LMK if you have questions / need help there...

carkh 2019-07-29T05:54:07.222600Z

actually i WAS using it, had to abandon it for cljdocs

seancorfield 2019-07-29T05:54:45.222800Z

I know. You said 🙂

seancorfield 2019-07-29T05:55:20.223700Z

next.jdbc started to rely on java.data and that's when I tripped over the same problem.

seancorfield 2019-07-29T05:55:26.224Z

Which is now fixed 🙂

carkh 2019-07-29T05:55:40.224300Z

gonna make a library template and push it on clojars with docs on the one function it'll include

alexmiller 2019-07-29T14:14:32.224900Z

@carkh hoping I'll have a chance to look at your stuff at some point this week

carkh 2019-07-29T21:09:44.225200Z

@alexmiller nice thanks !