Skip to content

Stop-refer doesn't find :refer clause in form, only on same line #339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mtnygard opened this issue Jul 31, 2016 · 0 comments
Closed

Stop-refer doesn't find :refer clause in form, only on same line #339

mtnygard opened this issue Jul 31, 2016 · 0 comments
Labels

Comments

@mtnygard
Copy link

Expected behavior

Given

(ns bintools.elf
  (:require [bintools.elf.constants :as const]
            [bintools.io :as io
             :refer
             [*bread* bread-big bread-little byte-channel read-bin-format ]])
  (:import java.nio.ByteBuffer
           java.nio.channels.SeekableByteChannel))

With the point on bintools.io,

When I invoke C-c C-a sr,

I expect the resulting definition to be

(ns bintools.elf
  (:require [bintools.elf.constants :as const]
            [bintools.io :as io])
  (:import java.nio.ByteBuffer
           java.nio.channels.SeekableByteChannel))

Actual behavior

Instead, on invoking the refactoring, I get the error message "No :refer clause found."

Steps to reproduce the problem

As described in "expected behavior."

Environment & Version information

clj-refactor.el version information

clj-refactor 2.2.0, refactor-nrepl 2.2.0

CIDER version information

CIDER 0.12.0 (Seattle)

Leiningen or Boot version

#http://boot-clj.com
#Sun Jul 31 13:26:32 CDT 2016
BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_CLOJURE_VERSION=1.9.0-alpha8
BOOT_VERSION=2.6.0

Emacs version

GNU Emacs 24.5.1 (x86_64-apple-darwin14.3.0, NS apple-appkit-1347.57) of 2015-05-28 on coil.local

Operating system

OS X 10.11 "El Capitan"

@expez expez added the bug label Aug 1, 2016
@expez expez closed this as completed in da3e698 Sep 22, 2016
expez added a commit that referenced this issue Sep 22, 2016
[Fix #339] Stop refer understands multiline refer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants