xsc / minion

Clojure '-main' helper
Eclipse Public License 1.0
8 stars 2 forks source link

Write `.nrepl-port` to project folder #2

Open Leonidas-from-XIV opened 9 years ago

Leonidas-from-XIV commented 9 years ago

Hi,

It would be great if Minion could write the port of the nREPL (if enabled) to the .nrepl-port file, so editors could directly determine which port to connect to.

xsc commented 9 years ago

Is this necessary? When within the project folder wouldn't you startup your app from the (e.g. Leiningen) REPL which already produces that file?

Leonidas-from-XIV commented 9 years ago

I start the app via lein run, which does not write this file. Which is inconvenient, since I always have to type in the port manually.

xsc commented 9 years ago

Hm, this might break existing workflows. .nrepl-port would have to be overwritten if it exists, meaning the original REPL port is lost when you start the app from within. After shutting it down again, no valid REPL port would be known.

Leonidas-from-XIV commented 9 years ago

Then maybe only write the file if it doesn't already exist and delete the file if it was created explicitly?