Skip to content

Errors when pasting large screenshot images #20

@ghost

Description

I've encountered an issue with this plugin where it throws error to paste images that are captured from large screenshot areas. This problem does not occur with smaller images. Here are the details:

  • Neovim Version: 0.11.4
  • Operating System: Void Linux

Steps to Reproduce:

  1. Take a large screenshot (e.g., the entire screen or a significant portion of it).
  2. Copy the screenshot to the clipboard.
  3. Open a file in Neovim and try to paste the image using Pastify.nvim.

Expected Behavior:
The image should be uploaded.

Actual Behavior:
The plugin throws errors:

:Pastify
Error detected while processing function provider#python3#Call:
line    1:
E5108: Error executing lua Vim:Task exception was never retrieved
stack traceback:
        [C]: at 0x558b8ab76400

and the upload takes forever.

Additional Information:

  • Smaller screenshots paste without any issues.
  • The issue persists across different file types and buffer configurations.

Please let me know if you need any further information or if there are any specific logs I can provide to help diagnose the issue.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions