felipeochoa / rjsx-mode

A JSX major mode for Emacs
https://github.com/felipeochoa/rjsx-mode
MIT License
641 stars 32 forks source link

Error in menu-bar-update-hook #97

Closed FabriceSalvaire closed 5 years ago

FabriceSalvaire commented 5 years ago

I got this error after to update all packages

Error in menu-bar-update-hook (imenu-update-menubar): (wrong-type-argument js2-node [cl-struct-js2-string-node 41 1879 14 nil nil "FOO-BAR"])

Foo-Bar comes from <div className="FOO-BAR">

and code is not highlighted.

felipeochoa commented 5 years ago

Can you reproduce in a fresh Emacs session? Looks like an issue with the upgrade

On Tue, Feb 26, 2019, 10:11 AM Fabrice Salvaire notifications@github.com wrote:

I got this error after to update all packages

Error in menu-bar-update-hook (imenu-update-menubar): (wrong-type-argument js2-node [cl-struct-js2-string-node 41 1879 14 nil nil "FOO-BAR"])

Foo-Bar comes from

and code is not highlighted.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/felipeochoa/rjsx-mode/issues/97, or mute the thread https://github.com/notifications/unsubscribe-auth/ACnMcBhCG5ssxTGWkurKTApHm9fi23vbks5vRUB9gaJpZM4bSQrx .

FabriceSalvaire commented 5 years ago

yes I can reproduce it. I don't know where it comes from, I tried to downgrade js2-mode but it doesn't solve this issue.

FabriceSalvaire commented 5 years ago

fixed using (byte-recompile-directory "~/.emacs.d/" nil 'force)