-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tab completion after typing a period in a namespace triggers an NPE #24
Comments
This seems to be an issue with JDK 9 specifically - the above works fine on Java 1.8.0 patch 31. |
A test case to work on. As in the below repl "sun.boot.class.path" "java.ext.dirs" in core.clj line 66 are causing NPE. Removing them makes the tests to pass. Test case : (is (= '("clojure.core" "clojure.core.ArrayChunk" "clojure.core.ArrayManager" "clojure.core.IVecImpl" "clojure.core.Vec" "clojure.core.VecNode" "clojure.core.VecSeq" "clojure.core.protocols" "clojure.core.protocols.InternalReduce") (completions "clojure.co")))
$ clj
Clojure 1.9.0
user=> (import [java.io File])
java.io.File
user=> (for [prop ["sun.boot.class.path" "java.ext.dirs" "java.class.path"]
path (.split (System/getProperty prop) File/pathSeparator)] path)
NullPointerException user/eval171/iter--165--172/fn--173 (NO_SOURCE_FILE:5)
user=> (.split (System/getProperty "sun.boot.class.path") File/pathSeparator)
NullPointerException user/eval192 (NO_SOURCE_FILE:7)
user=> (.split (System/getProperty "java.ext.dirs") File/pathSeparator)
NullPointerException user/eval194 (NO_SOURCE_FILE:8)
user=> (.split (System/getProperty "java.class.path") File/pathSeparator)
#object["[Ljava.lang.String;" 0x78de58ea "[Ljava.lang.String;@78de58ea"] |
http://www.oracle.com/technetwork/java/javase/9-relnote-issues-3704069.html
#23 reports the other path |
PR #25 for this issue |
Bit of an oddly specific bug, I know.
TL;DR - if I type
clojure.co
and then try to tab-complete, an NPE is triggered. Tab-completion works fine if I hit tab atcloj
or atclojure.core/
, but after that first period and before the slash I'll get NPE'd. I ran into this on a project and then was able to reproduce outside of a project context.Now the expected behavior would be for tab completion to work the way it did when I hit tab at
cloj
, i.e. to show me the list of namespaces that are potential results for what I've typed so far.Full command history and stacktrace:
Originally reported as a Leiningen issue here: technomancy/leiningen#2380
The text was updated successfully, but these errors were encountered: