trptcolin / reply

REPL-y: A fitter, happier, more productive REPL for Clojure.
Eclipse Public License 1.0
337 stars 44 forks source link

tab completion chokes on "/<TAB>" #165

Closed Martin-S-Weber closed 8 years ago

Martin-S-Weber commented 8 years ago

I assume it tries to interpret the symbol / as a namespace separator, ends up finding a nil namespace on the symbol and complains like so:

NullPointerException clojure.lang.Symbol.intern (Symbol.java:59)

How to reproduce:

mkdir /tmp/clean-dir
cd /tmp/clean-dir
lein repl
type: /<TAB>

you should see above error in your terminal like so:

$ lein repl
nREPL server started on port 36876 on host 127.0.0.1 - nrepl://127.0.0.1:36876
REPL-y 0.3.5, nREPL 0.2.6
Clojure 1.6.0
OpenJDK 64-Bit Server VM 1.8.0_66-b17
    Docs: (doc function-name-here)
          (find-doc "part-of-name-here")
  Source: (source function-name-here)
 Javadoc: (javadoc java-object-or-class-here)
    Exit: Control+D or (exit) or (quit)
 Results: Stored in vars *1, *2, *3, an exception in *e

user=> /NullPointerException   clojure.lang.Symbol.intern (Symbol.java:60)

confirmed broken with 0.3.8-SNAPSHOT (as of "now") as well:

reply $ lein trampoline run
REPL-y 0.3.8-SNAPSHOT, nREPL 0.2.8
Clojure 1.4.0
OpenJDK 64-Bit Server VM 1.8.0_66-b17
        Exit: Control+D or (exit) or (quit)
    Commands: (user/help)
        Docs: (doc function-name-here)
              (find-doc "part-of-name-here")
Find by Name: (find-name "part-of-name-here")
      Source: (source function-name-here)
     Javadoc: (javadoc java-object-or-class-here)
    Examples from clojuredocs.org: [clojuredocs or cdoc]
              (user/clojuredocs name-here)
              (user/clojuredocs "ns-here" "name-here")
user=> /NullPointerException   clojure.lang.Symbol.intern (Symbol.java:60)
trptcolin commented 8 years ago

Thanks for pointing this out! There was an issue in clojure-complete that was actually released last year, but I forgot to bump the dependency. Fixed!