atom-nrepl icon indicating copy to clipboard operation
atom-nrepl copied to clipboard

failure to found the .nrepl-port file

Open berdario opened this issue 10 years ago • 1 comments

I had another project folder open, and I opened a clojure file (inside a proper lein project) outside of that I tried to eval code, after starting the nrepl, but it complained that it couldn't find the .nrepl-port file

I added the folder containing the project.clj as a project folder, same problem

I removed the other project folder that I had open: same problem again

To get atom-nrepl working, I had to close atom, and reopen it... only then it correctly found the file

I guess that the simplest approach would be not to rely on the project folder (also because there might be more than 1 of them), but simply... starting from the parent folder of the file currently opened, go recursively up in the hierarchy, until a .nrepl-port file is found

berdario avatar Aug 01 '15 14:08 berdario

@berdario thanks a lot for providing the workaround

Dimagog avatar Jan 07 '16 05:01 Dimagog