Skip to content

:require-macros throws spec error in cljs #2779

@gnarroway

Description

@gnarroway

:require-macros is supported in the cljs ns form, and based on past issues here it has worked.

When I try to evaluate an ns form in a cljs repl using cursive, a spec error is thrown saying :require-macros is not a valid form. Similarly requiring any namespace they has such a require (eg cljs.core.async) will simply not work.

Reproduction

(ns my.ns
 (:require [cljs.core.async :refer [<!]])
 (:require-macros [cljs.core.async.macros :refer [go]]))

(with expound) >> should be one of :gen-class, :import, :load, :refer, :refer-clojure, :require, :use
  • windows 10
  • IntelliJ 2022.1.4 ultimate
  • Cursive 1.12.7-2022.1
  • Clj 1.11.1
  • Cljs 1.11.60

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions