Closed MPE2016 closed 3 years ago
It does sound like it's this packet to blame. Is there anything interesting in buffer *prettier (local)*
?
And could you attach one of the files it happens with?
Also, a copy of the output of M-x describe-mode
(in a buffer where you have the problem) would be useful.
Hmm, I don't appear to be having a prettier (local) buffer. Is that normal?
Op maandag 1 februari 2021 om 0u32 schreef Julian Scheid notifications@github.com:
It does sound like it's this packet to blame. Is there anything interesting in buffer prettier (local)?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jscheid/prettier.el/issues/71#issuecomment-770673450, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADYWBBGRTMFGX35EKJMOGQ3S4ZRI3ANCNFSM4W4KBW2Q.
More than happy to do so, (see attachment) but it really happens with every js html and css file I've checked, so I don't expect this to be file specific (of course I could be wrong).
Op maandag 1 februari 2021 om 1u29 schreef Julian Scheid notifications@github.com:
And could you attach one of the files it happens with?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jscheid/prettier.el/issues/71#issuecomment-770712681, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADYWBBA6FL7P5UYKSHCWNOTS4ZX5ZANCNFSM4W4KBW2Q.
Let's take a step back: when you're not on the last line, does prettier-mode
work? Is it reformatting the buffer on save? If it does, then you should definitely have a buffer whose name starts with *prettier
.
When you say "I noticed that it doesn't crash when I switch prettier.el off", how do you switch it off? By disabling prettier-mode
?
Let's take a step back: when you're not on the last line, does prettier-mode work? Is it reformatting the buffer on save? If it does, then you should definitely have a buffer whose name starts with *prettier.
Ok. When I'm not on the last line and I save the file with a change - for example adding a space to the beginning of the first line - it reformats the buffer on save, and then the prettier (local) buffer exists, but it is completely empty.
If I then go to the last line and save the file, it crashes, and the prettier (local) buffer is gone.
When you say "I noticed that it doesn't crash when I switch prettier.el off", how do you switch it off? By disabling prettier-mode?
Yes.
Op maandag 1 februari 2021 om 3u53 schreef Julian Scheid notifications@github.com:
Let's take a step back: when you're not on the last line, does prettier-mode work? Is it reformatting the buffer on save? If it does, then you should definitely have a buffer whose name starts with *prettier.
When you say "I noticed that it doesn't crash when I switch prettier.el off", how do you switch it off? By disabling prettier-mode?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jscheid/prettier.el/issues/71#issuecomment-770801070, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADYWBBBYORLYQ3GFIZHJTRDS42I5DANCNFSM4W4KBW2Q.
Interesting. Can you send me the describe-mode output please and I'll have closer look tomorrow.
Ok, cool, here it is, and thank you for looking into this!
All the best
Maarten
Op maandag 1 februari 2021 om 4u11 schreef Julian Scheid notifications@github.com:
Interesting. Can you send me the describe-mode output please and I'll have closer look tomorrow.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jscheid/prettier.el/issues/71#issuecomment-770811204, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADYWBBBNEDIAH2KIJ7JBMATS42K6HANCNFSM4W4KBW2Q.
Enabled minor modes: Adaptive-Wrap-Prefix Auto-Composition Auto-Compression Auto-Encryption Beacon Blink-Cursor Company Cursor-Sensor Delete-Selection Diff-Auto-Refine Dimmer Eldoc File-Name-Shadow Font-Lock Global-Company Global-Eldoc Global-Font-Lock Global-Prettify-Symbols Highlight-Parentheses Line-Number Lsp Lsp-Completion Lsp-Diagnostics Lsp-Managed Lsp-Modeline-Code-Actions Lsp-Modeline-Diagnostics Lsp-Ui Lsp-Ui-Sideline Mouse-Wheel Pdf-Occur-Global Prettier Prettify-Symbols Pyvenv Shell-Dirtrack Smartparens Tooltip Transient-Mark Treemacs-Filewatch Treemacs-Follow Treemacs-Fringe-Indicator Treemacs-Git Visual-Line Yas Yas-Global
(Information about these minor modes follows the major mode info.)
Javascript-IDE mode defined in ‘js2-mode.el’: Major mode for editing JavaScript code.
In addition to any hooks its parent mode ‘js-mode’ might have run, this mode runs the hook ‘js2-mode-hook’, as the final or penultimate step during initialization.
key binding
C-c Prefix Command ESC Prefix Command
Thanks.
Could you run this expression: (setq prettier-keep-server-buffer-flag t)
and then try again? This time the *prettier (local)*
buffer shouldn't vanish after the crash and hopefully there's going to be something useful in it.
Ok, it's not much, but this is what you get:
C-1 Z0
Op maandag 1 februari 2021 om 12u01 schreef Julian Scheid notifications@github.com:
Thanks.
Could you run this expression: (setq prettier-keep-server-buffer-flag t) and then try again? This time the prettier (local) buffer shouldn't vanish after the crash and hopefully there's going to be something useful in it.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jscheid/prettier.el/issues/71#issuecomment-771119995, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADYWBBBOMUFH6PBO3KOSRG3S44CCTANCNFSM4W4KBW2Q.
That bug has long been fixed. You said you're using prettier.el 1.1 but in your prettier-info
I can see that it's in fact 1.0. Upgrade to the latest and you should be fine.
Well, consider this one the consequences of a prolonged lockdown:D.
I turns out I've been looking at my package list in the wrong way. I just updated, and everything is fine now.
Thanks so much for your patience:)
Maarten
Op dinsdag 2 februari 2021 om 0u51 schreef Julian Scheid notifications@github.com:
That bug has long been fixed. You said you're using prettier.el 1.1 but in your prettier-info I can see that it's in fact 1.0. Upgrade to the latest and you should be fine.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jscheid/prettier.el/issues/71#issuecomment-771474290, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADYWBBCCFEWOQ2UXOUEUZXLS464KRANCNFSM4W4KBW2Q.
No problem, glad it's working now.
Describe the bug Ok, a small disclaimer to start of with: I don't know if this problem is caused by prettier.el. But I don't know where else to start, and it seemed logical to start here, because the problem seems to be related to prettier.el, which of course does not mean it is caused by prettier.el. In other words, I would not be surprised if this is not at all caused by prettier.el:)
First things first. I'm on:
The title pretty much explains the problem: Emacs crashes(or is running in some kind of infinite loop) when I am using prettier.el (either in an html, css or javascript file) and saving a file with the cursor the last line of said file. I noticed that it doesn't crash when I switch prettier.el off. My own assessment is that this is either something in prettier.el, or perhaps some kind of conflict issue with another package which I haven't been able to find out. When I press ctrl+g, I regain control of emacs however.
Link to
M-x prettier-info
output https://gist.github.com/MPE2016/dc6cdbf92dabcaff0a39ba0d69c1f909To Reproduce See bug description
Expected behavior No crash of emacs.
Additional context not applicable