Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clojure.data.xml/alias-uri not available in bb #995

Closed
Tracked by #991
celebrimbor379 opened this issue Sep 1, 2021 · 0 comments
Closed
Tracked by #991

clojure.data.xml/alias-uri not available in bb #995

celebrimbor379 opened this issue Sep 1, 2021 · 0 comments

Comments

@celebrimbor379
Copy link

version

v0.5.1

platform

Linux/Fedora

problem

When attempting to call clojure.data.xml/alias-uri, bb throws a Could not resolve symbol error although other functions from data.xml work fine.

repro

Run bb -e "(clojure.data.xml/alias-uri 'foo 'bar)" on the command line and observe this error:

----- Error --------------------------------------------------------------------
Type:     clojure.lang.ExceptionInfo
Message:  Could not resolve symbol: clojure.data.xml/alias-uri
Location: <expr>:1:2
Phase:    analysis

----- Context ------------------------------------------------------------------
1: (clojure.data.xml/alias-uri 'foo 'bar)
    ^--- Could not resolve symbol: clojure.data.xml/alias-uri

expected behavior

Ideally alias-url could also be exposed along with the existing ones from data.xml.

Per the discussion earlier today on Slack: "the original function is creating a clojure ns and not a sci ns, so would need to be overridden in bb".

Source for the original function is here: https://github.com/clojure/data.xml/blob/master/src/main/clojure/clojure/data/xml/name.cljc#L99

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants