felipeochoa / rjsx-mode

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

Parsing error on Windows #78

Closed ryuslash closed 6 years ago

ryuslash commented 6 years ago

Recently I've run into an issue where some files produce no syntax highlighting and show the following error:

Error running timer ‘js2-mode-idle-reparse’: (wrong-type-argument js2-node [cl-struct-js2-string-node 41 71 5 nil nil "bar"])

This is a small example that produced this particular error:

function foo () {
  return (
    <div foo="bar"/>
  );
}

This doesn't occur when using js2-jsx-mode.

I'm running "GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-30" installed through MSYS2 on Windows 10.

felipeochoa commented 6 years ago

Could this be the same as #77? Did you try the resolution there? I don't think there's anything linux/windows specific about rjsx

ryuslash commented 6 years ago

Ah, I should've looked more closely at the existing issues, I didn't find it. Yes deleting and reinstalling rjsx-mode fixed the problem!

Sorry for the noise and thanks!