Skip to content

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

Closed
@processing-bot

Description

@processing-bot

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() {
  
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions