You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Uncaught InvalidCharacterError: Failed to execute 'add' on 'DOMTokenList': The token provided ('local function') contains HTML space characters, which are not valid in tokens. #353
If I return a type like local function in a suggestion.
Atom Version: 0.189.0 System: Microsoft Windows 8 Pro Thrown From: autocomplete-plus package, v2.8.0
Stack Trace
Uncaught InvalidCharacterError: Failed to execute 'add' on 'DOMTokenList': The token provided ('local function') contains HTML space characters, which are not valid in tokens.
At C:\Users\bas\.atom\packages\autocomplete-plus\lib\suggestion-list-element.coffee:156
Error: Failed to execute 'add' on 'DOMTokenList': The token provided ('local function') contains HTML space characters, which are not valid in tokens.
at Error (native)
at autocomplete-suggestion-list.SuggestionListElement.renderItem (C:\Users\bas\.atom\packages\autocomplete-plus\lib\suggestion-list-element.coffee:156:26)
at autocomplete-suggestion-list.SuggestionListElement.renderItems (C:\Users\bas\.atom\packages\autocomplete-plus\lib\suggestion-list-element.coffee:129:6)
at C:\Users\bas\.atom\packages\autocomplete-plus\lib\suggestion-list-element.coffee:67:35
at ViewRegistry.module.exports.ViewRegistry.performDocumentUpdate (C:\Users\bas\AppData\Local\atom\app-0.189.0\resources\app\src\view-registry.js:159:9)
at __bind (C:\Users\bas\AppData\Local\atom\app-0.189.0\resources\app\src\view-registry.js:3:61)
Yes I should and did use function to fix it. However created this issue because other people might run into the same and get the "error box" and wanted to bring it to your notice ❤️
I suppose the alternative would be for autocomplete plus to split on space and use the first word, instead of erroring. We could use the extended description in a popover or similar, or set leftLabel with this if it is empty.
The error seems pretty clear about the actions required to resolve the issue
Yes. 👍 for that.
But again would like this to not error. Don't want to depend on lazy autocomplete package authors like me to ensure a valid type 👍 (I was just passing through what typescript gave to me as a first step 😄 )
Activity
fix(autocomplete) for : https://github.com/atom-community/autocomplet…
joefitzgerald commentedon Apr 3, 2015
Type should be a single word. Choose local. Or function.
benogle commentedon Apr 3, 2015
It should probably not break in this. And you should choose function for
type in that case
On Friday, April 3, 2015, Joe Fitzgerald [email protected] wrote:
basarat commentedon Apr 4, 2015
Yes I should and did use function to fix it. However created this issue because other people might run into the same and get the "error box" and wanted to bring it to your notice ❤️
joefitzgerald commentedon Apr 4, 2015
The error seems pretty clear about the actions required to resolve the issue. I don't think this needs a fix.
joefitzgerald commentedon Apr 4, 2015
I suppose the alternative would be for autocomplete plus to split on space and use the first word, instead of erroring. We could use the extended description in a popover or similar, or set leftLabel with this if it is empty.
basarat commentedon Apr 4, 2015
Yes. 👍 for that.
But again would like this to not error. Don't want to depend on lazy autocomplete package authors like me to ensure a valid
type👍 (I was just passing through whattypescriptgave to me as a first step 😄 )Allow spaces in the type suggestion option