Testrunner fails to find `clojure.core/pcalls` in unit test even though it works locally
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the failure with lein test, then inspect the unit test that uses clojure.core/pcalls and compare it with the site's submission path. Done means the bank-account solution passes in the testrunner environment without a Could not resolve symbol: pcalls analysis error.
Written by the indexing model from the issue text.
Description
I have a solution to bank-account:
(ns bank-account)
(defn open-account []
(atom 0))
(defn close-account [account]
(reset! account nil))
(defn get-balance [account]
@account)
(defn update-balance [account amount]
(swap! account + amount))
which works fine when doing lein test locally but fails with:
----- Error --------------------------------------------------------------------
Type: clojure.lang.ExceptionInfo
Message: Could not resolve symbol: pcalls
Phase: analysis
when submitting the solution to the site. I had a different and more verbose solution earlier and it seems to have passed.
pcalls is used in one of the unit tests which from what I understand are not user-changeable. Also pcalls is part of clojure.core which should be automatically require:d unless explicitly excluded in clojure.
Not sure what is going on here.
- Dominant language
- Clojure
- Stars
- 2
- Forks
- 10
- Avg merge
- 10m
- Merged PRs (30d)
- 1
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.
More from exercism/clojure-test-runner
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
exercism/clojure-test-runner#62 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
exercism/clojure-test-runner#57 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
exercism/clojure-test-runner#49 · 3 comments ·
All issues in exercism/clojure-test-runner
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
.Needs Triage .Team/UXWest Priority:P3 Type:Bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
clojure-emacs/cider#4203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
clj-commons/antq#327 ·