You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a sketch that declares a variable 'row', the editor produces the following warning:
🌸 p5.js says: you have used a p5.js reserved function "row" make sure you change the function name to something else.
+ More info: https://p5js.org/reference/p5/row
But there doesn't appear to be a 'row()' function in the reference (link in warning message leads to 404).
This issue appears to be resolved in p5.js version 2.0.0. In previous versions, including 1.11.11 and 1.11.13, the editor produces a false warning when using row as a variable name, due to an internal check mistakenly flagging it as a reserved function.
Rename the Variable: Temporarily renaming the variable row to something else (like myRow or rowNumber) will eliminate the warning in the current versions of p5.js.
Check for Updates: If you're using p5.js in a project and don't want to rename your variable, upgrading to p5.js 2.0.0 should resolve the issue. Make sure to update your library to the latest version.
p5.js version
1.11.11, 1.11.13
What is your operating system?
Mac OS
Web browser and version
Google Chrome 131.0.6778.86
Actual Behavior
For a sketch that declares a variable 'row', the editor produces the following warning:
But there doesn't appear to be a 'row()' function in the reference (link in warning message leads to 404).
Following sketch demonstrates: https://editor.p5js.org/creativecoding/sketches/L03aiuGIu
Tested with 1.11.11 and 1.11.13 versions of p5js.
Expected Behavior
No warning.
Steps to reproduce
Steps:
Snippet:
The text was updated successfully, but these errors were encountered: