Skip to content

Setting *warn-on-reflection* prevents symbol renaming #347

Open
@andreyorst

Description

@andreyorst

Expected behavior

Symbol renamed

Actual behavior

java.lang.IllegalStateException: refactor-nrepl is unable to build an AST for myapp.core. tools.analyzer encountered the following problem: Can't set!: *warn-on-reflection* from non-binding thread

Steps to reproduce the problem

I've created a simple clojure file with (set! *warn-on-reflection* true) on top and tried renaming the symbol.

Environment & Version information

clj-refactor.el version information

clj-refactor 2.5.1, refactor-nrepl 2.5.1

CIDER version information

;; CIDER 1.1.0snapshot, nREPL 0.8.3
;; Clojure 1.10.3, Java 11.0.10

Leiningen or Boot version

Leiningen 2.9.3 on Java 11.0.10 OpenJDK 64-Bit Server VM

Emacs version

GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.13, cairo version 1.16.0) of 2021-03-17

Operating system

Fedora 33

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