# Autoformat error on objects

**URL:** <https://discourse.processing.org/t/autoformat-error-on-objects/13317>\
**Category:** p5.js\
**Created:** [August 11, 2019, 6:23pm UTC](https://discourse.processing.org/t/autoformat-error-on-objects/13317 "2019-08-11T18:23:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tobebot](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@tobebot](https://discourse.processing.org/u/tobebot)\
**Post date:** [August 11, 2019, 6:23pm UTC](https://discourse.processing.org/t/autoformat-error-on-objects/13317/1 "2019-08-11T18:23:58Z")

</div>

Hi, my problem is using Processing IDE in Ubuntu, when I try to auto-format with ctrl+t, the objects are formatted they take a wrong format…

 ![processing_error](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/8/8c2110193c32209f3aed613983d38156e5236d1f.png)

---

<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:** [August 12, 2019, 1:35am UTC](https://discourse.processing.org/t/autoformat-error-on-objects/13317/2 "2019-08-12T01:35:12Z")

</div>

right, looks like the old p5js MODE tools not like that style,  
also again, did you upgrade the p5.js version already? ( p5.min / dom / sound to 0.9.0 ?)

here ( win 10 / processing 3.5.3 ) it looks like

 ![p5jsMODE_format](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/3/380792e3a58d72323b5a9829e00a9a664133d024.png)

> [p5.js Mode](https://github.com/fathominfo/processing-p5js-mode) 1.2  
> [Fathom Information Design](http://fathom.info/)  
> Adds a simple editor for p5.js code

[processing-p5js-mode/releases.md at master · fathominfo/processing-p5js-mode · GitHub](https://github.com/fathominfo/processing-p5js-mode/blob/master/releases.md) .

i not know if there is any progress to expect?

but using online editor works fine:

 ![p5js_format](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/8/8fc3b74a1c2a82bddb8490889d7c5402ba168671.png)  
and see the used version  
 ![p5js_online_revision](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/d/dfb3677e6ee1de3cfd5e9e2507e00743f43207a7.png)

* * *

p.s. when you post a screen shot pls. check that all relevant info is contained,  
you cut the header with the processing version info  
AND the MODE select dial,  
so there could be the possibility of a misoperation??

---

<div class="post-metadata">

**Author:** ![tobebot](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@tobebot](https://discourse.processing.org/u/tobebot)\
**Post date:** [August 12, 2019, 6:41am UTC](https://discourse.processing.org/t/autoformat-error-on-objects/13317/3 "2019-08-12T06:41:56Z")

</div>

Thank you very much… there is no new update … I will wait Ubuntu update… 😔😔😔😔

---

<div class="post-metadata">

**Author:** ![tobebot](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@tobebot](https://discourse.processing.org/u/tobebot)\
**Post date:** [August 12, 2019, 6:45am UTC](https://discourse.processing.org/t/autoformat-error-on-objects/13317/4 "2019-08-12T06:45:51Z")

</div>

Yeah is 3.5.3 Processing version

---

<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:** [August 12, 2019, 8:59am UTC](https://discourse.processing.org/t/autoformat-error-on-objects/13317/5 "2019-08-12T08:59:37Z")

</div>

ok, i talk about a manual update  
( is that a official way to do that?)

-a- download newest p5.js

 ![p5js_download](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/c/c014666ff395f53ac88d0780026bee479e7b70bb.png)

-b- replace the files manually by copy them into 3 library subfolder  
( i not deleted the originals, just renamed them .old )

 ![p5jsMODE_update_3_files](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/5/53d320f0f3dc5a97a75d65297cd8b30bd83c0b2e.png)

-c- run a ( new empty ) project and test with INSPECT

 ![p5jsMODE_updated_run_new](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/4/4a8c2eb2ef0789f5270327a02b5c58ba3055bc9f.png)

* * *

but yes, there is a different / more easy / way,  
make a HTML index file what just links to the newest versions  
so not need any files ( p5\_\_\_.js ) at all for your projects.  
more:  
[https://p5js.org/get-started/](https://p5js.org/get-started/)  
see  
[https://cdnjs.com/libraries/p5.js](https://cdnjs.com/libraries/p5.js) here

* * *

oh, if you call one if the examples from the p5js.MODE,  
they have the ( in them stored ) old p5 files.

---

<div class="post-metadata">

**Author:** ![tobebot](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@tobebot](https://discourse.processing.org/u/tobebot)\
**Post date:** [August 29, 2019, 9:42am UTC](https://discourse.processing.org/t/autoformat-error-on-objects/13317/6 "2019-08-29T09:42:32Z")

</div>

Thanks, but manual update not resolve the problem… 😔🙁

---

<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:** [August 29, 2019, 9:54am UTC](https://discourse.processing.org/t/autoformat-error-on-objects/13317/7 "2019-08-29T09:54:48Z")

</div>

yes, the update of the p5.js files in the Processing IDE 3.5.3 p5.js Mode  
does allow to use all 0.9.0 features,  
but it does not repair the 3.5.3 editor! ( and its [ctrl][t] control )  
also we are not informed about a update of the IDE.

@jeremydouglass can you undo the [SOLVED]
