Fork me on GitHub
#cider
<
2020-03-30
>
Bardia Pourvakil03:03:29

Anyone have any idea why I’m not able to access my namespaces in my CIDER nrepl session into my shadow-cljs project

dpsutton03:03:49

How are you trying to access them? Also, browser or node? If browser have you loaded the app in the browser and if node have you started a node process?

Bardia Pourvakil03:03:52

I’m targeting my :app

Bardia Pourvakil03:03:56

It’s being watched

Bardia Pourvakil04:03:02

And hot reloading works

Bardia Pourvakil04:03:16

And alerts and console logs work

Bardia Pourvakil04:03:33

But for whatever reason I can’t access my namespace to test state etc

dpsutton04:03:45

It’s a test namespace? Is it on the class path? Do you have a repl buffer open?

Bardia Pourvakil04:03:09

It’s the main app namespace

Bardia Pourvakil04:03:31

You can check out my code here

Bardia Pourvakil04:03:36

The repl buffer is open

Bardia Pourvakil04:03:21

Nvm it worked now I was trying to use in-ns and use

Bardia Pourvakil04:03:27

But using just ns worked

Bardia Pourvakil04:03:39

Do you know why that would be so ?

dpsutton04:03:02

what command did you try and which actually worked?

dpsutton04:03:44

just a heads up. i cloned your repo and you've got symlinks for unsaved files in your src directory https://github.com/Bardia95/bardia-pourvakil/tree/master/src/bardia_pourvakil

Bardia Pourvakil04:03:08

I was trying (use ‘bardia-pourvakil.core) and (in-ns ‘bardia-pourvakil.core) and (require :reload ‘bardia-pourvakil.core)

Bardia Pourvakil04:03:16

Ahh thanks will remove those

Bardia Pourvakil04:03:43

(ns bardia-pourvakil.core) worked

dpsutton04:03:50

(require 'bardia-pourvakil.core :reload)

dpsutton04:03:02

then (in-ns '...)

Bardia Pourvakil04:03:45

Ahh cool thanks

Bardia Pourvakil04:03:50

Sorry I’m super noob to clojure

dpsutton04:03:34

no worries 🙂