atom-editor

Using the Atom editor with Clojure(Script) - tips, questions, plugins
Edward Hughes 2020-05-18T07:00:00.002800Z

Has anyone had Chlorine suddenly refuse to bring up the prompt for connecting to a REPL? My editor is not displaying the dialog box when I send it the shortcut to connect, even though the keybinding resolver registers the command.

mauricio.szabo 2020-05-18T12:59:59.003300Z

@edward.hughes1911 Hi, what's your operating system / Atom version?

Edward Hughes 2020-05-18T13:26:02.004500Z

@mauricio.szabo Atom 1.46.0 on Manjaro Linux 20.0.1. Thanks for the handy tool, btw 🙂.

mauricio.szabo 2020-05-18T13:27:26.005100Z

Thanks! Have you installed it with the package manager, or with some binary on http://atom.io site?

mauricio.szabo 2020-05-18T13:29:30.007Z

(I remember having a similar problem on MacOSX, but after issuing the command to connect to REPL, it didn't open the dialog box and also it removed the command from the menu)

Edward Hughes 2020-05-18T13:30:30.007800Z

I installed it from the Arch community repository using Pacman.

mauricio.szabo 2020-05-18T13:32:38.008900Z

Can you test it with an official release? I remember that when I used Arch some packages did not work correctly with when I installed Atom with pacman

mauricio.szabo 2020-05-18T13:34:04.010500Z

(also, just tested with a fresh release on Atom on Ubuntu 18.02, it seem it's able to connect. I'll lpok a little bit to see if I can find any issue, though)

mauricio.szabo 2020-05-18T13:35:06.011800Z

And also, if you can, open the devtools on Atom (CTRL+SHIFT+i) and try to run the command again, see if something appears on the devtools console 🙂

Edward Hughes 2020-05-18T13:40:38.013200Z

I was going to give a fresh install a go, but the fact that the REPL had been working previously made me think it might have been something else. Just tried invoking a connection with the browser dev tools open, doesn't seem to be reacting at all, only error is this:

Edward Hughes 2020-05-18T13:41:13.014100Z

Give me a minute to try installing from the site.

mauricio.szabo 2020-05-18T14:11:01.017800Z

Sometimes Atom becomes really lost with some internal state strangeness... try to open the editor with --safe flag, then quit all instances, then start again

mauricio.szabo 2020-05-18T14:11:44.019200Z

Or maybe while on --safe, disable all installed packages, then restart normally, and re-activate one by one

mauricio.szabo 2020-05-18T14:12:43.020100Z

(I know, it's not ideal the way things are on Atom, but with Github being acquired by Microsoft... we know what we can expect 😞)

Edward Hughes 2020-05-18T14:15:16.022100Z

So, I tried with a fresh install of Atom using Flatpak, which appears to be on 1.45.0, and I'm still not able to get the prompt to connect. That appears to be the only solution that doesn't involve making my own package. I'm going to try connecting to a REPL using the command prompt, and see if that works and if commands to evaluate forms do anything.

mauricio.szabo 2020-05-18T14:17:52.022900Z

Wait, the prompt is appearing, but nothing is connecting?

Edward Hughes 2020-05-18T14:20:22.025100Z

No, the prompt was not appearing. I meant using Atom's function to search for commands to invoke it without the shortcut, though should it not show the keybinding I have mapped for it on the right of this element?

Edward Hughes 2020-05-18T14:22:17.025700Z

Ah, so it doesn't want to connect either. This is what I get upon clicking in the previous image to get the dialog and supply the correct port:

mauricio.szabo 2020-05-18T14:30:39.026300Z

Ah, ok!

mauricio.szabo 2020-05-18T14:30:50.026600Z

I'm just fixing this bug right now 🙂

mauricio.szabo 2020-05-18T14:31:04.026900Z

Trying to connect to a ClojureScript REPL, right?

mauricio.szabo 2020-05-18T14:33:04.028100Z

(to be honest, I do need to have a CI that connects on multiple Clojure implementations... currently I'm only doing the "happy path" - the one that connects on Clojure, evaluates some code, then connects to shadow-cljs and evaluates other things)

Edward Hughes 2020-05-18T14:44:24.031500Z

Yeah was trying to use it with lumo, CLJ works fine, commands properly evaluated and all. Good to know. Nice thing about this community is it's small enough that if my tooling breaks I can just tell my boss that and I just had a chat with the guy who wrote it and he's working on a fix 😀.

mauricio.szabo 2020-05-18T14:49:11.032900Z

Hahahaham yes 😄. Will publish a fix soon, just adding some documentation 🙂

Edward Hughes 2020-05-18T15:16:15.034500Z

Awesome! Would you happen to have any suggestions as to what to do about a Clojurescript REPL in the meantime? I was tempted to use the opportunity to fiddle with Emacs, but I just started this role and am a little hyper-conscious of delivering on time.

mauricio.szabo 2020-05-18T15:17:37.035200Z

Just wait a little bit 😄 https://github.com/mauricioszabo/atom-chlorine/pull/185

❤️ 1
mauricio.szabo 2020-05-18T15:17:57.035800Z

As soon as the CI runs, I'll publish a new version (considering that the tests pass 😄)

mauricio.szabo 2020-05-18T15:27:05.036100Z

Ok, published. Tested here with lumo, seems to work 🙂

Edward Hughes 2020-05-18T15:56:25.036300Z

Oh sweet