Search all files (ctrl+shift+f) doesn't find results in files with very long filepaths unless opened in the editor
See original GitHub issue- VS Code Version: 1.53.1 5d424b828ada08e1eb9f95d6cb41120234ef57c7 x64
- OS Version: Windows 10 Pro - Build 19041
Steps to Reproduce:
- Make a new file with a very long filepath in vs code.
- When the file is not open in the editor, use ctrl+shift+f to search for any content in the file. No results appear.
- Open the file and search again. Results appear.
Specific steps to reproduce on Windows 10:
- Make a number of nested folders in windows explorer until this error appears:
- Add more nested folders/files to this directory using VS code.
- Make a txt file with a specific string in it and search for this string when the file is not opened in the editor.
The error seems to occur with filepaths exceeding the max filepath length of windows explorer.
Examples: The bug in action:
Example Path: C:\Users<MY-USERNAME>\Desktop\long-named-foler-to-reproduce-bug-of-eternal-destruction\long-named-child-foler-to-reproduce-bug-of-eternal-destruction\long-named-child-foler-to-reproduce-bug-of-eternal-destruction\another-long-nameanother-long-nameanother-long-nameanother-long-name\deep.txt
Does this issue occur when all extensions are disabled?: Yes
Console output:
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:23 (3 by maintainers)
Top Results From Across the Web
Find in files does not show the results - Visual Studio Feedback
IĀ“m searching for text within the solution (Ctrl + Shift + F) that is definitely present. The āFindā pane does not list the...
Read more >How to search for text in all files in a directory? - Stack Overflow
You can do Edit, Find in Files (or Ctrl + Shift + F - default key binding, Cmd + Shift + F on...
Read more >Searching Everywhere | WebStorm Documentation - JetBrains
You can search for files, actions, classes, symbols, settings, ... Action - Ctrl+Shift+A . You can find any action even if it doesn't...
Read more >Error message when you open or save a file in Microsoft Excel
'<Filename>.<extension>' could not be found. Check the spelling of the file name, and verify that the file location is correct. If you are...
Read more >Find and replace in text files with UltraEdit
If this option is selected, as soon as you press Next, the Find String List will open with a list of all lines...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same issue. Canāt resolve it using @BrandonClapp approach, because the project itself has deep file structure. Those part (with long paths) is developed by another team using Mac, so they donāt have any issues. As a result, I forced to switch to Atom when I need to find something across the whole project.
Is there any update?
I love vsCode. But looking for text in files in Atom
Please, help