Skip to content

Using "module" as a variable name gives "Syntax Error - Missing name or type" #1501

@psanan

Description

@psanan

Most appropriate sub-area of Processing 4?

PDE

Processing version

4.5.2

Operating system

macOS

Bug description

Test.pde:

class Module {
}

class Foo {
 Module module;
}

This ran with Processing 4.0b.

With Processing 4.5.2 it produces Syntax Error - Missing name or type near Module module;?

Workarounds:

  • Change module to a different identifier, e.g. the_module
  • Put the code in Test.java instead of Test.pde

Steps to reproduce this

  1. Create a file Test.pde with contents
class Module {
}

class Foo {
 Module module;
}
  1. Open with Processing 4.5.2

  2. Observe an error in the IDE or when trying to "Run" the sketch.

snippet

class Module {
}

class Foo {
 Module module;
}

Additional context

No response

Would you like to work on the issue?

No, I’m just reporting the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions