Referred vars in a namespace are only available after a (load-file)
Open
Nobody has claimed this yet.
bug
- Dominant language
- Clojure
- Stars
- 323
- Forks
- 31
- PR merge metrics
- No merged PRs in 30d
Description
To reproduce:
- Run
lein cljsbuild oncein the example project. - Open a REPL in the example project.
- Open
index.htmlin a browser. - Switch to the
weasel-example.exampleNS, and evaluatebaz.
The referred var will not be available.
Then, run (load-file "weasel_example/example.cljs"), and try to evaluate baz again. The referred var will be available, and its value will be printed.
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start with the example project and run lein cljsbuild once, then reproduce the browser REPL steps in the issue. Inspect how weasel_example/example.cljs and the weasel-example.example namespace expose baz; done means the referred var is available before (load-file "weasel_example/example.cljs") is evaluated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100