-
Notifications
You must be signed in to change notification settings - Fork 28.9k
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
Search error: ENAMETOOLONG #98514
Comments
Can you share some more details and check whether the tips in https://github.com/microsoft/vscode/wiki/Search-Issues#missing-search-results help? |
Hello Rob, I have read the tips. The files that I try to open with Ctrl + P are not in a seach.exclude setting, files.exclude settings or in .gitignore settings. If I try to search them with Ctrl + shift + F, the files are found. The files are encoded in UTF. I have notice that when I try to quick open with Ctrl + P a file, a message "spawn ENAMETOOLONG" is displayed in the status popup window. I some logs can be enabled to get more information, could you tell me how to enable them and find them ? |
Ah, that's a good clue. We are probably generating a command line command which is too long.
|
Here is the log output. |
Ok, yeah you seem to have tons of excluded folders, so the command that we generate is too long. I should try to improve this experience so I'll leave this open. |
You can work around it by getting rid of some excluded patterns, or moving those patterns to a |
Hello, Thank you for your advices of workaround by removing some excluded patterns. He have also noticed that when the paths overrides 70 characters, there are some problems to search. Regards, Xavier |
I have the same issue, the message "spawn ENAMETOOLONG" pops up in several occations (including search). |
As mentioned in the linked issue #149727: introducing an option to not add the excluded files to the search command parameters would solve this issue (for me). The files you want to exclude from the search can be added to an .ignore file |
Issue is still apparent |
Does anyone have a temporary fix or something so I could try debugging this problem? It's really annoying since I use the search option very often. |
This problem JUST started happening to me today. It comes/goes based on the setting of the exclude button in search: However, my list of exclusions seems short: and it happens when the exclusions are NOT excluding anything (i.e. when all files are searched). I have seen other reports based on number of open files, or number of source-control-pending files, but I have neither. Can someone please provide more details about the cause and workarounds/fixes here? This has apparently been a long-standing bug. Thanks! 2023-05-26 16:03:02.918 [error] A system error occurred (spawn ENAMETOOLONG): Error: A system error occurred (spawn ENAMETOOLONG) |
When I press on Ctrl + P and enter the name of some JS or TS file, the files are not found. Only the last opened files are available. This is a recent problem, that appeared on the 1.45.1 version of Visual Studio code.
The text was updated successfully, but these errors were encountered: