René's URL Explorer Experiment


Title: PDE doesn't report invalid size() arguments as a logic error · Issue #1573 · processing/processing4 · GitHub

Open Graph Title: PDE doesn't report invalid size() arguments as a logic error · Issue #1573 · processing/processing4

X Title: PDE doesn't report invalid size() arguments as a logic error · Issue #1573 · processing/processing4

Description: Most appropriate sub-area of Processing 4? PDE Processing version 4.5.6 Operating system Windows Bug description When size() is called from setup() using variables for its width and height, Processing reports the error only when the sket...

Open Graph Description: Most appropriate sub-area of Processing 4? PDE Processing version 4.5.6 Operating system Windows Bug description When size() is called from setup() using variables for its width and height, Process...

X Description: Most appropriate sub-area of Processing 4? PDE Processing version 4.5.6 Operating system Windows Bug description When size() is called from setup() using variables for its width and height, Process...

Opengraph URL: https://github.com/processing/processing4/issues/1573

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PDE doesn't report invalid size() arguments as a logic error","articleBody":"### Most appropriate sub-area of Processing 4?\n\nPDE\n\n### Processing version\n\n4.5.6\n\n### Operating system\n\nWindows\n\n### Bug description\n\nWhen `size()` is called from `setup()` using variables for its width and height, Processing reports the error only when the sketch is run/compiled:\n\n`size() cannot be used here, see https://processing.org/reference/size_.html`\n\nHowever, the PDE does not report this as a logic error while editing the sketch.\n\nThis is inconsistent with other invalid `size()` usage and makes the problem harder to identify before running the sketch.\n\nFor comparison, using the same variables from `settings()` works correctly, and arithmetic expressions such as `size(400 + 400, 900 - 300)` are accepted.\n\n### Expected behavior\n\nThe PDE should identify the invalid `size()` usage as a logic error while editing, before the sketch is run.\n\n### Actual behavior\n\nThe invalid usage is not reported as a PDE logic error while editing. The error is encountered when the sketch is processed/run.\n\n\n### Steps to reproduce this\n\n1. Open Processing 4.\n2. Create a new Java Mode sketch.\n3. Add the following code:\n4. Wait for the PDE to process the sketch.\n5. Observe that the invalid `size()` usage is not reported as a logic error in the editor.\n6. Run the sketch.\n7. Processing reports:\n\n`size() cannot be used here, see https://processing.org/reference/size_.html`\n\nFor comparison, moving the `size(width, height)` call into `settings()` allows the sketch to run successfully.\n\n\n### snippet\n\n```processing\nint width = 800;\nint height = 600;\n\nvoid setup() {\n  size(width, height);\n}\n```\n\n\n### Additional context\n\nThe issue appears to originate in the Java Mode preprocessing of `size()` arguments.\n\nI investigated the existing `sizeParamValid()` handling and implemented a change that reports invalid `size()` arguments as a logic error during preprocessing. I also added regression tests for invalid method and variable arguments.\n\nI manually verified the following cases:\n\n* `size(width, height)` in `setup()` → logic error\n* `size(width, height)` in `settings()` → works\n* `size(400 + 400, 900 - 300)` → works\n\nThe Java test suite passes with 194 tests and 0 failures on my local setup.\n\nI would be interested in working on this issue and submitting the corresponding fix.\n\n\n### Would you like to work on the issue?\n\nYes, I’d like to help with this","author":{"url":"https://github.com/letsmanuel","@type":"Person","name":"letsmanuel"},"datePublished":"2026-09-21T20:16:12Z","url":"https://github.com/processing/processing4/issues/1573"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:16fdbd2d-42bc-95a7-283c-b2078d4adf6f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC104:B3B5C:120B9F:185777:6B05F786
html-safe-noncedc553516c61b76d8f88c52147f7147fea2b997409f51cf9703fc6a0978c4c4bf
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTA0OkIzQjVDOjEyMEI5RjoxODU3Nzc6NkIwNUY3ODYiLCJ2aXNpdG9yX2lkIjoiNDA4MjcyNjA0Mjg0NTE4MTgzMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac88763c7814dbcc1ff03a2107065eee0e7bc8bb95025236e78833709fb657b180
hovercard-subject-tagissue:5531994630
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/processing/processing4/1573/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a9e42012860aa2913019d53b5ac01c976b983044b008321730accc54c80d8285/processing/processing4/issues/1573
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a9e42012860aa2913019d53b5ac01c976b983044b008321730accc54c80d8285/processing/processing4/issues/1573
og:image:altMost appropriate sub-area of Processing 4? PDE Processing version 4.5.6 Operating system Windows Bug description When size() is called from setup() using variables for its width and height, Process...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameletsmanuel
hostnamegithub.com
expected-hostnamegithub.com
Nonec214754a6652274794ed4e054a7b71be999d69843f103ba54893001d45010ece
turbo-cache-controlno-preview
go-importgithub.com/processing/processing4 git https://github.com/processing/processing4.git
octolytics-dimension-user_id1617169
octolytics-dimension-user_loginprocessing
octolytics-dimension-repository_id844382769
octolytics-dimension-repository_nwoprocessing/processing4
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id844382769
octolytics-dimension-repository_network_root_nwoprocessing/processing4
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7d164a4e71eb333b2b17fd5b17e18efb7855505c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/processing/processing4/issues/1573#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Fprocessing4%2Fissues%2F1573
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Fprocessing4%2Fissues%2F1573
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=processing%2Fprocessing4
Reloadhttps://github.com/processing/processing4/issues/1573
Reloadhttps://github.com/processing/processing4/issues/1573
Reloadhttps://github.com/processing/processing4/issues/1573
processinghttps://github.com/processing
processing4https://github.com/processing/processing4
Codehttps://github.com/processing/processing4
Issues265 (265)https://github.com/processing/processing4/issues
Pull requests22 (22)https://github.com/processing/processing4/pulls
Actionshttps://github.com/processing/processing4/actions
Projectshttps://github.com/processing/processing4/projects
Wikihttps://github.com/processing/processing4/wiki
Security and qualityhttps://github.com/processing/processing4/security
Insightshttps://github.com/processing/processing4/insights
https://github.com/processing/processing4
New issuehttps://github.com/login?return_to=https://github.com/processing/processing4/issues/1573
New issuehttps://github.com/login?return_to=https://github.com/processing/processing4/issues/1573
PDE doesn't report invalid size() arguments as a logic errorhttps://github.com/processing/processing4/issues/1573#top
bughttps://github.com/processing/processing4/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/letsmanuel
letsmanuelhttps://github.com/letsmanuel
on Sep 21, 2026https://github.com/processing/processing4/issues/1573#issue-5531994630
letsmanuelhttps://github.com/letsmanuel
bughttps://github.com/processing/processing4/issues?q=state%3Aopen%20label%3A%22bug%22
on Sep 21, 2026https://github.com/processing/processing4/issues/1573#event-31556536343
https://github.com/letsmanuel
letsmanuelhttps://github.com/letsmanuel
on Sep 25, 2026https://github.com/processing/processing4/issues/1573#issuecomment-5829457399
https://github.com/chaitanya-bhardwaj
chaitanya-bhardwajhttps://github.com/chaitanya-bhardwaj
on Sep 26, 2026https://github.com/processing/processing4/issues/1573#issuecomment-5847476895
@letsmanuelhttps://github.com/letsmanuel
https://github.com/letsmanuel
letsmanuelhttps://github.com/letsmanuel
on Sep 27, 2026https://github.com/processing/processing4/issues/1573#issuecomment-5855729745
@letsmanuelhttps://github.com/letsmanuel
Sign up for freehttps://github.com/signup?return_to=https://github.com/processing/processing4/issues/1573
Sign in to commenthttps://github.com/login?return_to=https://github.com/processing/processing4/issues/1573
bughttps://github.com/processing/processing4/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.