announcements

Project/library announcements ONLY - use threaded replies for discussions. Do not cross post here from other channels. Consider #events or #news-and-articles for other announcements.
2021-05-15T00:51:01.221600Z

Awesome! I'm excited to see the results there!

raspasov 2021-05-15T08:13:48.222900Z

Since this question comes up pretty often, I made cljs-101:

๐Ÿ‘ 4
1
raspasov 2021-05-15T08:13:52.223100Z

https://github.com/raspasov/cljs-101

๐Ÿ‘€ 3
โค๏ธ 4
yuhan 2021-05-15T09:17:30.223600Z

That's really convenient! Is the user intended to clone the repo supposed or simply copy the clj shell invocation? If it's the former, why not include an alias in a deps.edn and simply call clj -M:node

raspasov 2021-05-15T10:03:55.224Z

You can have the deps.edn also ๐Ÿ™‚ I just wanted โ€œthe least number of filesโ€. I wanted to demystify the starting of a REPL. If you put it behind an alias, you then need to teach people what an alias is in the context of deps.edn ๐Ÿ™‚ Which can be useful but is not critical to get going.

raspasov 2021-05-15T10:07:06.224200Z

Not really clone, thereโ€™s literally nothing to clone! ๐Ÿ™‚ Itโ€™s just one line command.

yuhan 2021-05-15T10:19:30.224600Z

Yup, that's what I gathered, but the Readme and example code made it seem like it should be invoked from the project folder

yuhan 2021-05-15T10:24:55.224800Z

I also didn't realise the CLI tool implicitly adds "src/" to the classpath from wherever it was invoked, even when there's no deps.edn file - just small things that may be confusing to beginners

borkdude 2021-05-15T11:00:21.225Z

I've been doing it like clj -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.597"}}}' -M -m cljs.main -re node since a few years

๐Ÿ‘ 1
littleli 2021-05-15T13:41:53.225500Z

I reported the first... not a bug, rather a report.

raspasov 2021-05-15T13:52:57.225700Z

Ha! ๐Ÿ™‚ Thanks. Sorry, I havenโ€™t seen a Windows for years. So it worksโ€ฆ after you run it twice?

littleli 2021-05-15T14:43:51.226100Z

No ๐Ÿ™‚ there is a problem with escaping. Check the backslash \ before double quote "

littleli 2021-05-15T14:44:36.226300Z

Escaping work differently under Windows unfortunately. So the command has to look a bit different which I wanted to demonstrate in the issue description.

๐Ÿ‘Œ 1
raspasov 2021-05-15T15:15:46.226700Z

Aha! Got it. Merged ๐Ÿ‘

raspasov 2021-05-15T15:15:48.226900Z

Thank you!

littleli 2021-05-15T15:35:53.228100Z

Sure thing. Great small project!

๐Ÿ‘ 1
2021-05-15T18:20:10.229100Z

I suppose this says something about the sorry state of http://clojurescript.org

๐Ÿ‘ 1
seancorfield 2021-05-15T21:35:39.229900Z

@qythium The CLI itself can tell you that:

seanc@DESKTOP-30ICA76:~/clojure$ ls
data  example
seanc@DESKTOP-30ICA76:~/clojure$ clojure -Sdescribe
{:version "1.10.3.839"
 :config-files ["/home/linuxbrew/.linuxbrew/Cellar/clojure@1.10.3.839/1.10.3.839/deps.edn" "/home/seanc/.clojure/deps.edn" ]
 :config-user "/home/seanc/.clojure/deps.edn"
 :config-project "deps.edn"
 :install-dir "/home/linuxbrew/.linuxbrew/Cellar/clojure@1.10.3.839/1.10.3.839"
 :config-dir "/home/seanc/.clojure"
 :cache-dir "/home/seanc/.clojure/.cpcache"
 :force false
 :repro false
 :main-aliases ""
 :repl-aliases ""}
seanc@DESKTOP-30ICA76:~/clojure$ clojure -Spath
src:/home/seanc/.m2/repository/org/clojure/clojure/1.10.3/clojure-1.10.3.jar:/home/seanc/.m2/repository/org/clojure/core.specs.alpha/0.2.56/core.specs.alpha-0.2.56.jar:/home/seanc/.m2/repository/org/clojure/spec.alpha/0.2.194/spec.alpha-0.2.194.jar
seanc@DESKTOP-30ICA76:~/clojure$
No deps.edn file there, but src is on the path.