LightTable / Clojure

Light Table Clojure language plugin
MIT License
99 stars 51 forks source link

Inline evaluation (Ctrl+Enter) fails on custom tagged literals. #81

Open gilch opened 8 years ago

gilch commented 8 years ago

image

Inline evaluation (using Ctrl+Enter) fails on custom tagged literals. As you can see from the screenshot, *data-readers* takes the mapping from the data_readers.clj file that I put in my src/ folder. Evaluating that reader function on a vector produces the expected form, so it is loaded from my util.clj and available. For comparison, built-in tagged literals (like #inst) work, but I had to wrap them in a vector for it to display. (I'm not sure if that behavior is intentional because other forms that evaluate to themselves, like integers, keywords, and quoted lists don't display either.)

I'm using the current version of LightTable (0.8.1) and Clojure (0.3.2) on Windows 10. There are no errors in the console. I think you can reproduce this bug on any custom tagged literal.