ns/as-alias not supported
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- clojure
- Domain
- developer-experience
Research direction
Reproduce the reported namespace snippet in Dirac's devtools and start with the namespace parsing path associated with Internal Dirac Error [D:implant:70]. Trace how the require options are handled, then verify that :as-alias is accepted and the snippet no longer produces the reported compilation error.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Clojure
- Stars
- 775
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
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 binaryage/dirac
-
Difficulty 2/5 1-3 hours Newbie friendliness 30/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
clojure-emacs/cider#4203 ·
-
.Team/QueryingPlatform Priority:P2
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
clj-commons/antq#329 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100