nrepl / nrepl/weasel

Referred vars in a namespace are only available after a (load-file)

Open
#48 3 comments 0 reactions 0 assignees View on GitHub

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 once in the example project.
  • Open a REPL in the example project.
  • Open index.html in a browser.
  • Switch to the weasel-example.example NS, and evaluate baz.

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.