New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rjsx-electric-lt and rjsx-delete-creates-full-tag misbehaves #68
Comments
What version of |
According to package.el is the version 20180409.902 from Melpa inestable.
Is weird you cannot reproduce the issue of `rjsx-delete-creates-full-tag`.
Felipe <notifications@github.com> writes:
… What version of `rjsx` are you using? I can reproduce the first problem (working on a fix), but not the second one
|
I have this problem with https://github.com/hlissner/doom-emacs too |
Is this issue still happening with the latest version of |
I'm not getting the close tag when deleting the |
Can you paste the whole buffer content that causes the issue? |
Sure:
|
Where are you trying to add the |
I write |
I understand the issue, but still cannot reproduce. Where in the buffer are you writing this? |
At the upper line from |
Sorry still nothing. Can you reproduce the issue in an |
Here is a demo https://streamable.com/shkt3 Yes, I just updated all my packages 5 minutes ago |
And can you reproduce in an Can you do the following and let me know what you get?
|
These are the results, with
|
And does it work with |
yeah, it actually works fine with When running emacs normally the behavior shown on the last video is what happens |
Ok. At this point you should try bisecting your config to see what causes the issue. I personally use |
Done, using Bug hunter it tells me the error comes from this part of my configuration: Initial tests done. Hunting for the cause...
"/home/jorge/.emacs.d/tmp-init.el", line 1332 pos 0:
The assertion returned the following value here:
t
Caused by the following expression:
(use-package prog-mode :ensure nil :init
(defun shackra-prog-mode nil
(set
(make-local-variable 'fill-column)
79)
(set
(make-local-variable 'comment-auto-fill-only-comments)
t)
(auto-fill-mode t)
(highlight-numbers-mode)
(hes-mode)
(electric-pair-mode)
(rainbow-turn-on)
(when
(or
(executable-find "ispell")
(executable-find "hunspell"))
(flyspell-prog-mode))
(prettify-symbols-mode))
(bind-key* "C-M-," 'comment-dwim)
(add-hook 'prog-mode-hook #'shackra-prog-mode)) But I don't know if you see anything meaningful in that snippet of code |
I think I may have found it... Can you try disabling |
I was narrowing my code too and the issue is indeed Disabling it functions as a workaround. |
Evita desorden y la posibilidad de fallos en la configuración, aumenta el control sobre la configuración. - dbordak/telephone-line#66 - felipeochoa/rjsx-mode#68
Sometimes I will push the
<
key on my keyboard and the tag woun't auto-complete perrjsx-electric-lt
behavior as I expect, instead the errormissing ‘>’ after ‘/’ in self-closing tag
will be registered on *Messages*.Also, if the tag is automatically close by
rjsx-electric-lt
, and then I press C-d (rjsx-delete-creates-full-tag
) the/
gets deleted but I see no closing tags, I need to insert the/
again and the delete it with C-d in order to get the function working as expected.You can see this misbehavior from both functions in action on the following video:
https://streamable.com/6izlx
This is my full JavaScript, ReactJS and JSX configuration:
The text was updated successfully, but these errors were encountered: