Skip to content

Warns about reserved function 'row' which is not a p5js function #3427

Closed
@jareddonovan

Description

@jareddonovan

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:

🌸 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).

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:

  1. Following sketch will reproduce in the web editor (https://editor.p5js.org/creativecoding/sketches/L03aiuGIu)

Snippet:

function setup() {
  createCanvas(400, 400);
}

function draw() {
  background(220);
  
  let row = 10;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugError or unexpected behaviors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions