clr

The community for ClojureCLR is on Gitter: https://gitter.im/clojure-clr/community - you’ll get a better response there
dangercoder 2021-01-07T20:31:59.005600Z

Has anyone managed to start and connect to a socket-repl using VSCode and Clover? I'm using mac osx and the lastest clojure-clr distro:

$ clojure.main

(clojure.core.server/start-server {:name "test" :port 4004 :accept 'clojure.core.server/repl})
telnet connects me to the repl through the terminal
telnet localhost 4004
clover says: REPL not connected: Connection refused.

2021-01-07T21:02:52.008200Z

@jarvinenemil i tried and was also unsuccessful. with the developer tools made visible (via the about menu), i observed an error show up after i invoked the "Clover: Connect Socket REPL" command and filled in the connection info. i don't know if there is a #clover channel yet, but may be it's worth reporting to @mauricio.szabo via #chlorine or the github repository for clover?

mauricio.szabo 2021-01-07T21:04:11.009Z

What's the error you saw on developer tools, @sogaiu?

2021-01-07T21:05:00.009400Z

just a moment, i am struggling to get it out of a vm 🙂

2021-01-07T21:05:39.009600Z

https://pastebin.com/0aEKgRGJ

mauricio.szabo 2021-01-07T21:06:16.010100Z

This should be harmless (please, do not ask me why it happens - VSCode is strange...)

2021-01-07T21:06:36.010800Z

ok is there somewhere else i might look for clues?

mauricio.szabo 2021-01-07T21:06:58.011300Z

If Clover says REPL not connected: Connection refused, it means it's catching the error. Are you running on Windows, which ClojureCLR version are you using, how did you fire up the Socket REPL?

2021-01-07T21:07:14.011600Z

i am trying via an ubuntu flavor

2021-01-07T21:07:39.012400Z

this is with the latest alpha for clojureclr

mauricio.szabo 2021-01-07T21:07:42.012600Z

Great, I'm also on Ubuntu, so it'll be easier to debug

2021-01-07T21:07:53.012900Z

i started the clojure clr repl using the invocation above

2021-01-07T21:07:56.013100Z

at the repl

2021-01-07T21:08:09.013600Z

sorry i mean i started the socket repl via the command line repl

2021-01-07T21:08:32.014Z

ah i have some steps for installing

2021-01-07T21:08:35.014300Z

clojure clr

2021-01-07T21:08:36.014500Z

just a sec

2021-01-07T21:08:53.014900Z

https://gitlab.com/-/snippets/2056342

👍 1
mauricio.szabo 2021-01-07T21:08:55.015300Z

> this is with the latest alpha for clojureclr I did not test with it yet... is there a "quickstart" for installing it?

2021-01-07T21:08:56.015400Z

method 2 is quicker

mauricio.szabo 2021-01-07T21:09:06.015600Z

Oh, faster than I was able to type 😄

mauricio.szabo 2021-01-07T21:09:08.015800Z

Thanks 😄

👍 1
2021-01-07T21:09:30.016200Z

note there is a prep step

2021-01-07T21:14:18.016600Z

@mauricio.szabo ah. sorry i didn't mention the telemetry thing up front

mauricio.szabo 2021-01-07T21:14:37.016900Z

No worries, I already had it disabled

2021-01-07T21:14:51.017200Z

even for dotnet?

2021-01-07T21:15:24.017400Z

> You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

2021-01-07T21:15:37.017800Z

i should update the snippet

mauricio.szabo 2021-01-07T21:16:38.018400Z

Yes, I was trying to compile MAGIC other day so this env was already on my shell config

2021-01-07T21:16:55.018800Z

awesome -- cool that you are trying MAGIC too 🙂

mauricio.szabo 2021-01-07T21:23:07.019600Z

Ok, maybe there's a point to that webview message... I also can't connect from Clover, but I got no error - just nothing happens

2021-01-07T21:23:32.019900Z

ok, so at least it is reproducible

mauricio.szabo 2021-01-07T21:24:55.020600Z

Ok, I'll check what's happening. I hope is an easy fix (well, with VSCode, that's mostly not true but anyway 😄)

mauricio.szabo 2021-01-07T21:25:07.020900Z

Can you open an issue for me, please?

2021-01-07T21:25:35.021100Z

np -- i will do so 🙂

mauricio.szabo 2021-01-07T21:27:47.022Z

At least is not a repl-tooling issue - I can connect from Chlorine

2021-01-07T21:29:11.023600Z

ah interesting. so atm one could use chlorine instead may be?

mauricio.szabo 2021-01-07T21:29:52.024500Z

Yes, until I fix the issue on vscode side, its an alternative

2021-01-07T21:30:28.025300Z

neat -- thanks for taking a look! ...and good luck with the investigation 🙂

mauricio.szabo 2021-01-08T19:52:35.027400Z

Ok, just fixed this issue (https://github.com/mauricioszabo/clover/pull/23), and published a new version. There is still some problems that I need to track (mostly, some garbage showing on the REPL) but it'll need more work (it's a common issue that's on the project for a while)

🎉 1
2021-01-08T22:10:39.027700Z

i was able to verify that evaluation of selection works 🙂 tyvm!

dangercoder 2021-01-07T22:55:33.026200Z

cool, thanks!

👍 1