Closed XO39 closed 2 years ago
Also seeing this same issue, here's my web-mode-debug
:
--- WEB-MODE DEBUG BEG ---
versions: emacs(28.1) web-mode("17.2.1")
vars: engine("vue") minor("vue") content-type("html") file("/Users/smb/code/telegraph-web/src/components/visibility/waybills/WaybillMilestone.vue")
system: window(mac) config("x86_64-apple-darwin20.6.0")
colors: fg(nil) bg(nil)
minor modes: (mac-mouse-wheel-mode show-paren-mode eldoc-mode global-eldoc-mode override-global-mode electric-pair-mode company-mode global-company-mode ivy-mode ivy-rich-mode counsel-mode emmet-mode lsp-mode flycheck-mode lsp-ui-sideline-mode lsp-ui-doc-mode lsp-ui-mode shell-dirtrack-mode auto-revert-mode magit-auto-revert-mode global-git-commit-mode company-box-mode lsp-modeline-workspace-status-mode)
vars:
web-mode-enable-current-column-highlight=nil
web-mode-enable-current-element-highlight=nil
indent-tabs-mode=nil
--- WEB-MODE DEBUG END ---
It looks like this began after this pull request got merged in? I'm trying to look at web-mode-fontify-css-rule
to see where the out of range error could be originating but I haven't dug into web-mode
source before.
What's interesting is, I get different errors in different files, and I can't always see what's triggering it. For example, trying to visit or save this file: https://gist.github.com/bearguns/e3b64ea9b9b07c9f204634dbe3e0f949 results in:
Args out of range: "tan", 0, 4
.
This file: https://gist.github.com/bearguns/138524f8d27cd63448a6badaf4f84f95 results in:
Args out of range: "grey", 0, 5
Interestingly enough, they don't contain references to CSS colors, and the word "tan" is a part of a word, not something that has any chance of getting tokenized as such.
I have the same problem too
should be solved with last commit
Was working on some angular project when I updated to last version just an hour ago, then when ever I try to open an html file, this annoying error appears:
Here is the output of
web-mode-debug
:And this is the backtrace log: