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

Bugs in whitespace interpreter after last update (copy-pasting and removing commands both aren't registered) #6

Open
kcruijss opened this issue Nov 4, 2022 · 2 comments
Assignees

Comments

@kcruijss
Copy link

kcruijss commented Nov 4, 2022

I've been using your Whitespace interpreter from time to time, since it's debugger option is very useful. But since about halve a year ago, your Whitespace interpreter has became buggy unfortunately, making it close to unworkable.

One main issue is that copy-pasting isn't registered. I usually write out my Whitespace programs elsewhere, and then copy-paste it into your interpreter to debug it and fix issues. But now when I copy-paste, the interpreter doesn't trigger at all, even if I type anything after it.

If I start with a blank file and start typing everything out manually it works, ok-ish. But if I then remove a command somewhere, the interpreter-list at the right side still sees this removed command.. (e.g. I had just typed out everything, started debugging, and noticed I had a drop command too many in my code, so I removed it. But after debugging again, that removed drop command was still there in the rightpane, and therefore also the debugger.)

I'm not sure what changed, but could you please fix these issues.

@vii5ard
Copy link
Owner

vii5ard commented Nov 28, 2022

Wasn't able to reproduce the issue at hand but I did fix a thing that might be related. If you're still experiencing the same problem please add a minimalistic example source code and if possible report any errors that appear (if any) in the browsers console while the issue occurs.

@vii5ard vii5ard self-assigned this Nov 28, 2022
@kcruijss
Copy link
Author

The issue is still the same for me I'm afraid. I'm using the online compiler http://vii5ard.github.io/whitespace/ and use Google Chrome (latest version) as browser on Windows 10 OS if it's relevant. I've already tried clearing cookies/cache a few times without much effect.

When I load the page I get the meta.json and hworld.ws HTTP requests in the network tab, both with status 200 as expected. If I click run I don't get any additional requests, so it seems to be doing most on the browser itself through JS? I also don't see any errors in the browsers console (except for an initial GET http://vii5ard.github.io/favicon.ico 404 (Not Found) when I first load the page, that I assume is irrelevant here).

Anyway, if I copy anything in the console to replace the existing hworld.ws code, it does give highlighting for the spaces/tabs/newlines, but doesn't show anything in the Debug window on the right-hand side. Nor does it do anything when I click run. Here a random Whitespace program you could try to copy-paste, from another online Whitespace compiler I sometimes use - TIO (which lacks the great debugger your compiler has): https://tio.run/##PYxBCoBADAPPySvyNZEF9yYo@PyaxsUeQjsZ@hzzHte57aNKEnpIiX0QzqxfgZAO0Bj823jGWOryYhi7y0@y6gU, but it doesn't really matter what I paste into it.

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