fxbois / web-mode

web template editing mode for emacs
https://web-mode.org
GNU General Public License v3.0
1.63k stars 262 forks source link

Error in post-command-hook (web-mode-on-post-command): (void-function count-invisible-character-ranges) #1282

Closed Ziqi-Yang closed 9 months ago

Ziqi-Yang commented 10 months ago

When I enter web-mode, I can see this error message in the minibuffer:

Error in post-command-hook (web-mode-on-post-command): (void-function count-invisible-character-ranges)

I believe the error comes from the call of count-invisible-character-ranges in this line:
https://github.com/fxbois/web-mode/blob/44c6bfa3626f476750ed3c1c0d253607c1606716/web-mode.el#L7994

By searching the whole project, I cannot find the definition of this function.

This error leads to features like auto-closing and auto-opening not work.

BTW, much appreciate for your hard working and continuous contribution on this awesome project! <3

kjnez commented 9 months ago

I've also encountered the same problem for several times.

varna9000 commented 9 months ago

+1 This seems to be breaking column and element highlight functions as well.

fxbois commented 9 months ago

I've pushed a fix