Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Attempt to remove previous state when starting the server #315

Closed
wants to merge 1 commit into from

Conversation

robem
Copy link
Contributor

@robem robem commented Apr 17, 2024

While attempting to figure out why highlighting is getting screwed unpredictably #223 , I send out #314 but this introduced error messages on startup when launching kakoune. Hence, this change is more radical. I suspect that previous sockets/buffers/fifos remain which corrupt new sessions. This is a "quickfix" to simply remove all previous state. @hadronized I assume there is a reason why you didn't do this in the first place.

So far, this has been the only fix that is 100% reliable for me.

@robem robem changed the title Attempt to remove previous when starting the server Attempt to remove previous state when starting the server Apr 17, 2024
@robem robem force-pushed the robem/remove-previous-state branch from 4bf7848 to 3d47bdf Compare April 17, 2024 21:27
@hadronized
Copy link
Owner

Yes, we cannot really do that, because you will also remove all data associated with sessions. Maybe there is some bugs in the code that reloads session data, but that code is needed for situations like you shutdown KTS while you have a couple of sessions running, or while a session is frozen due to whatever bug in KTS. Restarting a server will allow to pick up the previously active sessions and let them run again without having to restart everything everywhere.

Repository owner deleted a comment from dsabadie-datadog Apr 24, 2024
@hadronized hadronized closed this Apr 24, 2024
@robem robem deleted the robem/remove-previous-state branch April 26, 2024 12:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants