# Alert used to Notify AutoComplete Support?

**URL:** https://meta.discourse.org/t/alert-used-to-notify-autocomplete-support/39901
**Category:** Development
**Created:** [2016 年 2 月 20 日午後 6:33 UTC](https://meta.discourse.org/t/alert-used-to-notify-autocomplete-support/39901 "2016-02-20T18:33:18Z")
**Posts on this page:** 6
**Page:** 1

<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: [2016 年 2 月 20 日午後 6:33 UTC](https://meta.discourse.org/t/alert-used-to-notify-autocomplete-support/39901/1 "2016-02-20T18:33:18Z")

</div>

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

> <https://github.com/discourse/discourse/blob/510f9c5bedbb567c5ce9178e203c5d817731e655/app/assets/javascripts/discourse/lib/autocomplete.js.es6#L61-L63>

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: ![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: [2016 年 2 月 20 日午後 6:36 UTC](https://meta.discourse.org/t/alert-used-to-notify-autocomplete-support/39901/2 "2016-02-20T18:36:27Z")

</div>

Related to this:

> [@Error when opening user preferences while post editor is visible](https://meta.discourse.org/t/error-when-opening-user-preferences-while-post-editor-is-visible/39167):
>
> 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: ![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: [2016 年 2 月 20 日午後 6:38 UTC](https://meta.discourse.org/t/alert-used-to-notify-autocomplete-support/39901/3 "2016-02-20T18:38:03Z")

</div>

Thanks. I can’t believe I didn’t catch that. Guess I just got caught up with looking in the dev category 🙂

---

<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: [2016 年 2 月 20 日午後 10:29 UTC](https://meta.discourse.org/t/alert-used-to-notify-autocomplete-support/39901/4 "2016-02-20T22:29:04Z")

</div>

Alert seems really odd here we should change it to a log keeping in mind IE has no console object

@tgxworld perhaps have a look at this

---

<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: [2016 年 2 月 23 日午前 5:02 UTC](https://meta.discourse.org/t/alert-used-to-notify-autocomplete-support/39901/5 "2016-02-23T05:02:13Z")

</div>

Cleaned up per:

> [@Error when opening user preferences while post editor is visible](https://meta.discourse.org/t/error-when-opening-user-preferences-while-post-editor-is-visible/39167/8):
>
> 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: [2016 年 2 月 23 日午前 5:02 UTC](https://meta.discourse.org/t/alert-used-to-notify-autocomplete-support/39901/6 "2016-02-23T05:02:19Z")

</div>


