[Fuzzy File Search] ...
Extension
https://www.raycast.com/erykksc/fuzzy-file-search
Raycast Version
1.102.7
macOS Version
14.7.8
Description
Error: Worker terminated due to reaching memory limit: JS heap out of memory
Worker.
Steps To Reproduce
Installed the extension Pressed Enter (Open Search Files)
Current Behaviour
The message "Something went wrong" appeared immediately after launching the extension. Pressing enter again (reload), doesn't do anything, just loops to the same error message
Expected Behaviour
No response
Thank you for opening this issue!
🔔 @erykksc you might want to have a look.
💡 Author and Contributors commands
The author and contributors of erykksc/fuzzy-file-search can trigger bot actions by commenting:
@raycastbot close this issueCloses the issue.@raycastbot close as not plannedCloses the issue as not planned.@raycastbot rename this issue to "Awesome new title"Renames the issue.@raycastbot reopen this issueReopens the issue.@raycastbot assign meAssigns yourself to the issue.@raycastbot good first issueAdds the "Good first issue" label to the issue.@raycastbot keep this issue openMake sure the issue won't go stale and will be kept open by the bot.
Hey,
Thanks, @InitPatch, for reporting the bug. Currently, the extension works by loading a file list using fd into memory, which is then displayed and filtered with fuzzy search. When the file list is too long, the heap memory limit is reached. Raycast restricts the amount of memory an extension can use and terminates it once it tries to allocate more.
I’m reworking the extension to reduce memory usage and make it possible to search through large file lists.
As a quick fix, you can edit the file ~/.fdignore and add paths you want the extension to ignore. For example, to ignore the Downloads folder, add the line:
Downloads/
By default, I’ve already added Library/ and **.photoslibrary, so with the extra line it would look like this:
Library/
**.photoslibrary
Downloads/
Tip: Focus on ignoring directories that contain a large number of files, since ignoring directories with only a few won’t make much of a difference.
@raycastbot assign me