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

cider.nrepl/delayed-handlers empty with AOT #657

Closed
deas opened this issue Nov 5, 2019 · 0 comments
Closed

cider.nrepl/delayed-handlers empty with AOT #657

deas opened this issue Nov 5, 2019 · 0 comments

Comments

@deas
Copy link

deas commented Nov 5, 2019

Cider-Nrepl is part of our app which we ship AOT compiled. At this time, we use version 0.22.4.

PS: Current workaround is to use:

:uberjar-exclusions [#"cider/nrepl.*\.class$"]

In project.clj.

Expected behavior

Fully AOT compiled cider working.

Actual behavior

cider.nrepl/delayed-handlers is empty. Calls to cider middleware throw NPE

java.lang.NullPointerException
        at clojure.core$deref_future.invokeStatic(core.clj:2300)
        at clojure.core$deref.invokeStatic(core.clj:2320)
        at clojure.core$deref.invoke(core.clj:2306)
        at cider.nrepl$wrap_stacktrace$fn__7449.invoke(nrepl.clj:391)
        at nrepl.middleware$wrap_conj_descriptor$fn__5254.invoke(middleware.clj:16)

Steps to reproduce the problem

Make sure to use Java 8.

lein uberjar at commit 2ca797e94a19ab0feaaa7780e9fa9b311389e3fe of gorilla-notebook.

Run the application:

java -jar target/gorilla-notebook-standalone.jar

and go here.

Raise exception in a code cell:

(.toString nil)

Environment & Version information

cider-nrepl version

0.22.4

Java version

1.8

Operating system

Any

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

1 participant