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
pylsp-snap 28.2 interaction problem #44
Comments
|
Thanks for reporting this issue. Can you try deleting/moving aside any old bytecode (.elc) files and see if this helps? |
|
@mazerj did you have a chance to try my suggestion above? is this still an issue for you? |
|
Sorry, I got side tracked and needed to finish some stuff, so I just downgraded back to 28.1. I can give it a try over the weekend, if that's useful. Am I still the only one seeing this? |
|
I haven't received any similar reports so I think you may be the only one. Let me know what you find. |
|
Hi Alex, Here's the example: def Foo:
# comment out next line and works ok, incomplete comment -> locks up
"""
pass
class Bar:
labelmasks: torch.Tensor
"""blah blah blah - single line common ok, >1 line locks up
"""
class Baz:
def __init__(self):
"""apostrophe in this quote causes lock up. It's better to..."""
pass |
|
@alexmurray By the way -- I completely got rid of my entire ~/.emacs.d dir and opened a file containing the fragment above from bash and it freezes immediately. If you save that frag to |
|
Apologies for radio silence on this issue. Can you confirm if this is still affecting you? |
|
Yep. Save that fragment to a file and just open it with |
|
FWIW I can reproduce this running the emacs 28.2 deb on Ubuntu 23.04 - so this doesn't seem specific to the snap. Also I was able to get a backtrace by sending I can also reproduce it when running the snap from the beta channel which is based on the emacs-29 upstream branch so it seems this is still not known about upstream. As such, it would be worth reporting this upstream ( I will close this issue as it is not specific to the emacs snap. |
|
I know this is closed, but just wanted to follow up with the emacs bug report info. My report can be found here: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63363 There were two immediate responses - one saying this looks like https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62325, which it definitely does. The chain seems to indicate this should be fixed in emacs29, which seems strange, since if I'm reading your last response right, it still fails for you with 29.. |
|
And just out of curiosity, I pulled down a 28.2 flatpak just now and it does exactly the same thing as the 28.2 snap. So don't know what's different about the guy saying he can't replicate (on his custom debian build). |
|
@alexmurray Sorry -- I figured out the channels stufff. I just installed |
|
Ah you are right - sorry I am not sure how I tested it before but it definitely seems to be working fine now with emacs from the beta channel ( |
I'm still trying to track this down, but yesterday I updated the snap from 28.1 to 28.2 (linux mint cinnamon 20.2) and suddenly having problems where the
pylspserver used by python mode locks up the emacs session. It's something very specific related to triple-quote comment blocks occurring inside a function or class..Sorry for vague issue, but I'm still trying to find minimal example (will add here when I do), but reverting to 28.1 problem went away, so I'm pretty sure it's about something that changed between emacs snap 28.1->28.2 and not related to pylsp, which hasn't been touched on my machine (v1.4.1, installed from pip).
Wanted to get this out there, because it's a hard lock -- have to kill the process from a shell, so potentially can loose files/data with this one..
Will follow up with more details.
jamie
The text was updated successfully, but these errors were encountered: