Skip to content

fix(mason): add nil check to on_stderr callback in install-pylsp-plugins#1431

Merged
charliie-dev merged 1 commit intomainfrom
fix/pylsp-plugin-install(mason)
Mar 3, 2025
Merged

fix(mason): add nil check to on_stderr callback in install-pylsp-plugins#1431
charliie-dev merged 1 commit intomainfrom
fix/pylsp-plugin-install(mason)

Conversation

@Jint-lzxy
Copy link
Collaborator

The luv doc says the on_stderr callback is also called whenever the program exits, not just when smth is written to stderr. So we should only notify if there's a real error in msg_stream.

The luv doc says the on_stderr callback is also called whenever the program
exits, not just when smth is written to stderr. So we should only notify if
there's a real error in msg_stream.

Signed-off-by: Jint-lzxy <50296129+Jint-lzxy@users.noreply.github.com>
@Jint-lzxy Jint-lzxy linked an issue Mar 3, 2025 that may be closed by this pull request
3 tasks
Copy link
Collaborator

@charliie-dev charliie-dev left a comment

Choose a reason for hiding this comment

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

works for me!

@charliie-dev charliie-dev requested a review from misumisumi March 3, 2025 05:30
@charliie-dev
Copy link
Collaborator

@misumisumi could u check if u got time?

@misumisumi
Copy link
Collaborator

works for my env too!

@charliie-dev charliie-dev merged commit 00b79f3 into main Mar 3, 2025
4 checks passed
@charliie-dev charliie-dev deleted the fix/pylsp-plugin-install(mason) branch March 3, 2025 05:50
This was referenced Apr 3, 2025
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.

[BUG] notification error when installing pylsp plugins

3 participants