unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [BUG] notmuch-search: notmuch search process already running for query
@ 2024-01-09 15:02 Sławomir Grochowski
  2024-01-12  3:01 ` David Bremner
  0 siblings, 1 reply; 2+ messages in thread
From: Sławomir Grochowski @ 2024-01-09 15:02 UTC (permalink / raw)
  To: notmuch

Dear All,

I just have started using notmuch with Emacs.

When I run `notmuch-poll-and-refresh-this-buffer` which run script '.notmuch/hooks/pre-new':

#!/bin/sh
mbsync -L gmail

Most of the time it gives me an error & message:
"notmuch-search: notmuch search process already running for query ‘tag:inbox’".

But sometimes it works properly and I can download new emails.

So I have to run it a few times to update my emails.
It's pretty annoying.
How to fix that?

notmuch --version: notmuch 0.38.2+20~g52a5446
emacs-version: GNU Emacs 29.1.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2023-07-30

Regards,
Sławomir
\r

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [BUG] notmuch-search: notmuch search process already running for query
  2024-01-09 15:02 [BUG] notmuch-search: notmuch search process already running for query Sławomir Grochowski
@ 2024-01-12  3:01 ` David Bremner
  0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2024-01-12  3:01 UTC (permalink / raw)
  To: Sławomir Grochowski, notmuch

Sławomir Grochowski <slawomir.grochowski@gmail.com> writes:

> Dear All,
>
> I just have started using notmuch with Emacs.
>
> When I run `notmuch-poll-and-refresh-this-buffer` which run script '.notmuch/hooks/pre-new':
>
> #!/bin/sh
> mbsync -L gmail
>
> Most of the time it gives me an error & message:
> "notmuch-search: notmuch search process already running for query ‘tag:inbox’".
>

I could reliably duplicate this in two ways: one is calling the function
twice in a row, like

(defun doit ()
  (interactive)
  (notmuch-poll-and-refresh-this-buffer)
  (message "completed %f" (float-time))
  (notmuch-poll-and-refresh-this-buffer))

the second way is calling

    (notmuch-poll-and-refresh-this-buffer)

or just

   (notmuch-refresh-this-buffer)

in a buffer when the search was still being loaded. That can happen with
larger searches (more than 10k threads, roughly).

Do either of those cases seem possible to you?\r

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-12  3:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-09 15:02 [BUG] notmuch-search: notmuch search process already running for query Sławomir Grochowski
2024-01-12  3:01 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).