Fork me on GitHub
#clr
<
2021-01-07
>
dangercoder20:01:59

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.

sogaiu21:01:52

@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.szabo21:01:11

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

sogaiu21:01:00

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

mauricio.szabo21:01:16

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

sogaiu21:01:36

ok is there somewhere else i might look for clues?

mauricio.szabo21:01:58

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?

sogaiu21:01:14

i am trying via an ubuntu flavor

sogaiu21:01:39

this is with the latest alpha for clojureclr

mauricio.szabo21:01:42

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

sogaiu21:01:53

i started the clojure clr repl using the invocation above

sogaiu21:01:56

at the repl

sogaiu21:01:09

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

sogaiu21:01:32

ah i have some steps for installing

sogaiu21:01:35

clojure clr

sogaiu21:01:36

just a sec

mauricio.szabo21:01:55

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

sogaiu21:01:56

method 2 is quicker

mauricio.szabo21:01:06

Oh, faster than I was able to type 😄

mauricio.szabo21:01:08

Thanks 😄

👍 3
sogaiu21:01:30

note there is a prep step

sogaiu21:01:18

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

mauricio.szabo21:01:37

No worries, I already had it disabled

sogaiu21:01:51

even for dotnet?

sogaiu21:01:24

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

sogaiu21:01:37

i should update the snippet

mauricio.szabo21:01:38

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

sogaiu21:01:55

awesome -- cool that you are trying MAGIC too 🙂

mauricio.szabo21:01:07

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

sogaiu21:01:32

ok, so at least it is reproducible

mauricio.szabo21:01:55

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

mauricio.szabo21:01:07

Can you open an issue for me, please?

sogaiu21:01:35

np -- i will do so 🙂

mauricio.szabo21:01:47

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

sogaiu21:01:11

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

mauricio.szabo21:01:52

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

sogaiu21:01:28

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

dangercoder22:01:33

cool, thanks!

👍 3
mauricio.szabo19:01:35

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)

🎉 3
sogaiu22:01:39

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