thierryvolpiatto / psession

Yet another package for emacs persistent sessions
67 stars 13 forks source link

Errors from psession in Messages continue #20

Open tvraman opened 7 months ago

tvraman commented 7 months ago

here is an example. I suggest we not use async emacs to clean up the psessions dir? /home/raman/.emacs.d/elisp-objects/extended-command-history.el: raman@raman9 (pid 571531), Cannot resolve lock conflict in batch mode Psession: auto saving session done Opening input file: No such file or directory, /home/raman/.emacs.d/elisp-objects/psession-save-buffers-alist.el Psession: auto saving session done /home/raman/.emacs.d/elisp-objects/psession-save-buffers-alist.el: raman@raman9 (pid 571532), Cannot resolve lock conflict in batch mode Psession: auto saving session done [3 times]

thierryvolpiatto commented 7 months ago

"T. V. Raman" @.***> writes:

  1. ( ) text/plain (*) text/html

here is an example. I suggest we not use async emacs to clean up the psessions dir? /home/raman/.emacs.d/elisp-objects/extended-command-history.el: @. (pid 571531), Cannot resolve lock conflict in batch mode Psession: auto saving session done Opening input file: No such file or directory, /home/raman/.emacs.d/elisp-objects/psession-save-buffers-alist.el Psession: auto saving session done /home/raman/.emacs.d/elisp-objects/psession-save-buffers-alist.el: @. (pid 571532), Cannot resolve lock conflict in batch mode Psession: auto saving session done [3 times]

I never hit this even trying to reproduce your bug during one month with a 60s delay. However it seems there is some thing new in your report with this message: "Cannot resolve lock conflict in batch mode". After grepping emacs source it seems this message comes from "userlock.el", so I guess you are using this feature and it is the culprit, can you tell me how you use this and why (so that i can reproduce).

Thanks.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.*Message ID: @.***>

-- Thierry

tvraman commented 7 months ago

I'm not knowingly using user-lock.el -- what should I look for in my setup?

--

tvraman commented 7 months ago

following up to myself; doing a grep inside my elpa dir showed that folding-mode which I have used for nearly 30 years was calling userlock; I've uninstalled that package for now since I've mostly moved on from using it.

Will report back in a week if that fixes the issue.

--

thierryvolpiatto commented 7 months ago

"T. V. Raman" @.***> writes:

  1. ( ) text/plain (*) text/html

following up to myself; doing a grep inside my elpa dir showed that folding-mode which I have used for nearly 30 years was calling userlock; I've uninstalled that package for now since I've mostly moved on from using it.

Will report back in a week if that fixes the issue.

Thanks, but AFAIU the function ask-user-about-lock maybe called by emacs if another user edit the same file and BTW there is a lock file, do you have another emacs opened that use also psession?

-- Thierry

tvraman commented 7 months ago

No, I am on a laptop and only run one emacs session.

--