Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

ns/as-alias not supported

Open
#101 0 comments 0 reactions 0 assignees View on GitHub

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

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from binaryage/dirac

All issues in binaryage/dirac

Similar issues

More Clojure issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.