# My P5 editor doesn't work

**URL:** <https://discourse.processing.org/t/my-p5-editor-doesnt-work/13769>\
**Category:** p5.js\
**Created:** [September 2, 2019, 6:02pm UTC](https://discourse.processing.org/t/my-p5-editor-doesnt-work/13769 "2019-09-02T18:02:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![deseingalt](https://avatars.discourse-cdn.com/v4/letter/d/c5a1d2/32.png) [@deseingalt](https://discourse.processing.org/u/deseingalt)\
**Post date:** [September 2, 2019, 6:02pm UTC](https://discourse.processing.org/t/my-p5-editor-doesnt-work/13769/1 "2019-09-02T18:02:03Z")

</div>

sketch.js

```auto
function setup() {
  createCanvas(400, 400);
}
function draw() {
  background(220);
}

```

Console

> p5 had problems creating the global function “createElement”, possibly because your code is already using that name as a variable. You may want to rename your variable to something else.

same issue notated here June

- [I can't code because of this error. "p5 had problems creating the global... · Issue #86 · nature-of-code/noc-examples-p5.js · GitHub](https://github.com/nature-of-code/noc-examples-p5.js/issues/86)

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [September 2, 2019, 11:46pm UTC](https://discourse.processing.org/t/my-p5-editor-doesnt-work/13769/2 "2019-09-02T23:46:16Z")

</div>

the sketch.js code part is ok,  
so you damaged the HTML part?

```auto
<!DOCTYPE html>
<html>
  <head>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/p5.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/addons/p5.dom.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/addons/p5.sound.min.js"></script>
    <link rel="stylesheet" type="text/css" href="style.css">
    <meta charset="utf-8" />

  </head>
  <body>
    <script src="sketch.js"></script>
  </body>
</html>

```

what environment you are in?

- Processing IDE 3.5.3. p5.js Mode
- file system on your compurter
- online editor [https://editor.p5js.org](https://editor.p5js.org)

using operating system ? and browser ?

---

<div class="post-metadata">

**Author:** ![deseingalt](https://avatars.discourse-cdn.com/v4/letter/d/c5a1d2/32.png) [@deseingalt](https://discourse.processing.org/u/deseingalt)\
**Post date:** [September 3, 2019, 6:26am UTC](https://discourse.processing.org/t/my-p5-editor-doesnt-work/13769/3 "2019-09-03T06:26:45Z")

</div>

src=“[https://editor.p5js.org/Deseingalt/sketches/mJ2OcMqkI](https://editor.p5js.org/Deseingalt/sketches/mJ2OcMqkI)”

```auto
<!DOCTYPE html>
<html>
  <head>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/p5.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/addons/p5.dom.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/addons/p5.sound.min.js"></script>
    <link rel="stylesheet" type="text/css" href="style.css">
    <meta charset="utf-8" />

  </head>
  <body>
    <script src="sketch.js"></script>
  </body>
</html>

```

This new behavior occured since September 1,  
other things, fill(‘red’) generate an error, and sounds occur where there was’nt  
I use chrome with a asus chromebook…

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [September 3, 2019, 7:56am UTC](https://discourse.processing.org/t/my-p5-editor-doesnt-work/13769/4 "2019-09-03T07:56:47Z")

</div>

i can not open the link to your sketch!  
but your latest sketch “words 2” [p5.js Web Editor](https://editor.p5js.org/Deseingalt/sketches/MZ0R7bUA3)  
run here ( Win10 / Firefox ) well.

but try one of mine, with old 0.7.3

> **[p5.js Web Editor](https://editor.p5js.org/kll/sketches/9mkQG9HXN)**
>
> A web editor for p5.js, a JavaScript library with the goal of making coding accessible to artists, designers, educators, and beginners.

if that is the reason.

> [@deseingalt](#):
>
> and sounds occur where there was’nt

that can come from preferences icon / settings / Accessibility / lint warning: sound must be OFF

so anyhow that is a thing, try your sketch when you are log in / or out.

---

<div class="post-metadata">

**Author:** ![deseingalt](https://avatars.discourse-cdn.com/v4/letter/d/c5a1d2/32.png) [@deseingalt](https://discourse.processing.org/u/deseingalt)\
**Post date:** [September 3, 2019, 10:42am UTC](https://discourse.processing.org/t/my-p5-editor-doesnt-work/13769/5 "2019-09-03T10:42:42Z")

</div>

the answer was [here](https://github.com/processing/p5.js-web-editor/issues/738)

**Yes, the plain-text and table-text boxes were checked (don’t know why).The plain-text box check causes the error.**

thanks for help helping

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [September 3, 2019, 10:56am UTC](https://discourse.processing.org/t/my-p5-editor-doesnt-work/13769/6 "2019-09-03T10:56:53Z")

</div>

[CTRL][SHIFT][1] switch that ON ( [2] OFF )  
give errors?? and also some sound, ( but that LINT sound can be much more confusing… happened to me ?? )  
and that’s how i found out about that it only happens when login…
