Skip to content

[BUG]Error when switching sessions when close_filetypes_on_save contains snacks_terminal #508

Description

@waldnzwrld

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  • Use Snacks terminal
  • Add "snacks_terminal" to 'close_filetypes_on_save'
  • Open Snacks terminal in a session
  • Change sessions
  • See error

Expected behavior
A clear and concise description of what you expected to happen.

  • No error when closing snacks terminal on session change

Screenshots
If applicable, add screenshots to help explain your problem.

Error detected while processing TermClose Autocommands for "<buffer=13>":
Terminal exited with code -1.
Check for any errors.

Checkhealth
Paste the contents of checkhealth auto-session here

==============================================================================
auto-session:                                                               ✅

Setup ~
- ✅ OK setup() called

Config ~
- ✅ OK No config issues detected

Current Config ~
- {
    allowed_dirs = { "/Users/waldnzwrld/Code/*", "/Users/waldnzwrld/.config/*" },
    args_allow_files_autosave = true,
    auto_create = true,
    auto_save = true,
    close_filetypes_on_save = { "sidekick_terminal", "snacks_terminal" },
    log_level = "error",
    session_lens = {
      load_on_setup = true,
      mappings = {},
      picker = "snacks"
    }
  }

General Info ~
- Session directory: /Users/waldnzwrld/.local/share/nvim/sessions/
- Current session: /Users/waldnzwrld/.config/nvim
- Current session file: /Users/waldnzwrld/.local/share/nvim/sessions/%2FUsers%2Fwaldnzwrld%2F%2Econfig%2Fnvim.vim
- Selected picker: snacks

Baseline (please complete the following information):

  • Result of set sessionoptions?:
  • OS. e.g uname -a: MacOS
  • Neovim version nvim --version0.11.5
  • URL to your current config (if public)

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions