Closed aaronjensen closed 7 years ago
@aaronjensen There haven't been any major changes in rjsx-mode
, and I just checked js2
and didn't see anything in the ast-walking code there. I'm unable to reproduce this issue with the latest versions from MELPA, so it may be about your configuration.
Maybe it's an emacs 26 issue? I can reproduce w/ emacs -Q
.
Confirmed, it does not repro on 25.2, it seems specific to 26
Ok that's useful info. I don't have emacs 26 installed to test this, but I think it's related to cl-defstruct
changing to use records instead of vectors for instances (emacs-mirror/emacs@056548283884d61b1b9637c3e56855ce3a17274d). Then js2-visit-ast
does:
(let ((vfunc (get (aref node 0) 'js2-visitor)))
;; ...
)
which assumes that node
is a vector with its tag in the 0th slot.
I think the latest release should fix this issue, but please let me know if it doesn't work for you. I'll leave the issue open until you've confirmed, since I haven't personally tested the changes (but Travis did)
This fixed it for me! Thank you for the quick fix, much appreciated.
My
C-d
has stopped working recently. Has something in rjsx-mode changed or should I be looking into my own config? Thanks!To repro:
M-x rjsx-mode
Type:
/>
, pressC-d