Skip to content

having noSmooth(); in setup will trigger a duplicate settings() warning #823

@processing-bot

Description

@processing-bot
Collaborator

Created by: clankill3r

Processing 4.3
Windows 10

I thought I was going crazy :)

void settings() {
 
}

void setup() {
  noSmooth();
}

image

Activity

processing-bot

processing-bot commented on Mar 8, 2024

@processing-bot
CollaboratorAuthor

Created by: JuzerNejm10

Yeah, happened to me a couple of times with noSmooth() or smooth(). That must go into settings() .
But, on the other hand, settings() are very restrictive, you cannot have eg. frameRate(), background(), stroke(), fill(), noCursor(), surface.setVisible() etc. in there - you'll get NullPointerException.

Stefterv

Stefterv commented on Nov 16, 2024

@Stefterv
Collaborator

Seeing the same thing @clankill3r, I will look into it

benfry/processing4#823

self-assigned this
on Nov 16, 2024
changed the title [-]having noSmooth(); in steup will trigger a duplicate settings() warning[/-] [+]having noSmooth(); in setup will trigger a duplicate settings() warning[/+] on Nov 28, 2024
nightshining

nightshining commented on Mar 12, 2025

@nightshining

Same issue. Mac 4.3.3 Need to use fullscreen() in settings()

Duplicate method settings() in type

wacala

wacala commented on Mar 27, 2025

@wacala

Same here. Processing 4.3.4 for Mac, M1 processor, macOS Sequuoia.

SableRaf

SableRaf commented on Mar 27, 2025

@SableRaf
Collaborator

Thanks very much to @nightshining, @wacala, and everyone who reported this issue 💙

This is confirmed to be a bug, and we’re currently investigating. At this point, additional reports aren’t needed, but feel free to add a 👍 on the original post if you’re also encountering this issue. We’ll keep this thread updated as things progress.

Note

If you’re curious about the cause of this bug or want to help with a fix, the Processing code is open source and contributions are always welcome! Check out our contribution guidelines for instructions. We're also here to offer guidance to new contributors so if you need help getting started, feel free to ask.

SableRaf

SableRaf commented on Apr 1, 2025

@SableRaf
Collaborator

@Gargaj said in #861 (comment)

I looked into it briefly (just by reading the repo) and I suspect it has something to do with https://github.com/processing/processing4/blob/main/java/src/processing/mode/java/preproc/PdeParseTreeListener.java#L372-L380

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghas attachmentAttachment was not transfered from GitLabpreprocessor

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @SableRaf@wacala@Stefterv@nightshining@processing-bot

      Issue actions

        having noSmooth(); in setup will trigger a duplicate settings() warning · Issue #823 · processing/processing4