clj-on-windows

seancorfield 2021-12-23T18:02:12.058600Z

@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).

brendnz 2021-12-24T14:17:41.060400Z

@seancorfield, 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.

👍🏻 1
brendnz 2021-12-24T14:18:53.060600Z

Is there a way to write paragraphs in these reply thread panels? If I press "enter", the whole message gets posted.

brendnz 2021-12-24T14:19:56.060800Z

I have just notice that "Also send to #clj-on-windows" checkbox. Should I?

seancorfield 2021-12-24T18:34:46.061400Z

@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.

brendnz 2021-12-24T23:11:57.062700Z

👍

brendnz 2021-12-23T18:02:15.058800Z

@brendnz has joined the channel

seancorfield 2021-12-23T18:02:41.059400Z

I was originally using vcXsrv with WSL for GUI apps like browsers.

seancorfield 2021-12-23T18:03:30.060100Z

As for trying to connect Calva's ClojureScript REPL to that, I don't know...

brendnz 2021-12-24T14:27:11.061Z

Hi @seancorfield. 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).

brendnz 2021-12-24T18:48:26.061700Z

I get a little bit further with the Quick Start Node Repl. The namespace loads automatically. But the (js/alert ...) form won't evaluate.

seancorfield 2021-12-24T19:14:43.062500Z

Probably best to ask Calva-related questions in #calva at this point. I can't help you with ClojureScript, sorry.

brendnz 2021-12-24T23:26:15.062900Z

Thanks @seancorfield, 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].