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

Eval editor contents only displays result for one expression. #3

Open
doxxx opened this issue Jan 19, 2014 · 4 comments
Open

Eval editor contents only displays result for one expression. #3

doxxx opened this issue Jan 19, 2014 · 4 comments
Labels

Comments

@doxxx
Copy link

doxxx commented Jan 19, 2014

When I use Ctrl-Shift-Enter in a Javascript file, the tick mark only appears on the first form in the file. I can eval individual forms using Ctrl-Enter.

@cldwalker
Copy link
Member

When using Ctrl-Shift-Enter, I do see the whole file evaled but only the bottom expression has an inline widget. The example I verified was this:

var k = 1;
k
var w = k + 4;
w

The inline widget only appeared on the w. We should be showing multiple inline results like we do for clojure. Marking as a bug unless @ibdknox knows a reason why this isn't possible

@cldwalker cldwalker added the bug label Nov 7, 2014
@cldwalker cldwalker changed the title Eval editor contents only appears to eval the first form Eval editor contents only displays result for one expression. Nov 7, 2014
@ibdknox
Copy link
Member

ibdknox commented Nov 7, 2014

Are you using the latest JavaScript mode? Pretty sure I added this.
On Fri, Nov 7, 2014 at 5:35 AM Gabriel Horner [email protected]
wrote:

When using Ctrl-Shift-Enter, I do see the whole file evaled but only the
bottom expression has an inline widget. The example I verified was this:

var k = 1;
kvar w = k + 4;
w

The inline widget only appeared on the w. We should be showing multiple
inline results like we do for clojure. Marking as a bug unless @ibdknox
https://github.com/ibdknox knows a reason why this isn't possible


Reply to this email directly or view it on GitHub
#3 (comment).

@cldwalker
Copy link
Member

Yep. The example I gave was on a fresh clone from master

@ibdknox
Copy link
Member

ibdknox commented Nov 7, 2014

If you put newlines between the lines it works, so this appears to be something to do with result placement.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants