Skip to content
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

Searching in files breaks for large workspaces #8242

Open
csweichel opened this issue Jul 27, 2020 · 2 comments
Open

Searching in files breaks for large workspaces #8242

csweichel opened this issue Jul 27, 2020 · 2 comments
Labels
bug bugs found in the application performance issues related to performance search in workspace issues related to the search-in-workspace

Comments

@csweichel
Copy link

Bug Description:

When searching in too large a workspace the search can silently fail. In the logs there's an error message that may be related:

RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (child_process.js:348:14)\n    at Socket.emit (events.js:189:13)\n    at addChunk (_stream_readable.js:284:12)\n    at readableAddChunk (_stream_readable.js:261:13)\n    at Socket.Readable.push (_stream_readable.js:220:10)\n    at Pipe.onStreamRead (internal/stream_base_commons.js:94:17)

Steps to Reproduce:

  1. Open a large workspace
  2. Search for a string in all files

Additional Information

  • Operating System:
  • Theia Version: latest in Gitpod
@akosyakov akosyakov added bug bugs found in the application performance issues related to performance search in workspace issues related to the search-in-workspace labels Jul 27, 2020
@akosyakov
Copy link
Member

Node.js imposes max buffer constraints on child processes. I've noticed during the fs refactoring that VS Code refactors search to streaming because of this reason. We should do the same to support search in large workspaces.

@FernandoAscencio
Copy link
Contributor

This seems to have been addressed.
Latest commit does not log the error and yields
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application performance issues related to performance search in workspace issues related to the search-in-workspace
Projects
None yet
Development

No branches or pull requests

3 participants