This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-23
Channels
- # adventofcode (21)
- # announcements (4)
- # babashka (35)
- # beginners (36)
- # calva (76)
- # cider (16)
- # clj-kondo (24)
- # clj-on-windows (12)
- # clojure (70)
- # clojure-europe (7)
- # clojure-nl (13)
- # clojure-spec (3)
- # clojure-uk (3)
- # clojurescript (34)
- # conjure (11)
- # cursive (22)
- # datomic (30)
- # deps-new (2)
- # emacs (36)
- # fulcro (28)
- # gratitude (4)
- # honeysql (16)
- # hugsql (8)
- # introduce-yourself (6)
- # jobs (1)
- # malli (4)
- # missionary (6)
- # off-topic (129)
- # other-languages (34)
- # polylith (3)
- # reagent (9)
- # reitit (27)
- # releases (13)
- # remote-jobs (1)
- # reveal (1)
- # shadow-cljs (2)
- # tools-build (3)
- # tools-deps (18)
- # web-security (7)
- # xtdb (4)
@brendnz Getting back to your vcXsrv/ClojureScript issue, do you have a web browser installed on WSL2? I had to install google-chrome
to get some of the ClojureScript stuff to work. When you go through the tutorial for ClojureScript on WSL2, it wants to open a web browser to the (random) port chosen -- and you'll have problems trying to use a Windows browser to connect to it. sudo apt install google-chrome
should get you a recent Chrome browser installed on Ubuntu, and then that will open automatically (and vcXsrv will display it for Windows, assuming you have that installed correctly).
@U04V70XH6, thank you for the advice. I have only this moment managed to do this, and before that, just managed to get vcXsrv working after reading a lot about it. I decided adjusting the firewall to allow public access for only the 172.16.0.0/12 subnet was probably sufficient security after investigating the possible use ssh keys for better security (I was concerned about the apparent key-logging capability for malware). I am please to report that when I run the Calva command to open the clojurescript tutorial a page opens in firefox. Before that I had to install the browser as you mention, and after installing firefox I had to install xdg-utils so that WSL2 would know that it had a default browser in order to meet Calva's request for a page to be opened in the default browser. As to connecting to Calva's Clojurescript REPL, I am not there yet.
Is there a way to write paragraphs in these reply thread panels? If I press "enter", the whole message gets posted.
@brendnz No need to send responses to the main channel as well as a the thread in general (so don't check that box). You can write paragraphs by pressing shift-enter instead of just enter.
I was originally using vcXsrv with WSL for GUI apps like browsers.
As for trying to connect Calva's ClojureScript REPL to that, I don't know...
Hi @U04V70XH6. The following page still gives me an error (cannot read property 'eval' of null) when I try to load it into the REPL (ctrl-alt-c enter).
I get a little bit further with the Quick Start Node Repl. The namespace loads automatically. But the (js/alert ...) form won't evaluate.
Probably best to ask Calva-related questions in #calva at this point. I can't help you with ClojureScript, sorry.
Thanks @U04V70XH6, I understood this from your previous reply, but I was just letting you and others know how things went, no doubt with the feint hope someone could add a bit more. Thank you for the Calva group suggestion.
(Hey, shift enter works on a phone as well!)
I am in awe of Pez, and was reluctant to ask the creator of Calva directly, but I will do so shortly (rather the Calva group now that you mention it) after a bit more tinkering by which time I will no doubt be desperate [have no choice but to ask more directly. I am generally not averse to asking questions].
I get a little bit further with the Quick Start Node Repl. The namespace loads automatically. But the (js/alert ...) form won't evaluate.