Skip to content

Notifications regresseion: swap files of open editor session get in the way of notifications cron job #1050

@Maltimore

Description

@Maltimore

Describe the bug

This is most likely due to the reent change in handling treesitter, with it opening unlisted buffers in the background that apparently create .swp files in ~/.local/state/nvim/swap/.
Once I open an org file in nvim, the the cronjob that runs every minute to check for notifications crashes. The error is the typical Found a swap file by the name "~/.local/state/nvim/swap/<redacted>.swp" etc.

checkhealth

==============================================================================
orgmode: ✅

Orgmode ~

  • ✅ OK Treesitter grammar installed (version 2.0.0)
  • ✅ OK Setup called
  • ✅ OK org_agenda_files configured
  • ✅ OK org_default_notes_file configured

Steps to reproduce

  1. Open an org file in nvim
  2. Observe error notifications every minute
    Should be noted that not only do the notifications not work, but the nvim session started by the cron job doesn't exit so you accumulate a new nvim session every minute.

Expected behavior

no error

Emacs functionality

n/a

Minimal init.lua

I skip this for now, as it's rather tedious due to including agenda files. If you can't reproduce, I'll work on a minimal init.

Screenshots and recordings

No response

nvim-orgmode version

master branch f37b31b

OS / Distro

KDE Neon

Neovim version/commit

nightly, or 0.11.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions