Skip to content
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

NumberFormatException on handle-pprint-fn #2123

Closed
TimoFreiberg opened this issue Dec 8, 2017 · 7 comments
Closed

NumberFormatException on handle-pprint-fn #2123

TimoFreiberg opened this issue Dec 8, 2017 · 7 comments

Comments

@TimoFreiberg
Copy link

TimoFreiberg commented Dec 8, 2017

Expected behavior

No exceptions when editing my buffer

Actual behavior

When moving my cursor over a symbol defined in the same let-block, I get a NumberFormatException popup

Steps to reproduce the problem

Load this file into CIDER, move cursor to 8:25 (onto children). I get the following exception popup:

1. Unhandled java.lang.NumberFormatException
   null

              Integer.java:  614  java.lang.Integer/parseInt
              Integer.java:  770  java.lang.Integer/parseInt
                  java.clj:   81  cider.nrepl.middleware.util.java/javadoc-url
                  java.clj:   72  cider.nrepl.middleware.util.java/javadoc-url
                  java.clj:  232  cider.nrepl.middleware.util.java/member-info
                  java.clj:  209  cider.nrepl.middleware.util.java/member-info
                  java.clj:  262  cider.nrepl.middleware.util.java/resolve-member/fn
                  core.clj: 2646  clojure.core/map/fn
              LazySeq.java:   40  clojure.lang.LazySeq/sval
              LazySeq.java:   49  clojure.lang.LazySeq/seq
                   RT.java:  521  clojure.lang.RT/seq
                  core.clj:  137  clojure.core/seq
                  core.clj: 2700  clojure.core/filter/fn
              LazySeq.java:   40  clojure.lang.LazySeq/sval
              LazySeq.java:   56  clojure.lang.LazySeq/seq
                   RT.java:  521  clojure.lang.RT/seq
                   RT.java:  938  clojure.lang.RT/nthFrom
                   RT.java:  897  clojure.lang.RT/nth
                  core.clj: 4844  clojure.core/distinct/step/fn/fn
                  core.clj: 4844  clojure.core/distinct/step/fn
              LazySeq.java:   40  clojure.lang.LazySeq/sval
              LazySeq.java:   49  clojure.lang.LazySeq/seq
                   RT.java:  521  clojure.lang.RT/seq
                  core.clj:  137  clojure.core/seq
                  core.clj:  137  clojure.core/seq
                  java.clj:  283  cider.nrepl.middleware.util.java/resolve-symbol
                  java.clj:  266  cider.nrepl.middleware.util.java/resolve-symbol
                  info.clj:   76  cider.nrepl.middleware.info/info-clj
                  info.clj:   64  cider.nrepl.middleware.info/info-clj
                  info.clj:  113  cider.nrepl.middleware.info/info
                  info.clj:  108  cider.nrepl.middleware.info/info
                  info.clj:  259  cider.nrepl.middleware.info/eldoc-reply
                  info.clj:  257  cider.nrepl.middleware.info/eldoc-reply
        error_handling.clj:  156  cider.nrepl.middleware.util.error-handling/eval8704/fn
              MultiFn.java:  233  clojure.lang.MultiFn/invoke
                  info.clj:  287  cider.nrepl.middleware.info/handle-info
                  info.clj:  286  cider.nrepl.middleware.info/handle-info
                  Var.java:  383  clojure.lang.Var/invoke
                 nrepl.clj:  202  cider.nrepl/wrap-info/fn
            middleware.clj:   22  clojure.tools.nrepl.middleware/wrap-conj-descriptor/fn
                 nrepl.clj:  221  cider.nrepl/wrap-inspect/fn
            middleware.clj:   22  clojure.tools.nrepl.middleware/wrap-conj-descriptor/fn
                 nrepl.clj:  392  cider.nrepl/wrap-trace/fn
            middleware.clj:   22  clojure.tools.nrepl.middleware/wrap-conj-descriptor/fn
                 nrepl.clj:  365  cider.nrepl/wrap-stacktrace/fn
            middleware.clj:   22  clojure.tools.nrepl.middleware/wrap-conj-descriptor/fn
                 nrepl.clj:  188  cider.nrepl/wrap-format/fn
            middleware.clj:   22  clojure.tools.nrepl.middleware/wrap-conj-descriptor/fn
                 nrepl.clj:  429  cider.nrepl/wrap-version/fn
            middleware.clj:   22  clojure.tools.nrepl.middleware/wrap-conj-descriptor/fn
            middleware.clj:  197  refactor-nrepl.middleware/wrap-refactor/fn
            middleware.clj:   22  clojure.tools.nrepl.middleware/wrap-conj-descriptor/fn
             load_file.clj:   79  clojure.tools.nrepl.middleware.load-file/wrap-load-file/fn
            middleware.clj:   22  clojure.tools.nrepl.middleware/wrap-conj-descriptor/fn
                 nrepl.clj:  410  cider.nrepl/wrap-tracker/fn
            middleware.clj:   22  clojure.tools.nrepl.middleware/wrap-conj-descriptor/fn
                 nrepl.clj:  104  cider.nrepl/wrap-pprint/fn
            middleware.clj:   22  clojure.tools.nrepl.middleware/wrap-conj-descriptor/fn
             pr_values.clj:   22  clojure.tools.nrepl.middleware.pr-values/pr-values/fn
            middleware.clj:   22  clojure.tools.nrepl.middleware/wrap-conj-descriptor/fn
                 nrepl.clj:  375  cider.nrepl/wrap-test/fn
            middleware.clj:   22  clojure.tools.nrepl.middleware/wrap-conj-descriptor/fn
                pprint.clj:   50  cider.nrepl.middleware.pprint/handle-pprint-fn
                pprint.clj:   45  cider.nrepl.middleware.pprint/handle-pprint-fn
                  Var.java:  383  clojure.lang.Var/invoke
                 nrepl.clj:   85  cider.nrepl/wrap-pprint-fn/fn
            middleware.clj:   22  clojure.tools.nrepl.middleware/wrap-conj-descriptor/fn
               session.clj:  192  clojure.tools.nrepl.middleware.session/session/fn
            middleware.clj:   22  clojure.tools.nrepl.middleware/wrap-conj-descriptor/fn
                server.clj:   19  clojure.tools.nrepl.server/handle*
                server.clj:   16  clojure.tools.nrepl.server/handle*
                server.clj:   28  clojure.tools.nrepl.server/handle/fn
                  core.clj: 1938  clojure.core/binding-conveyor-fn/fn
                  AFn.java:   18  clojure.lang.AFn/call
           FutureTask.java:  264  java.util.concurrent.FutureTask/run
   ThreadPoolExecutor.java: 1167  java.util.concurrent.ThreadPoolExecutor/runWorker
   ThreadPoolExecutor.java:  641  java.util.concurrent.ThreadPoolExecutor$Worker/run
               Thread.java:  844  java.lang.Thread/run

Environment & Version information

CIDER version information

;; CIDER 0.16.0snapshot (package: 20171126.150), nREPL 0.2.12
;; Clojure 1.8.0, Java 9

Lein/Boot version

Leiningen 2.8.1 on Java 9 OpenJDK 64-Bit Server VM

Emacs version

GNU Emacs 25.3.1

Operating system

Arch Linux

@bbatsov
Copy link
Member

bbatsov commented Dec 9, 2017

Can you enable nREPL message logging and paste here what triggers the error exactly? (see http://cider.readthedocs.io/en/latest/troubleshooting/)

@xiongtx
Copy link
Member

xiongtx commented Dec 10, 2017

Cannot reproduce. Try cider-refresh and see if the problem continues.

@bbatsov
Copy link
Member

bbatsov commented Dec 10, 2017

@xiongtx Did you try with Java 9? I noticed another similar bug report, again on Java 9 - #2094

@xiongtx
Copy link
Member

xiongtx commented Dec 10, 2017

You're right, I'm using JDK 8. Java 9 is not readily available for Fedora 24, so if someone else wants to reproduce, that'd be good.

@TimoFreiberg
Copy link
Author

TimoFreiberg commented Dec 11, 2017

@TimoFreiberg
Copy link
Author

TimoFreiberg commented Dec 12, 2017

Not sure whether this belongs in this issue, but since yesterday I also no longer get stacktrace popups. The stacktrace is printed in the REPL instead (which is quite annoying).
I switched my default JDK back to 8, everything works again.

Edit: Only the base exception is printed in the REPL, below that comes something like:
https://gist.github.com/TimoFreiberg/9785fbcc39e668c5de0d2797b9f83d6f

@bbatsov
Copy link
Member

bbatsov commented Dec 17, 2017

Yeah, just found the bug clojure-emacs/cider-nrepl#462

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants