RunJS icon indicating copy to clipboard operation
RunJS copied to clipboard

Hang and no output

Open CarstenNeubert opened this issue 3 years ago • 2 comments

Hello. When I enter the following code, RunJS shows a spinning circle in the top right corner of the input window and no result is shown in the output window.

var [a, b, c] = [1, 2, 3];
a;
1+1;

It doesn't matter what I put on the second and third line. If the third line isn't there at all, the code still runs. Changing the var to either let or const will make the code work as well. I tried this with version 2.6.0 on both Windows and MacOS. Same behavior.

CarstenNeubert avatar Aug 23 '22 15:08 CarstenNeubert

Thanks for finding this issue and raising it! It appears to be a bug related to the 'runtime values' feature. For now, I'd recommend disabling runtime values, which you can do from the advanced preferences.

I'll get this fixed in the next release. 👍

lukehaas avatar Aug 23 '22 15:08 lukehaas

Glad to hear that! I can confirm that the same code works with runtime values disabled. And now that it's off, I realized that I quite like the feature :)

CarstenNeubert avatar Aug 23 '22 15:08 CarstenNeubert

@CarstenNeubert this is fixed in the latest release - version 2.7.1

lukehaas avatar Oct 10 '22 14:10 lukehaas