bb.edn sci/eval-string not in user namespace
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
Research direction
Start by reproducing the babashka task shown in the issue and compare it with the standalone sci/eval-string example. Trace the sci/eval-string entry point and namespace handling; done means the documented expression works in babashka without injecting (ns user).
Written by the indexing model from the issue text.
Description
version
v1.13.219
platform
ubuntu ~24.04.1
problem
This code is documented and works in clj
(ns tst
(:require [sci.core :as sci]))
(sci/eval-string "(println(f [1 2 3]))" {:namespaces
{'clojure.core {'println println}
'user {'f first}}})
for babashka (ns user) must be injected
{:tasks
{a {:requires ([sci.core :as sci])
:task
(do
(sci/eval-string "(ns user) ;; !!!! user
(println(f [1 2 3]))" {:namespaces
{'clojure.core {'println println}
'user {'f first}}}))}}}
- Dominant language
- Clojure
- Stars
- 4.7k
- Forks
- 286
- Avg merge
- 3m
- Merged PRs (30d)
- 23
Getting set up
- Ships a 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/babashka
-
Difficulty 4/5 3-5 days Newbie friendliness 44/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
babashka/babashka#2240 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
babashka/babashka#2239 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 68/100
babashka/babashka#2039 · 3 comments ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
babashka/babashka#1931 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
All issues in babashka/babashka
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nextjournal/clerk#830 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
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