failure to found the .nrepl-port file
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 thanks a lot for providing the workaround