Skip to content

Error in cljr-clean-ns when js literal is present #443

Closed
@Frozenlock

Description

@Frozenlock

Expected behavior

Cleaning the namespace with cljr-clean-ns.

Actual behavior

Error when encountering #js.

cljr--maybe-rethrow-error: clojure.lang.ExceptionInfo: [line 10, col 4] No reader function for tag js. {:type :reader-exception, :ex-kind :reader-error, :file "<my-file>", :line 10, :col 4}

No error with other tag literal such as #inst "1985-04-12".

Steps to reproduce the problem

Create a clojurescript file with a js literal such as #js {:a 1}.
Try to run cljr-clean-ns.

Environment & Version information

clj-refactor.el version information

clj-refactor 2.4.0, refactor-nrepl 2.4.0

CIDER version information

CIDER 0.21.0 (New York), nREPL 0.6.0
Clojure 1.10.0, Java 1.8.0_212

Leiningen or Boot version

Leiningen 2.9.1 on Java 1.8.0_212 OpenJDK 64-Bit Server VM

Emacs version

Emacs 26.2

Operating system

Ubuntu 18.04.2 LTS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions