Skip to content

Conversation

@Wilfred
Copy link
Contributor

@Wilfred Wilfred commented Aug 8, 2023

The default value for maxBuffer is 1 MiB[1]. If the discover project command returns stdout or stderr that is greater than 1 MiB, the extension would error with "RangeError: stderr maxBuffer length exceeded".

Set the default value for maxBuffer to 10 MiB for project discovery.

[1] https://nodejs.org/api/child_process.html#child_processexeccommand-options-callback

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 8, 2023
The default value for maxBuffer is 1 MiB[1]. If the discover project
command returns stdout or stderr that is greater than 1 MiB, the
extension would error with "RangeError: stderr maxBuffer length
exceeded".

Set the default value for maxBuffer to 10 MiB for project discovery.

[1] https://nodejs.org/api/child_process.html#child_processexeccommand-options-callback
@Wilfred Wilfred force-pushed the discover_command_max_buffer branch from a410e72 to 0ef541e Compare August 10, 2023 19:28
@Veykril
Copy link
Member

Veykril commented Aug 15, 2023

@bors r+

@bors
Copy link
Contributor

bors commented Aug 15, 2023

📌 Commit 0ef541e has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Aug 15, 2023

⌛ Testing commit 0ef541e with merge d548146...

@bors
Copy link
Contributor

bors commented Aug 15, 2023

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing d548146 to master...

@bors bors merged commit d548146 into rust-lang:master Aug 15, 2023
@Wilfred Wilfred deleted the discover_command_max_buffer branch August 15, 2023 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants