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
epar opened this issue Oct 15, 2021 · 2 comments · Fixed by #384
Closed

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

epar opened this issue Oct 15, 2021 · 2 comments · Fixed by #384
Labels
Help Wanted We have very little time and would like some help Preprocessor

Comments

@epar
Copy link

epar commented Oct 15, 2021

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() {
  
}
@benfry benfry added Help Wanted We have very little time and would like some help Preprocessor labels Jan 10, 2022
sampottinger added a commit that referenced this issue Jan 29, 2022
Make a more friendly error message when the user is mixing modes, allowing for localization of error.
@sampottinger
Copy link
Collaborator

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

@github-actions
Copy link

github-actions bot commented Mar 2, 2022

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 Mar 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Help Wanted We have very little time and would like some help Preprocessor
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants