lapce / lapce

Lightning-fast and Powerful Code Editor written in Rust
https://lap.dev/lapce/
Apache License 2.0
34.6k stars 1.04k forks source link

Behaviour with stale socket is confusing #1034

Closed lnicola closed 1 year ago

lnicola commented 2 years ago

So I saw your release announcement, installed 0.1.3 with the Rust plugin, played with it a little, then upgraded to 0.2. The old plugin was gone, so I reinstalled it. The editor started RA according to the messages below, then got stuck using 100% CPU and crashed after 5-10 seconds:

(lapce:1694872): GLib-GIO-CRITICAL **: 09:04:55.046: This application can not open files.
host notificaton experimental/serverStatus not handled
host notificaton experimental/serverStatus not handled
Gdk-Message: 09:06:13.396: Lost connection to Wayland compositor.

That's fine, but then it didn't start any more. I had to strace it to figure out it was just writing something to .local/share/lapce-stable/local.sock.

panekj commented 1 year ago

Duplicate of #1143

lnicola commented 1 year ago

I still think this is a bug. I don't know any other app that behaves like this, and you can't expect users to figure out they have to delete something every time the editor crashes and doesn't start any more.

panekj commented 1 year ago

you can't expect users to figure out they have to delete something every time the editor crashes and doesn't start any more.

but it was fixed

lnicola commented 1 year ago

Okay. Sorry, I missed https://github.com/lapce/lapce/issues/1143#issuecomment-1247188446.