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
athomasoriginal 2020-01-12T04:40:56.024900Z

🦜

Ben 2020-01-12T12:01:54.027400Z

Hi everyone! I would like to tell chlorine explicitly where to find shadow-cljs.edn (it’s not at the root of the project I am opening in Atom), is there a way to do that?

Ben 2020-01-12T12:03:25.028300Z

… this is a bit like the previous question, I notice, but I am looking for a different solution

Ben 2020-01-12T12:18:14.029600Z

And a second question: I would like to jump to symbol definitions in ClojureScript (“Go To Var Definition”), but I understood that Chlorine does not support this, is that correct? Or am I doing something wrong?

mauricio.szabo 2020-01-12T12:43:15.030600Z

Unfortunately the answer is no for both cases. I'm thinking about changing the first implementation, and add support for the second.

mauricio.szabo 2020-01-12T12:49:37.032700Z

On the second case, I was thinking about using orchard as a helper library, but as Chlorine started to support more repl implementations, I'll add a simpler implementation

mauricio.szabo 2020-01-12T13:01:31.032800Z

Just to be sure: the new implementation I'm thinking will not use shadow-cljs.edn at all - it'll try to find compilation targets using the shadow API. I think this can solve more than one issue with the current implementation.

mauricio.szabo 2020-01-12T13:01:41.033Z

Do you think it would help you?

2020-01-12T14:37:01.036300Z

@ben477 if you can find a reliably working atom plugin that handles ctags, i have some code that will generate a ctags file for clojure / clojurescript projects (including dependencies). iiuc, the atom-built-in support for "jump-to-definition"-ish things has unfortunately not been working very well for quite some time. i wrote up some notes here: https://github.com/atom/symbols-view/issues/159#issuecomment-544118286 it's possible that: https://github.com/atom-ide-community/atom-ide-definitions might work (possibly in combination with external ctags files), but i haven't tried it

Ben 2020-01-12T18:33:45.036900Z

Thanks for your replies! I am not sure. My situation is like this: the repository contains the web app (which has the shadow-cljs.edn) as a subdirectory, but I would really prefer to have the repo be my “Atom project”

Ben 2020-01-12T18:35:17.037100Z

One thing I might be able to do is programmatically change the Atom project root before firing up the REPL, and resetting it afterwards, because as far as I can see, once shado-cljs.edn has been found, everything is “good to go”

Ben 2020-01-12T18:39:21.038200Z

@sogaiu, thank you, I was hoping for a repl-based solution though …

2020-01-12T18:40:52.039500Z

perhaps @mauricio.szabo will come up with something appropriate before long :)

đź‘Ť 2