Fork me on GitHub
#cider
<
2020-03-30
>
bardiapourvakil03: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?

bardiapourvakil03:03:52

I’m targeting my :app

bardiapourvakil03:03:56

It’s being watched

bardiapourvakil04:03:02

And hot reloading works

bardiapourvakil04:03:16

And alerts and console logs work

bardiapourvakil04: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?

bardiapourvakil04:03:09

It’s the main app namespace

bardiapourvakil04:03:31

You can check out my code here

bardiapourvakil04:03:36

The repl buffer is open

bardiapourvakil04:03:21

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

bardiapourvakil04:03:27

But using just ns worked

bardiapourvakil04: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

bardiapourvakil04:03:08

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

bardiapourvakil04:03:16

Ahh thanks will remove those

bardiapourvakil04:03:43

(ns bardia-pourvakil.core) worked

dpsutton04:03:50

(require 'bardia-pourvakil.core :reload)

dpsutton04:03:02

then (in-ns '...)

bardiapourvakil04:03:45

Ahh cool thanks

bardiapourvakil04:03:50

Sorry I’m super noob to clojure

dpsutton04:03:34

no worries 🙂