eraserhd / rep

A single-shot nREPL client designed for shell invocation
Eclipse Public License 1.0
94 stars 8 forks source link

Doesn't resolve nrepl port from nested folder, by default #7

Closed nbardiuk closed 3 years ago

nbardiuk commented 3 years ago

Steps to reproduce:

  1. Start repl from root of a project: lein repl
  2. Navigate to nested folder: cd src
  3. Try to evaluate an expression: rep '(+ 1 1)'

Actual output:

.nrepl-port: No such file or directory

Expected output:

2

Observation: Providing default input for port argument fixes it:

> rep -p @.nrepl-port@. '(+ 1 1)'
2
eraserhd commented 3 years ago

Weird, thinko... thanks!