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

Timeouts cause Playground Communication: Cannot read properties of undefined (reading 'trim') #2477

Open
mgeisler opened this issue Nov 28, 2024 · 3 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@mgeisler
Copy link
Collaborator

If a Playground program times out (typically due to an infinite loop), we see a strange error message:

Playground Communication: Cannot read properties of undefined (reading 'trim')

We should see if we can handle this better.

@mgeisler
Copy link
Collaborator Author

@Alx-Lai, would you be interested in trying to improve this?

@mgeisler mgeisler added bug Something isn't working good first issue Good for newcomers labels Nov 28, 2024
@Alx-Lai
Copy link
Collaborator

Alx-Lai commented Nov 28, 2024

Sure! I can take a look tomorrow

@Alx-Lai
Copy link
Collaborator

Alx-Lai commented Nov 28, 2024

The behavior in 1. https://play.rust-lang.org/ vs 2. comprehensive-rust with following program.

fn main() {
    loop {}
}
  1. https://play.rust-lang.org/
    There's a textbox showing over runtime.
    Image

  2. comprehensive-rust

Playground Communication: Cannot read properties of undefined (reading 'trim')

@Alx-Lai Alx-Lai self-assigned this Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants