You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been using the plenary.curl module recently, especially it's capability to stream http responses using the underlying plenary.jobon_stdout mechanism.
While using it, I discovered a few weired edge-cases where the last chunks of streamed data is only available via job:result(), but not the on_stdout callback.
As this is unnecessarily complicating my usage of the plenary.curl streaming functionality, as I would have to use both on_stdout and then at the end compare what has not yet been processed from the job:result(), I would like to resolve this bug.
Please let me know if I have misunderstood anything or you have further thoughts.
I will open a PR with a potential solution.
Thanks a lot!
The text was updated successfully, but these errors were encountered:
msvechla
added a commit
to msvechla/plenary.nvim
that referenced
this issue
Dec 13, 2024
The current condition prematurely quits processing of data in on_output
in some edge-cases.
In these cases `job:result()` will have all data, but not everyting was
sent through the `on_output` pipes.
Closesnvim-lua#634
msvechla
added a commit
to msvechla/plenary.nvim
that referenced
this issue
Dec 13, 2024
Hi and thanks for this awesome project!
I have been using the
plenary.curl
module recently, especially it's capability to stream http responses using the underlyingplenary.job
on_stdout
mechanism.While using it, I discovered a few weired edge-cases where the last chunks of streamed data is only available via
job:result()
, but not theon_stdout
callback.Looking at the tests I found two related test cases that are marked as
pending
, so it seems like this has been a known issue.As this is unnecessarily complicating my usage of the
plenary.curl
streaming functionality, as I would have to use bothon_stdout
and then at the end compare what has not yet been processed from thejob:result()
, I would like to resolve this bug.Please let me know if I have misunderstood anything or you have further thoughts.
I will open a PR with a potential solution.
Thanks a lot!
The text was updated successfully, but these errors were encountered: