Fork me on GitHub
#conjure
<
2022-07-21
>
Martynas M13:07:49

Hey. I can't understand this error. It says that it can't find a namespace but I started REPL in the leiningen directory and only then opened the buffer. What does that mean? It opens just fine on Spacemacs. My import looks like this:

(ns api.main
  (:require [com.stuartsierra.component :as component]
 ...
))
This happens when I try to evaluate the whole buffer with <localleader>eb. I think I'm connected to the REPL that I started via :Lein but it doesn't allow to evaluate the namespace :thinking_face:

Olical11:07:16

You're connected to babashka which is started for you automatically. If your lein repl is running you should be able to use ,cf to connect to the lein repl.

Olical11:07:45

This can happen if you open a clojure file BEFORE starting your repl and forget to switch connections from the default babashka fallback to the new REPL you just started.

Martynas M11:07:41

Ok. Thanks. I'll try that.