Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Nothing is displayed when evaling a form that uses the quote reader macro #72

Open
kenny-evitt opened this issue Jan 24, 2016 · 1 comment

Comments

@kenny-evitt
Copy link

This was reported initially (or at least most recently) in this Google Groups topic.

I confirmed this behavior in LT version 0.8.1 with version 0.3.1 of the Clojure plugin.

An example form:

'(+ 1 2 3 4 5)

Interestingly, (quote (+ 1 2 3 4 5)), when evaled, displays (+ 1 2 3 4 5).

@rundis
Copy link
Contributor

rundis commented Mar 26, 2016

If you select the expression and try to eval you get a runtime exception (confirmed with 0.3.2)

Invalid behavior: :lt.objs.eval/inline-results
TypeError: Cannot read property 'addEventListener' of undefined
    at Function.CodeMirror.on (/Applications/LightTable.app/Contents/Resources/app/core/node_modules/codemirror/lib/codemirror.js:7101:16)
    at Function.<anonymous> (file:///Applications/LightTable.app/Contents/Resources/app/core/node_modules/lighttable/bootstrap.js:30923:16)
    at c (file:///Applications/LightTable.app/Contents/Resources/app/core/node_modules/lighttable/bootstrap.js:6196:14)
    at a (file:///Applications/LightTable.app/Contents/Resources/app/core/node_modules/lighttable/bootstrap.js:6236:18)
    at a (file:///Applications/LightTable.app/Contents/Resources/app/core/node_modules/lighttable/bootstrap.js:20652:136)
    at b (file:///Applications/LightTable.app/Contents/Resources/app/core/node_modules/lighttable/bootstrap.js:20664:14)
    at Function.lt.objs.eval.__BEH__inline_results

Same as LightTable/LightTable#2162

adityaathalye added a commit to adityaathalye/clojure-by-example that referenced this issue Dec 17, 2017
Raw `true`, `false`, and `nil` in the file were preventing
inline eval and results display.

The workaround is to put these values in some expression,
like (true? true), or to comment them out entirely like for `nil`.

It is likely related to this reported issue:
LightTable/Clojure#72

The LightTable error is:

  Invalid behavior: :lt.objs.eval/inline-results
  TypeError: Cannot read property 'addEventListener' of undefined
      at Function.CodeMirror.on ...
      <truncated>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants