mauricioszabo / atom-chlorine

An Atom plugin to integrate with Socket-REPL over Clojure, ClojureScript, ClojureCLR, Joker, Babashka, Clojerl, Lumo and Plank
MIT License
176 stars 17 forks source link

Cannot Connect Embedded when shadow-cljs.edn is not in root folder #205

Open skershaw opened 4 years ago

skershaw commented 4 years ago

This is a problem e.g. in a monorepo.

mauricioszabo commented 4 years ago

Hi, thanks for the info.

In this case, where does shadow-cljs.edn is located? On which folder? Can you send me an example?

Thanks :)

skershaw commented 4 years ago

Unfortunately the repository is private, so I can't share it.

The folder structure is something like:

├── backend
├── frontend
│   ├── .shadow-cljs
│   ├── ...
│   └──  shadow-cljs.edn
...

If it wasn't clear, Chlorine connects as expected when I add a copy of shadow-cljs.edn to the root folder.

Thanks for writing Chlorine! :)

mauricioszabo commented 4 years ago

Nice, I just wanted to see how's the structure so I can maybe find out a better way to implement it. Will check how to do it (there was already some experimental code to capture the runtimes, etc, but they used internal APIs of Shadow-CLJS that are not available anymore. The newer version do need to know where .shadow-cljs is, at least, so I can't re-use code).