chlorine-clover

About Chlorine for Atom and Clover for VS Code: https://atom.io/packages/chlorine and https://marketplace.visualstudio.com/items?itemName=mauricioszabo.clover
fabrao 2020-04-01T02:26:57.018400Z

Hello all, I´m using shadow-cljs watch app , I connect to socket repl and embedded too that showed int README, but when try to evaluate some (+ 1 2) it´s response is `Right-hand side of 'instanceof' is not an object` . Sorry my dumb question but what I´m missing?

mauricio.szabo 2020-04-01T17:04:06.018500Z

Wow, I never saw that specific error.... Can you evaluate other things, like a single number, etc?

fabrao 2020-04-01T19:06:38.018700Z

realy?

fabrao 2020-04-01T19:10:09.018900Z

in evaluation of string and number is ok

fabrao 2020-04-01T19:13:01.019300Z

🙂 I got this work (js/console.log "Teste")

mauricio.szabo 2020-04-01T19:14:47.019500Z

Can you evaluate only +, for example? (because I'm working right now on ClojureScript, and I'm not seeing these issues... maybe its some non-printable char on the editor, or something... I have no idea....)

fabrao 2020-04-01T19:15:47.019700Z

#object [cljs$core$_PLUS_]

mauricio.szabo 2020-04-01T19:16:50.019900Z

Okay, so this is what is expected... Are you using evaluate-top-block, or which command? Or selecting it and evaluating?

fabrao 2020-04-01T19:17:33.020100Z

I used new evaluate selection

fabrao 2020-04-01T19:18:58.020300Z

in evaluate-top-block this problem happen

fabrao 2020-04-01T19:45:53.020500Z

with ctrl-; s same problem

mauricio.szabo 2020-04-01T20:21:57.020700Z

Does your code is some private project, or is it an open-source one that I can look at and debug?

mauricio.szabo 2020-04-01T21:26:54.020900Z

Also, did you try to turn on "Enable experimental features"?

mauricio.szabo 2020-04-01T21:27:21.021100Z

(Also, what's your operating system, shadow-cljs version, Atom and Chlorine version, please?)

fabrao 2020-04-01T23:43:15.029100Z

It´s close project. I´m using Windows 10 Pro, shadow-cljs "2.8.74", Atom 1.42.0, Chlorine 0.4.16

mauricio.szabo 2020-04-02T16:19:46.036900Z

Try to upgrade Shadow-CLJS to at least 2.8.8x (I'm currently using 2.8.83). There were some older versions that gave me REPL and compilation problems.

mauricio.szabo 2020-04-02T16:20:35.037100Z

Also, if you still have these problems on shadow 2.8.83, try to enable "Experimental features" on the plug-in settings. It'll probably be the default soon-ish and it fixes also some problems with CLJS evaluation

mauricio.szabo 2020-04-01T22:18:41.024500Z

Just published a new version of Chlorine. It adds an "alpha support" for nREPL. Don't panic: Chlorine will always support a Socket REPL. This new code is to add support for other environments (Hy and Racket, for example) and also to make it easier for people that come from lein and boot. It also will also work as a "fallback" where UNREPL fails (so I can somewhat fix the bug that @jlmr posted here as fast as possible).

mauricio.szabo 2020-04-01T22:21:37.027300Z

I have not battle-tested this implementation yet, so expect bugs if you use nREPL (for example, exceptions are not printing the stacktraces with this implementation, yet) 😄. But this probably solves some problems with ClojureCLR and Arcadia that some people were experiencing, like outputs appearing while evaluating things and other issues.

seancorfield 2020-04-01T22:30:49.028200Z

Just to check @mauricio.szabo: if you don't use this feature, it won't inject any new code into the REPL and it won't require any additional dependencies in projects?

seancorfield 2020-04-01T22:31:27.029Z

(I'm very strongly against tools that inject a lot of code into my running processes, especially since I sometimes connect Chlorine to QA or even production)

mauricio.szabo 2020-04-01T23:58:08.029600Z

No, it won't inject anything

❤️ 2