Fork me on GitHub
#calva
<
2020-03-30
>
otwieracz08:03:52

Hmm. I feel like there is something wrong with Calva's repl. For example, injections from repl profile are not available in it.

pez08:03:21

The lein profile?

otwieracz08:03:46

Well, I am selecting dev profile defined within my setup..

otwieracz08:03:30

In ~/.lein/profiles.clj I've got :user profile defined

otwieracz08:03:45

but it's not available when doing calva-jack-in

pez08:03:42

Calva does not read your user profile. But you can configure calva.myLeinProfiles.

otwieracz08:03:40

OK, I will try.

otwieracz08:03:23

I've selected both dev and user profiles, but still no functions provided via injections.

otwieracz08:03:32

> Executing task in folder hermes_agent: lein update-in :dependencies conj '[nrepl"0.6.0"]' -- update-in :plugins conj '[cider/cider-nrepl"0.23.0"]' -- update-in '[:repl-options :nrepl-middleware]' conj '["cider.nrepl/cider-middleware"]' -- with-profile +dev,+user repl :headless <

pez08:03:22

If you do lein with-profile +dev,+user repl on the command prompt, does that repl have the functions?

otwieracz08:03:58

let me see, something is funny..

otwieracz08:03:42

hmm so it is available in default namespace myapp.core

otwieracz08:03:45

but not in user

otwieracz08:03:20

I thought injections will be available in every namespace.

pez08:03:22

I don't know how it works. But the user ns is magic somehow, so adding functions there might be more widely available.

otwieracz08:03:48

I've tried lein clean, as maybe other nses were already precompiled and i've been struck again with bug that was haunting me for years..

otwieracz08:03:51

Caused by: java.lang.ClassNotFoundException: com.stuartsierra.component.Lifecycle

otwieracz08:03:13

Caused by: java.lang.NoClassDefFoundError: com/stuartsierra/component/Lifecycle

pez09:03:12

Might be something people in the #clojure channel know how to fix. I vaguely recognize having had a similar problem, but can't recall what we did to get rid of it.

otwieracz09:03:27

yeah, yeah. that's definitely not a Calva issue.