question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

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:

  1. Make a new file with a very long filepath in vs code.
  2. When the file is not open in the editor, use ctrl+shift+f to search for any content in the file. No results appear.
  3. Open the file and search again. Results appear.

Specific steps to reproduce on Windows 10:

  1. Make a number of nested folders in windows explorer until this error appears: image
  2. Add more nested folders/files to this directory using VS code.
  3. 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: 2832acd2-2bfb-43e3-a0b0-be5867ba5f6e

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: image

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:5
  • Comments:23 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
starky27commented, Apr 26, 2022

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.

2reactions
yuriy-bezrukovcommented, Nov 22, 2022

Is there any update?

I love vsCode. But looking for text in files in Atom

Please, help

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found