Skip to content
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

Error when rapidly cycling through previews #5

Open
olidacombe opened this issue Jan 5, 2023 · 0 comments
Open

Error when rapidly cycling through previews #5

olidacombe opened this issue Jan 5, 2023 · 0 comments

Comments

@olidacombe
Copy link
Owner

E.g.

E5108: Error executing lua .../site/pack/packer/start/plenary.nvim/lua/plenary/job.lua:405: Failed to spawn process: {
  _additional_on_exit_callbacks = {},
  _shutdown_check = <userdata 1>,
  _stderr_results = {},
  _stdout_results = {},
  args = { "-f", "dragon" },
  command = "cowsay",
  enable_handlers = true,
  enable_recording = true,
  interactive = true,
  pid = "EMFILE: too many open files",
  stderr = <userdata 2>,
  stdin = <userdata 3>,
  stdout = <userdata 4>,
  user_data = {},
  writer = { "ok" },
...

too many open files suggests we might need a finite pool of Jobs, and we render "loading..." in the preview buffer before updating with the rendered result when ready. Or hopefully there's a simpler solution. I've only scratched the surface of :help telescope.previewers and I know there are at least some cache keys to take care of.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant