Skip to content

lispy-eval error with CIDER #6

@rvadhavk

Description

@rvadhavk

I tried adding org.clojure/tools.namespace {:mvn/version "1.5.0"} to .../straight/repos/lispy/deps.edn and rebuilding lispy with straight-rebuild-package, but it didn't fix the error. Any ideas on how to fix the issue?

2. Unhandled clojure.lang.Compiler$CompilerException
   Error compiling /Users/rvadhavk/.config/emacs/straight/build/lispy/lispy-clojure.clj at (1:1)
   {:clojure.error/phase :execution,
    :clojure.error/line 1,
    :clojure.error/column 1,
    :clojure.error/source
    "/Users/rvadhavk/.config/emacs/straight/build/lispy/lispy-clojure.clj"}
             Compiler.java: 8177  clojure.lang.Compiler/load
                      REPL:    1  user/eval9768
                      REPL:    1  user/eval9768
             Compiler.java: 7700  clojure.lang.Compiler/eval
    interruptible_eval.clj:  106  nrepl.middleware.interruptible-eval/evaluator/run/fn
    interruptible_eval.clj:  101  nrepl.middleware.interruptible-eval/evaluator/run
               session.clj:  230  nrepl.middleware.session/session-exec/session-loop
        SessionThread.java:   21  nrepl.SessionThread/run

1. Caused by java.io.FileNotFoundException
   Could not locate clojure/tools/namespace/file__init.class,
   clojure/tools/namespace/file.clj or
   clojure/tools/namespace/file.cljc on classpath.

For reference, the deps.edn for my project is just

{:paths ["src"]
 :deps {org.clojure/clojure {:mvn/version "1.12.0"}}}

And this is the snippet I used to install lispy

(use-package lispy
  :straight (lispy
             :type git
             :host github
             :repo "enzuru/lispy")
  :ensure t
  :custom (lispy-compat '(edebug cider))
  :hook ((emacs-lisp-mode . lispy-mode)
         (ielm-mode . lispy-mode)
         (lisp-mode . lispy-mode)
         (lisp-interaction-mode . lispy-mode)
         (geiser-repl-mode . lispy-mode)
         (sly-mrepl-mode . lispy-mode)
         (cider-repl-mode . lispy-mode)
         (clojure-mode . lispy-mode)
         (scheme-mode . lispy-mode)))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions