Fork me on GitHub
#clj-on-windows
<
2021-12-23
>
seancorfield18:12:12

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

brendnz14:12:41

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

1
brendnz14:12:53

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

brendnz14:12:56

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

seancorfield18:12:46

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

seancorfield18:12:41

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

seancorfield18:12:30

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

brendnz14:12:11

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

brendnz18:12:26

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

seancorfield19:12:43

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

brendnz23:12:15

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

brendnz18:12:26

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