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

Try README CLJ call Elisp function demo error #19

Open
stardiviner opened this issue Mar 9, 2020 · 1 comment
Open

Try README CLJ call Elisp function demo error #19

stardiviner opened this issue Mar 9, 2020 · 1 comment

Comments

@stardiviner
Copy link

When I try the README Clojure call Elisp function demo, I got error:

Call Elisp from Clojure:

;; emacs lisp:
(require 'clomacs)
(clomacs-httpd-start)
;; clojure:
(use 'clomacs)
(clomacs-defn emacs-version emacs-version)
(println (emacs-version))
2. Unhandled java.lang.ExceptionInInitializerError
   (No message)

5173d5e1d3884202be02833334f1f23375658f5d-init.clj:    1  user/eval10423/emacs-version
               RestFn.java:  397  clojure.lang.RestFn/invoke
5173d5e1d3884202be02833334f1f23375658f5d-init.clj:    4  user/eval10435
5173d5e1d3884202be02833334f1f23375658f5d-init.clj:    1  user/eval10435
             Compiler.java: 7062  clojure.lang.Compiler/eval
             Compiler.java: 7025  clojure.lang.Compiler/eval
                  core.clj: 3206  clojure.core/eval
                  core.clj: 3202  clojure.core/eval
             enlighten.clj:   84  cider.nrepl.middleware.enlighten/eval-with-enlighten
             enlighten.clj:   78  cider.nrepl.middleware.enlighten/eval-with-enlighten
                  Var.java:  381  clojure.lang.Var/invoke
    interruptible_eval.clj:   91  nrepl.middleware.interruptible-eval/evaluate/fn
                  main.clj:  243  clojure.main/repl/read-eval-print/fn
                  main.clj:  243  clojure.main/repl/read-eval-print
                  main.clj:  261  clojure.main/repl/fn
                  main.clj:  261  clojure.main/repl
                  main.clj:  177  clojure.main/repl
               RestFn.java: 1523  clojure.lang.RestFn/invoke
    interruptible_eval.clj:   84  nrepl.middleware.interruptible-eval/evaluate
    interruptible_eval.clj:   56  nrepl.middleware.interruptible-eval/evaluate
    interruptible_eval.clj:  153  nrepl.middleware.interruptible-eval/interruptible-eval/fn/fn
                  AFn.java:   22  clojure.lang.AFn/run
               session.clj:  190  nrepl.middleware.session/session-exec/main-loop/fn
               session.clj:  189  nrepl.middleware.session/session-exec/main-loop
                  AFn.java:   22  clojure.lang.AFn/run
               Thread.java:  834  java.lang.Thread/run

1. Caused by java.lang.IllegalArgumentException
   No matching ctor found for class clojure.lang.AFunction$1

            Reflector.java:  163  clojure.lang.Reflector/invokeConstructor
           LispReader.java: 1303  clojure.lang.LispReader$EvalReader/invoke
           LispReader.java:  843  clojure.lang.LispReader$DispatchReader/invoke
           LispReader.java:  275  clojure.lang.LispReader/read
           LispReader.java:  206  clojure.lang.LispReader/read
           LispReader.java:  195  clojure.lang.LispReader/read
                   RT.java: 1871  clojure.lang.RT/readString
                   RT.java: 1866  clojure.lang.RT/readString
5173d5e1d3884202be02833334f1f23375658f5d-init.clj:    1  user/eval10423/emacs-version/fn
5173d5e1d3884202be02833334f1f23375658f5d-init.clj:    1  user/eval10423/emacs-version
               RestFn.java:  397  clojure.lang.RestFn/invoke
5173d5e1d3884202be02833334f1f23375658f5d-init.clj:    4  user/eval10435
5173d5e1d3884202be02833334f1f23375658f5d-init.clj:    1  user/eval10435
             Compiler.java: 7062  clojure.lang.Compiler/eval
             Compiler.java: 7025  clojure.lang.Compiler/eval
                  core.clj: 3206  clojure.core/eval
                  core.clj: 3202  clojure.core/eval
             enlighten.clj:   84  cider.nrepl.middleware.enlighten/eval-with-enlighten
             enlighten.clj:   78  cider.nrepl.middleware.enlighten/eval-with-enlighten
                  Var.java:  381  clojure.lang.Var/invoke
    interruptible_eval.clj:   91  nrepl.middleware.interruptible-eval/evaluate/fn
                  main.clj:  243  clojure.main/repl/read-eval-print/fn
                  main.clj:  243  clojure.main/repl/read-eval-print
                  main.clj:  261  clojure.main/repl/fn
                  main.clj:  261  clojure.main/repl
                  main.clj:  177  clojure.main/repl
               RestFn.java: 1523  clojure.lang.RestFn/invoke
    interruptible_eval.clj:   84  nrepl.middleware.interruptible-eval/evaluate
    interruptible_eval.clj:   56  nrepl.middleware.interruptible-eval/evaluate
    interruptible_eval.clj:  153  nrepl.middleware.interruptible-eval/interruptible-eval/fn/fn
                  AFn.java:   22  clojure.lang.AFn/run
               session.clj:  190  nrepl.middleware.session/session-exec/main-loop/fn
               session.clj:  189  nrepl.middleware.session/session-exec/main-loop
                  AFn.java:   22  clojure.lang.AFn/run
               Thread.java:  834  java.lang.Thread/run
@stardiviner
Copy link
Author

java --version
openjdk 11.0.6 2020-01-14
OpenJDK Runtime Environment (build 11.0.6+10)
OpenJDK 64-Bit Server VM (build 11.0.6+10, mixed mode)

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

No branches or pull requests

2 participants