-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught InvalidCharacterError: Failed to execute 'add' on 'DOMTokenList': The token provided ('f... #148
Comments
The tool-bar-almighty package isn't officially switched to the new service provider, but I'm still interested why this fails. Is tool-bar-almighty the only Tool Bar plugin adding buttons to the tool-bar ? |
Ah found the issue; this is a bug in tool-bar-almighty ... it's not allowed to use multiple icons as value: https://github.com/varemenos/atom-toolbar-almighty/blob/master/lib/entries.coffee#L60 |
I sincerely appreciate your efforts. Could you kindly outline what steps I would need to take on my part to remedy? Could I downgrade to previous version? |
Aldo I probably get why the author of the package added the extra class on the What needs to happen is that this issue needs to be reported at the package repo (and referenced back to here) so it can be solved. Removing the second class from the |
Cool. I'll find some time and follow your directions. Could you please also advise on a short term / immediate solution? Thanks again! :) |
I'm not an user of the tool-bar-almighty package, but have a look at Flex Tool Bar package. |
Same with me. I use another package...is toolbar-iconshortcuts shell = require 'shell' module.exports = deactivate: -> serialize: -> consumeToolBar: (toolBar) ->
|
Thanks for your advice. I ended up modifying my local copy of tool-bar-almighty in the atom packages folder. Just removed that entire button with double class. Wasn't using it anyways :) I really appreciate your help! |
@thiagolucio This is exactly the same issue with double icons added |
@nadeemja Great that you solved it! It would still be nice if you make an issue at the plugins repo so others can benefit from your fix. Thanks. |
Reopened for further incompatible packages. |
Thanks Jerone.
|
hi, mee too i got one: `[Enter steps to reproduce below:]
Atom Version: 1.8.0 Stack TraceUncaught InvalidCharacterError: Failed to execute 'add' on 'DOMTokenList': The token provided ('fa-columns fa-rotate-270') contains HTML space characters, which are not valid in tokens.
Commands
Config{
"core": {
"automaticallyUpdate": false,
"disabledPackages": [
"language-powershell",
"autohide-tree-view",
"latex",
"tool-bar-atom",
"tool-bar-almighty",
"markdown-preview",
"markdown-pdf"
],
"excludeVcsIgnoredPaths": false,
"themes": [
"one-light-ui",
"atom-dark-syntax"
]
},
"tool-bar": {
"iconSize": "16px"
}
} Installed Packages# User
autocomplete-python, v1.8.1
file-icons, v1.7.15
language-latex, v0.6.1
language-pfm, v0.82.0
linter, v1.11.14
markdown-preview-plus, v2.4.0
markdown-scroll-sync, v2.1.2
minimap, v4.24.6
open-recent, v5.0.0
preview-inline, v1.0.5
tidy-markdown, v3.0.1
tool-bar, v1.0.0
tool-bar-shortcuts, v0.1.5
# Dev
No dev packages ` |
@nadeemja thanks |
Here's what I did.
This is what worked for me. |
@nadeemja i would like to know how to proceed for modules like tool-bar-shorcuts and tool-bar-atom which they do not have entires.coffee files in their /lib directory? edit: |
I've submitted a PR that I think solves the problem. As It allows to add multiple classes to a button. |
Closing this issue as it looks like all affected plugins have been notified or fixed. |
When starting atom, an exception was thrown in tool-bar-button-view.js. The root cause is that the format of this config file doesn't satisfy the current tool-bar API. For a complete explanation, please read this issue that was raised against tool-bar: atom-community/tool-bar#148 (comment)
Hey. I got this error several weeks before on my debian. Regards |
@4p The issue has been reported here: varemenos/atom-toolbar-almighty#17 |
Thanks. I dunno why atom give me this link for the issue. |
Because atom-toolbar-almighty is using Tool Bar service with an "invalid" API, throwing an error within the Tool Bar package. People have to actually read the error to find the source package, or I help them in the right direction :) |
[Enter steps to reproduce below:]
Atom Version: 1.8.0
System: Mac OS X 10.11.5
Thrown From: tool-bar package, v1.0.0
Stack Trace
Uncaught InvalidCharacterError: Failed to execute 'add' on 'DOMTokenList': The token provided ('fa-columns fa-rotate-270') contains HTML space characters, which are not valid in tokens.
Commands
Config
Installed Packages
The text was updated successfully, but these errors were encountered: