Skip to content

bug: snacks picker action is broken #1075

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
4 tasks done
dapetcu21 opened this issue Mar 7, 2025 · 3 comments
Open
4 tasks done

bug: snacks picker action is broken #1075

dapetcu21 opened this issue Mar 7, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@dapetcu21
Copy link

dapetcu21 commented Mar 7, 2025

Did you check docs and existing issues?

  • I have read all the noice.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of noice.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.10.4

Operating system/version

MacOS 15.0.1

Describe the bug

I get this error when pressing enter on a notification in the snacks picker:

Error executing vim.schedule lua callback: ...hare/nvim/lazy/snacks.nvim/lua/snacks/picker/actions.lua:97: Either item.buf or item.file is required
stack traceback:
	[C]: in function 'assert'
	...hare/nvim/lazy/snacks.nvim/lua/snacks/picker/actions.lua:97: in function 'jump'
	...hare/nvim/lazy/snacks.nvim/lua/snacks/picker/actions.lua:36: in function <...hare/nvim/lazy/snacks.nvim/lua/snacks/picker/actions.lua:35>

Steps To Reproduce

  1. :Noice pick
  2. Select a notification
  3. Press enter

Expected Behavior

Some meaningful action (like yanking the contents of the notification) or no action

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    { "folke/noice.nvim", opts = {}, dependencies = { "folke/snacks.nvim" } },
    { "folke/snacks.nvim", opts = { notifier = {}, picker = {} } }
  },
})
@dapetcu21 dapetcu21 added the bug Something isn't working label Mar 7, 2025
Copy link
Contributor

github-actions bot commented Apr 7, 2025

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale label Apr 7, 2025
@themodrnhakr
Copy link

Noting that I am also having the same issue.

@github-actions github-actions bot removed the stale label Apr 10, 2025
@NovaViper
Copy link

Can confirm the same issue on NixOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants