jasongilman / proto-repl

A Clojure Development Environment package for the Atom editor
https://atom.io/packages/proto-repl
MIT License
563 stars 50 forks source link

NullPointerException while typing #202

Open ilyabe opened 7 years ago

ilyabe commented 7 years ago

I open a proto-repl window and on every keystroke, I get the below error, until I have entered some valid Clojure code. Version 1.4.10.

java.lang.NullPointerException: 
                  java.util.regex.Matcher.getTextLength                      Matcher.java: 1283
                          java.util.regex.Matcher.reset                      Matcher.java:  309
                         java.util.regex.Matcher.<init>                      Matcher.java:  229
                        java.util.regex.Pattern.matcher                      Pattern.java: 1093
                   clojure.core/re-matcher/invokeStatic                          core.clj: 4674
                   clojure.core/re-matches/invokeStatic                          core.clj: 4704
                                clojure.core/re-matches                          core.clj: 4704
compliment.sources.ns-mappings/var-symbol?/invokeStatic                   ns_mappings.clj:   10
             compliment.sources.ns-mappings/var-symbol?                   ns_mappings.clj:    7
        compliment.sources.ns-mappings/doc/invokeStatic                   ns_mappings.clj:   91
                     compliment.sources.ns-mappings/doc                   ns_mappings.clj:   88
                                                    ...                                        
                  compliment.core/documentation/iter/fn                          core.clj:   79
                                                    ...                                        
                          clojure.core/seq/invokeStatic                          core.clj:  137
                             clojure.core/interleave/fn                          core.clj: 4186
                                                    ...                                        
                          clojure.core/seq/invokeStatic                          core.clj:  137
                                 clojure.core/drop/step                          core.clj: 2818
                                   clojure.core/drop/fn                          core.clj: 2823
                                                    ...                                        
                          clojure.core/seq/invokeStatic                          core.clj:  137
                        clojure.core/apply/invokeStatic                          core.clj:  641
                       clojure.string/join/invokeStatic                        string.clj:  180
                                    clojure.string/join                        string.clj:  180
             compliment.core/documentation/invokeStatic                          core.clj:   77
                          compliment.core/documentation                          core.clj:   72
                               quote.common/eval6620/fn  form-init5789978943229225830.clj:    1
                                   clojure.core/mapv/fn                          core.clj: 6627
                 clojure.core.protocols/fn/invokeStatic                     protocols.clj:  167
                              clojure.core.protocols/fn                     protocols.clj:  124
                            clojure.core.protocols/fn/G                     protocols.clj:   19
         clojure.core.protocols/seq-reduce/invokeStatic                     protocols.clj:   31
                 clojure.core.protocols/fn/invokeStatic                     protocols.clj:   75
                              clojure.core.protocols/fn                     protocols.clj:   75
                            clojure.core.protocols/fn/G                     protocols.clj:   13
                       clojure.core/reduce/invokeStatic                          core.clj: 6545
                         clojure.core/mapv/invokeStatic                          core.clj: 6618
                                      clojure.core/mapv                          core.clj: 6618
                     quote.common/eval6620/invokeStatic  form-init5789978943229225830.clj:    1
                                  quote.common/eval6620  form-init5789978943229225830.clj:    1
                                                    ...                                        
                         clojure.core/eval/invokeStatic                          core.clj: 3105
                                      clojure.core/eval                          core.clj: 3101
jasongilman commented 7 years ago

It looks like auto completion is having a problem. Do you have the compliment library or the proto-repl library on your project path? It shouldn't do that if they're missing but a workaround would be to add that if it's missing.

Sent from my phone

On Dec 13, 2016, at 7:48 AM, Ilya Bernshteyn notifications@github.com wrote:

I open a proto-repl window and on every keystroke, I get the below error, until I have entered some valid Clojure code:

java.lang.NullPointerException: java.util.regex.Matcher.getTextLength Matcher.java: 1283 java.util.regex.Matcher.reset Matcher.java: 309 java.util.regex.Matcher. Matcher.java: 229 java.util.regex.Pattern.matcher Pattern.java: 1093 clojure.core/re-matcher/invokeStatic core.clj: 4674 clojure.core/re-matches/invokeStatic core.clj: 4704 clojure.core/re-matches core.clj: 4704 compliment.sources.ns-mappings/var-symbol?/invokeStatic ns_mappings.clj: 10 compliment.sources.ns-mappings/var-symbol? ns_mappings.clj: 7 compliment.sources.ns-mappings/doc/invokeStatic ns_mappings.clj: 91 compliment.sources.ns-mappings/doc ns_mappings.clj: 88 ...
compliment.core/documentation/iter/fn core.clj: 79 ...
clojure.core/seq/invokeStatic core.clj: 137 clojure.core/interleave/fn core.clj: 4186 ...
clojure.core/seq/invokeStatic core.clj: 137 clojure.core/drop/step core.clj: 2818 clojure.core/drop/fn core.clj: 2823 ...
clojure.core/seq/invokeStatic core.clj: 137 clojure.core/apply/invokeStatic core.clj: 641 clojure.string/join/invokeStatic string.clj: 180 clojure.string/join string.clj: 180 compliment.core/documentation/invokeStatic core.clj: 77 compliment.core/documentation core.clj: 72 quote.common/eval6620/fn form-init5789978943229225830.clj: 1 clojure.core/mapv/fn core.clj: 6627 clojure.core.protocols/fn/invokeStatic protocols.clj: 167 clojure.core.protocols/fn protocols.clj: 124 clojure.core.protocols/fn/G protocols.clj: 19 clojure.core.protocols/seq-reduce/invokeStatic protocols.clj: 31 clojure.core.protocols/fn/invokeStatic protocols.clj: 75 clojure.core.protocols/fn protocols.clj: 75 clojure.core.protocols/fn/G protocols.clj: 13 clojure.core/reduce/invokeStatic core.clj: 6545 clojure.core/mapv/invokeStatic core.clj: 6618 clojure.core/mapv core.clj: 6618 quote.common/eval6620/invokeStatic form-init5789978943229225830.clj: 1 quote.common/eval6620 form-init5789978943229225830.clj: 1 ...
clojure.core/eval/invokeStatic core.clj: 3105 clojure.core/eval core.clj: 3101 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

ilyabe commented 7 years ago

Adding compliment solved the issue - thanks!