Namespaces with `*` can't be found.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Reproduce the failure with bb repl-clj and bb repl-cljs using the test-nbb-ns repository and compare the working namespace files with the test_cljc.cljc and test_cljs.cljs files under .nbb/.cache/.../nbb-deps. Trace how those generated files are discovered and loaded. Done means namespace symbols containing * can be required and called in both REPL modes, matching Clojure behavior.
Written by the indexing model from the issue text.
Description
version
v1.3.196
platform
macOS Sequoia 15.3.2
problem
Namespace symbols with * don't seem to work.
$ bb repl-clj
Clojure 1.12.0
user=> (require '[test-nbb-ns.test-cljc :as test-cljc])
nil
user=> (test-cljc/hello)
"Hello from test-nbb-ns.test-cljc!"
nil
user=> (require '[test-nbb-ns.*test-cljc* :as *test-cljc*])
nil
user=> (*test-cljc*/hello)
"Hello from test-nbb-ns.*test-cljc*!"
nil
$ bb repl-cljs
Welcome to nbb v1.3.196!
user=> (require '[test-nbb-ns.test-cljc :as test-cljc])
nil
user=> (test-cljc/hello)
"Hello from test-nbb-ns.test-cljc!"
nil
user=> (require '[test-nbb-ns.*test-cljc* :as *test-cljc*])
"Error: Could not find namespace: test-nbb-ns.*test-cljc*"
user=> (require '[test-nbb-ns.test-cljs :as test-cljs])
nil
user=> (test-cljs/hello)
"Hello from test-nbb-ns.test-cljs!"
nil
user=> (require '[test-nbb-ns.*test-cljs* :as *test-cljs*])
"Error: Could not find namespace: test-nbb-ns.*test-cljs*"
There may be other characters which are allowed in symbols that don't work, but I haven't tested those.
https://clojure.org/reference/reader#_symbols
repro
https://github.com/commiterate/test-nbb-ns
This is using :local/root "." in nbb.edn to defer to deps.edn.
The generated .nbb has files for all the namespaces.
.nbb
└── .cache
└── 234d643b78573b567a783af269377ad0cd729227
├── deps.edn
├── nbb-deps
│ ├── META-INF
│ │ └── MANIFEST.MF
│ └── test_nbb_ns
│ ├── *test_cljc*.cljc
│ ├── *test_cljs*.cljs
│ ├── test_cljc.cljc
│ └── test_cljs.cljs
└── nbb-deps.jar
expected behavior
Namespaces with * work like in Clojure (Java).
- Dominant language
- Clojure
- Stars
- 972
- Forks
- 56
- Avg merge
- 1m
- Merged PRs (30d)
- 6
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from babashka/nbb
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nextjournal/clerk#830 ·
-
IOP tokens release blocker team qa team qa autotests WG adoption
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
penpot/penpot#13540 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
izhangzhihao/intellij-rainbow-brackets#2903 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
-
Data Studio semantic layer: clicking a table or metric row only opens it when you click the namePossibly taken @sanketpatel32 claimed this 1 day ago. Open.Needs Triage .Team/UXWest Priority:P3 Type:Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
metabase/metabase#88853 · 1 comment ·
Maintainers usually reply within 1 day