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

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

Open
processing-bot opened this issue Feb 18, 2024 · 6 comments
Assignees
Labels
bug Something isn't working has attachment Attachment was not transfered from GitLab preprocessor

Comments

@processing-bot
Copy link
Collaborator

processing-bot commented Feb 18, 2024

Created by: clankill3r

Processing 4.3
Windows 10

I thought I was going crazy :)

void settings() {
 
}

void setup() {
  noSmooth();
}

image

@processing-bot
Copy link
Collaborator Author

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 added bug Something isn't working core labels Nov 16, 2024
@Stefterv
Copy link
Collaborator

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

benfry/processing4#823

@Stefterv Stefterv self-assigned this Nov 16, 2024
@SableRaf SableRaf changed the title having noSmooth(); in steup will trigger a duplicate settings() warning having noSmooth(); in setup will trigger a duplicate settings() warning Nov 28, 2024
@nightshining
Copy link

nightshining commented Mar 12, 2025

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

Duplicate method settings() in type

@wacala
Copy link

wacala commented Mar 27, 2025

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

@SableRaf
Copy link
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
Copy link
Collaborator

SableRaf commented Apr 1, 2025

@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

@SableRaf SableRaf marked this as a duplicate of #861 Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working has attachment Attachment was not transfered from GitLab preprocessor
Projects
None yet
Development

No branches or pull requests

5 participants