Skip to content

Namespace alias in keyword stops debug working #2039

@tcoupland

Description

@tcoupland

Expected behavior

All three functions should debug

Actual behavior

The third call doesn't.

Steps to reproduce the problem

(ns other)
(ns scratch)
(alias 'o 'other)

#dbg
(defn debugs
[r]
(inc (:n r)))

#dbg
(defn debugs-2
[r]
(inc (:other/n r)))

#dbg
(defn no-debug
[r]
(inc (::o/n r)))

(debugs {:n 1})
(debugs-2 {::o/n 1})
(no-debug {::o/n 1})

In a cider-scratch buffer as you compile you can see the third function doesn't get treated like the others, running each call make's it clear the third has not had the breakpoints inserted.

Environment & Version information

CIDER version information

;; Connected to nREPL server - nrepl://localhost:42887
;; CIDER 0.15.0snapshot (package: 20170705.951), nREPL 0.2.12
;; Clojure 1.9.0-alpha13, Java 1.8.0_121

Lein/Boot version

lein version
Leiningen 2.7.1 on Java 1.8.0_121 Java HotSpot(TM) 64-Bit Server VM

Emacs version

GNU Emacs 25.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.10) of 2017-04-22

Operating system

uname -r
4.11.9-1-ARCH

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