Skip to content

Conversation

@shplack
Copy link

@shplack shplack commented Jul 18, 2025

The default buffer limit for subprocess streams are 64kb. Requesting a large document could result in a larger response, raising an asyncio.exceptions.LimitOverrunError.

Set the subprocess limit from LanguageServerHandler.process_launch_info to allow overriding this limit when expecting larger responses.

For example:

lsp = LanguageServer(...)
lsp.server.process_launch_info.limit = 1024 * 64 * 2

@shplack shplack closed this Sep 10, 2025
@shplack shplack deleted the feature/set-process-limit branch September 10, 2025 03:42
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.

2 participants