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

ns/as-alias not supported #101

Open
jakub-stastny opened this issue Apr 7, 2023 · 0 comments
Open

ns/as-alias not supported #101

jakub-stastny opened this issue Apr 7, 2023 · 0 comments

Comments

@jakub-stastny
Copy link

jakub-stastny commented Apr 7, 2023

Zdar, this code breaks dirac:

(ns a.b.c "Test" (:require [bm-web.routes :as-alias routes]))

The as-alias syntax allows to refer to :bm-web.routes by ::routes (instead of it refering to :MY-CURRENT-NS/routes). It's a fairly new CLJ addition.

However dirac isn't happy about it:

#ExceptionInfo{:message nil,
               :data {:clojure.error/source nil,
                      :clojure.error/line nil,
                      :clojure.error/column nil,
                      :clojure.error/phase :compilation},
               :cause #ExceptionInfo{:message "Only :as, :refer and :rename options supported in :require / :require-macros; offending spec: [bm-web.routes :as-alias routes]",
                                     :data {:tag :cljs/analysis-error}}}

It shows Internal Dirac Error [D:implant:70] "Unable to parse namespace from source\n" in the devtools.

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

1 participant