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

mixing active and static mode throws the "wrong" error #290

Closed
processing-bot opened this issue Oct 15, 2021 · 2 comments
Closed

mixing active and static mode throws the "wrong" error #290

processing-bot opened this issue Oct 15, 2021 · 2 comments
Labels
help wanted Extra attention is needed preprocessor

Comments

@processing-bot
Copy link
Collaborator

Created by: epar

Description

In previous versions of Processing, when mixing active and static modes the error Processing would throw was:

It looks like you're mixing "active" and "static" modes.

In Processing 4, the error becomes a lot more cryptic:

Syntax Error - Missing operator, semicolon, or '}' near 'setup'?

As this is a mistake a lot of first learners make, it would be really helpful to get the old error message back.

Steps to Reproduce

size(100, 100);

void setup() {
  
}
@processing-bot
Copy link
Collaborator Author

Created by: sampottinger

Great suggestion @epar. A PR will be posted shortly.

@processing-bot
Copy link
Collaborator Author

Created by: github-actions[bot]

This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed preprocessor
Projects
None yet
Development

No branches or pull requests

1 participant