nvim-picgo icon indicating copy to clipboard operation
nvim-picgo copied to clipboard

Failed to upload an image on warnings.

Open xbot opened this issue 4 months ago • 1 comments

When the picgo-plugin-avif plugin is added, there is a warning while uploading images:

❯ picgo u [PicGo INFO]: Before transform [PicGo INFO]: beforeTransformPlugins: avif running [PicGo INFO]: Transforming... Current transformer is [path] [PicGo WARN]: can't get /Users/USER/.picgo/picgo-clipboard-images/20250830165709085.avif's image size [PicGo WARN]: fallback to 200 * 200 [PicGo INFO]: Before upload [PicGo INFO]: Uploading... Current uploader is [github] [PicGo INFO]: afterUploadPlugins: avif running [PicGo SUCCESS]: https://raw.githubusercontent.com/USER/REPO/master/blog/20250830165709085.avif

But the image is uploaded successfully.

nvim-picgo always fail when this warning is met:

local stop_jobs_message = {
    "%[PicGo WARN%]: can't get",
    -- Well, I did forget the full command for these 2 strings, but this will also match
    -- just doesn't look pretty ..
    "%[PicGo ERROR%]",
    "does not exist",
}

xbot avatar Aug 30 '25 09:08 xbot

@askfiy This warning should not fail this plugin.

xbot avatar Oct 20 '25 08:10 xbot