# Error when opening user preferences while post editor is visible

**URL:** https://meta.discourse.org/t/error-when-opening-user-preferences-while-post-editor-is-visible/39167
**Category:** Bug
**Created:** [February 6, 2016, 10:25pm UTC](https://meta.discourse.org/t/error-when-opening-user-preferences-while-post-editor-is-visible/39167 "2016-02-06T22:25:33Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [February 6, 2016, 10:25pm UTC](https://meta.discourse.org/t/error-when-opening-user-preferences-while-post-editor-is-visible/39167/1 "2016-02-06T22:25:33Z")

</div>

I’m running into this error here on meta. I can’t reproduce it in my development environment, but I always get it here on meta.

[https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/lib/autocomplete.js.es6#L60-L62](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/lib/autocomplete.js.es6#L60-L62)

Steps to reproduce:

- Click “New Topic” and leave the editor open
- Go to my user preferences

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [February 6, 2016, 10:26pm UTC](https://meta.discourse.org/t/error-when-opening-user-preferences-while-post-editor-is-visible/39167/2 "2016-02-06T22:26:44Z")

</div>

Can confirm. I am, however, able to close the error and interact with user preferences as expected, even with the post editor open.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [February 6, 2016, 10:27pm UTC](https://meta.discourse.org/t/error-when-opening-user-preferences-while-post-editor-is-visible/39167/3 "2016-02-06T22:27:26Z")

</div>

Do you recognize this @tgxworld?

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [February 7, 2016, 12:48am UTC](https://meta.discourse.org/t/error-when-opening-user-preferences-while-post-editor-is-visible/39167/4 "2016-02-07T00:48:00Z")

</div>

Hmm nope. I’ll add this bug to my list.

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [February 8, 2016, 7:46pm UTC](https://meta.discourse.org/t/error-when-opening-user-preferences-while-post-editor-is-visible/39167/5 "2016-02-08T19:46:32Z")

</div>

I get the same bug just when editing one of the “About the XYZ Category” topics. No need to navigate to user prefs.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [February 14, 2016, 2:31am UTC](https://meta.discourse.org/t/error-when-opening-user-preferences-while-post-editor-is-visible/39167/6 "2016-02-14T02:31:58Z")

</div>

I got this bug earlier today.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [February 20, 2016, 6:37pm UTC](https://meta.discourse.org/t/error-when-opening-user-preferences-while-post-editor-is-visible/39167/7 "2016-02-20T18:37:28Z")

</div>

Should this really be an alert? Or can it be a console.log entry?

I’m noticing it appearing on the Poll UI Plugin because I embed the editor in a Modal, while it is still open in on the topic/create new topic.

It initially took me by surprise because I wasn’t sure what “only supporting one matcher at the moment” meant, it would be nice if this were 1) more specific, such as, “AutoComplete: only supporting one matcher in an editor at the moment” and 2) a console.log statement, since it isn’t really breaking anything (from what I can tell).

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 23, 2016, 5:01am UTC](https://meta.discourse.org/t/error-when-opening-user-preferences-while-post-editor-is-visible/39167/8 "2016-02-23T05:01:42Z")

</div>

On the upside this did catch a pretty ugly bug… nonetheless fixed per

[https://github.com/discourse/discourse/commit/6d22354ac338fa9a98e89c67054abd77fad1c8fb](https://github.com/discourse/discourse/commit/6d22354ac338fa9a98e89c67054abd77fad1c8fb)

[https://github.com/discourse/discourse-tagging/commit/abec4de26b3bf3d42d18b26b1c9f50d2f2c0b6a4](https://github.com/discourse/discourse-tagging/commit/abec4de26b3bf3d42d18b26b1c9f50d2f2c0b6a4)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 23, 2016, 5:01am UTC](https://meta.discourse.org/t/error-when-opening-user-preferences-while-post-editor-is-visible/39167/9 "2016-02-23T05:01:45Z")

</div>


