Skip to content

asyncio: pipe_data_received: call _on_error #423

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

Closed
wants to merge 1 commit into from

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Jan 14, 2020

_on_stderr does not exist.

(found by mypy)

I might be missing something here, and it does not appear to be covered with tests.

`_on_stderr` does not exist.
@codecov

This comment has been minimized.

@@ -68,7 +68,7 @@ def pipe_connection_lost(self, fd, exc):
def pipe_data_received(self, fd, data):
"""Used to signal `asyncio.SubprocessProtocol` of incoming data."""
if fd == 2: # stderr fd number
self._on_stderr(data)
self._on_error(data)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_on_error is for a complete error message, not for streaming data. One could collect all the pieces and add the joined text in the process_exited call possibly. Or just change it to pass for now.

@wookayin
Copy link
Member

wookayin commented Oct 15, 2023

Actually at the moment, this line will be never called (until neovim's --embed RPC starts to write something on stderrs). This can be superseded by #543.

@wookayin
Copy link
Member

This was fixed by #543.

@wookayin wookayin closed this Dec 26, 2023
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

Successfully merging this pull request may close these issues.

3 participants