Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

editor crashes #49

Closed
parafux opened this issue Nov 5, 2019 · 5 comments
Closed

editor crashes #49

parafux opened this issue Nov 5, 2019 · 5 comments

Comments

@parafux
Copy link

parafux commented Nov 5, 2019

I try to edit the following code with the online editor or the downloaded software editor.

if i change i++ to i+1 or i+ or anything else, that was a mistypo. then the editor crashes. a reload does not help, because the cache is still full with the errornous code.

The downloaded software cannot be started again, because the errornous code is still in the cache, so propably i have to delete any init file or reinstall the software.

Seems to be an issue with an endless loop, that temporary exists in my code, but that i did not really want to be translated.

But even if i coded a bug, the tool should not hang up.

(function (bits, ticks) {
var i, t, gray, state, data = [], arr = [];
for (i = 0; i < bits; i++) {
arr.push({name: i + '', wave: ''});
state = 1;
for (t = 0; t < ticks; t++) {
data.push(t + '');
gray = (((t >> 1) ^ t) >> i) & 1;
arr[i].wave += (gray === state) ? '.' : gray + '';
state = gray;
}
}
arr.unshift('gray');
return {signal: [
{name: 'bin', wave: '='.repeat(ticks), data: data}, arr
]};
})(5, 16)

@parafux
Copy link
Author

parafux commented Nov 25, 2019

obviously the portable version uses the same cache as the installed version. so even the installed version, i cannot start, it also hangs in this endless loop. Even when i completely delete the portable version, i cannot start the installed version.

@drom drom transferred this issue from wavedrom/wavedrom Nov 28, 2019
@drom drom closed this as completed in cb95732 Nov 28, 2019
@drom
Copy link
Member

drom commented Nov 28, 2019

I have fixed WebApp to store source code only after execution to avoid infinite loops.

To clear browser cache: click here

To clear Desktop App cache look here:
http://docs.nwjs.io/en/latest/References/Command%20Line%20Options/#-user-data-dir

@parafux
Copy link
Author

parafux commented Nov 28, 2019

perfect, that helps for using the web-interface.
also the cache for the desktop app could be cleared now:
C:\Users<my-name>\AppData\Local\WaveDromEditor\User Data

@parafux
Copy link
Author

parafux commented Nov 28, 2019

Could you please do the changes, you have done on the WebApp also for the DesktopApp and the PortableApp?

@drom
Copy link
Member

drom commented Nov 28, 2019

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

No branches or pull requests

2 participants