Open burinc opened 10 months ago
hi @burinc , thanks for reporting this.
I interpret that error as an extra argument was somewhat passed to ob-clojure-eval-with-cider
.
I cannot reproduce this, but if you get the latest version of the script and then redefine the following function:
(defun ob-clojure-extras-setup-shadow-cljs-project-if-possible (orig-fun &rest args)
(if-let* ((headers (nth 1 args))
(_ (equal "cljs" (alist-get :target headers)))
(cider-default-cljs-repl 'shadow)
(cider-shadow-default-options
(ob-clojure-extras-cider-run-projectless-cljs-repl (alist-get :shadowcljs-type headers)
(alist-get :deps headers)
(alist-get :shadowcljs-extra headers)))
(_ (message "what is in here? %S" args)))
(progn
(while (not (car-safe (nrepl-extract-ports (cider--file-path "."))))
(message "Waiting for shadow-cljs to connect...")
(sleep-for 1))
(cider-connect-cljs (list
:host "localhost"
:port (car (nrepl-extract-ports (cider--file-path ".")))
:project-dir (concat "~/" (file-relative-name "." "~"))
:cljs-repl-type 'shadow))
(apply orig-fun args))
(apply orig-fun args)))
maybe we will find out the problem?
Thanks @ag91
I will give it a try and report back the result.
Thanks
From the readme, I try following the steps and kept getting the following error:
I am using Emacs 28.2 with Doom emacs. Any idea that I may have missed?
Before these changes, I was able to evaluate the Clojure code with the following code block: