Skip to content
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

Column index of metadata is different when evaluating by cider-load-buffer and cider-eval-last-sexp #1823

Closed
snufkon opened this issue Aug 13, 2016 · 3 comments
Labels

Comments

@snufkon
Copy link

snufkon commented Aug 13, 2016

When I run this code with cider-load-buffer

(ns hoge.core)

(def foo "hello world")
(println (meta #'foo))

the output is following (column index is 1)

{:line 3, :column 1, :file core.clj, :name foo, :ns #namespace[hoge.core]}

when I run the code with cider-eval-last-sexp, the output is following (column index is 0)

{:line 3, :column 0, :file core.clj, :name foo, :ns #namespace[hoge.core]}

Also when I run the code on lein repl, the output is following (column index is 1)

user=> (require 'hoge.core)
{:line 3, :column 1, :file hoge/core.clj, :name foo, :ns #namespace[hoge.core]}

Environment & Version information

  • cider: CIDER 0.13.0 (California)
  • lein: Leiningen 2.6.1 on Java 1.8.0_40 Java HotSpot(TM) 64-Bit Server VM
  • emacs: GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, Carbon Version 157 AppKit 1265.21) of 2015-04-08 on Atago.local
  • OS: OS: OS X Yosemite (10.10.4)
@dpsutton
Copy link
Contributor

I cannot reproduce this. I ran every cider-eval command, and all agreed column is 1.

@bbatsov
Copy link
Member

bbatsov commented Oct 8, 2016

I can reproduce this on Clojure 1.7. @dpsutton @snufkon what are your Clojure versions?

@bbatsov
Copy link
Member

bbatsov commented Oct 8, 2016

Hmm, I get the same results on 1.7 and 1.8 actually.

@bbatsov bbatsov closed this as completed in 5a9b3ce Oct 8, 2016
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

3 participants