# Web editor jumps around when errors occur while im writing classes

**URL:** <https://discourse.processing.org/t/web-editor-jumps-around-when-errors-occur-while-im-writing-classes/31217>\
**Category:** p5.js\
**Created:** [July 12, 2021, 9:24pm UTC](https://discourse.processing.org/t/web-editor-jumps-around-when-errors-occur-while-im-writing-classes/31217 "2021-07-12T21:24:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CattoKing](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@CattoKing](https://discourse.processing.org/u/CattoKing)\
**Post date:** [July 12, 2021, 9:24pm UTC](https://discourse.processing.org/t/web-editor-jumps-around-when-errors-occur-while-im-writing-classes/31217/1 "2021-07-12T21:24:52Z")

</div>

I don’t really know where to post this, but there is something i am **REALLY** annoyed by in the p5.js web editor.  
Whenever i am writing a class or extending a class, i have to pause to think of a name for the class (it happens at other moments but this is the only one i have realised) and during that time the auto-refresh kicks in. And when it runs it realizes that “hmm… that’s not written correctly” and it messes up so some code doesn’t work. And then it jumps over to the code that doesn’t work because i havent finished writing the class. So i start writing text in some random position that i didnt want anything to do with right then.

My solution to this problem is that instead of just jumping around in the code, it should instead warn you in the console and when you click on it **then** it should jump to the code.

---

<div class="post-metadata">

**Author:** ![KumuPaul](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kumupaul/32/13072_2.png) [@KumuPaul](https://discourse.processing.org/u/KumuPaul)\
**Post date:** [July 13, 2021, 12:55am UTC](https://discourse.processing.org/t/web-editor-jumps-around-when-errors-occur-while-im-writing-classes/31217/2 "2021-07-13T00:55:43Z")

</div>

What browser are you using? For me it does not change the text cursor position (point where I’m typing) when highlighting errors encountered during auto refresh. I’m using Firefox.

Obvious alternative would be to disable Auto Refresh.
