chlorine-clover

About Chlorine for Atom and Clover for VS Code: https://atom.io/packages/chlorine and https://marketplace.visualstudio.com/items?itemName=mauricioszabo.clover
Rowan Barnard 2020-08-08T06:53:02.463800Z

Hey guys, not sure if this is Atom or Chlorine specific or a general, I'm-doing-things-incorrectly kind of thing - I've just been having some issues with copying and pasting code from the Getting Clojure epub book I've been learning from - when I copied this bit of code: (ns blottsbooks.core (:require blottsbooks.pricing) (:gen-class)) into my core.clj file and submitted it for evaluation I got back a clojure.lang.ExceptionInfo error "Call to clojure.core/ns did not conform to spec." and when I copied and pasted (​def​ discount-rate 0.15) and submitted that I got back a could not resolve symbol def in this context error

sparkofreason 2020-08-08T12:46:17.465Z

Do you need [] around blottsbooks.pricing? Like (ns blottsbooks.core (:require [blottsbooks.pricing]) (:gen-class))

Rowan Barnard 2020-08-09T02:04:51.468300Z

No I don't need it wrapped in a vector as when I type it out manually the code works fine - it is just when I copy-paste from the book that it throws the error - so I think maybe it is a hidden character thing which Mauricio seems to think too so I will check that out, thanks for the help though, yeah it was a little confusing for me the requires as one needs to be a keyword and have a single quote for the argument and the other not and sometimes the args are supplied in vectors for it as you say

Rowan Barnard 2020-08-08T06:53:58.464900Z

Is there some issue where hidden characters are being copied over from the book text that I'm not seeing? Because when I type these out manually they evaluate and run fine with the proper expected results.

mauricio.szabo 2020-08-08T13:57:00.467600Z

Seems like a hidden character thing. Atom have an option to show invisible characters, maybe toggle it and see if there's something extra. I remember having problems with it while copy-pasting things from PDF