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

Go to File not showing files that show up fine in Explorer #39440

Closed
tpejsa opened this issue Dec 1, 2017 · 14 comments
Closed

Go to File not showing files that show up fine in Explorer #39440

tpejsa opened this issue Dec 1, 2017 · 14 comments
Assignees
Labels
info-needed Issue requires more information from poster search Search widget and operation issues

Comments

@tpejsa
Copy link

tpejsa commented Dec 1, 2017

  • VSCode Version: Code 1.17.2 (b813d12, 2017-10-16T13:57:00.652Z)
  • OS Version: Linux x64 4.4.0-66-generic
  • Extensions:
Extension Author (truncated) Version
cpptools ms- 0.14.3
trailing-spaces sha 0.2.11

I'm working with a huge codebase (100,000+ files in the visible tree, plus another 1,000,000+ in excluded directories).

I noticed that some files don't show up in Go to File. These files are not excluded and they show up fine in Explorer. They can also be opened just fine in the editor. In fact, after you open them, they start showing up in Go to File!

Steps to Reproduce:

  1. Open a huge codebase.
  2. Ctrl + P
  3. Type in name of some file in the tree. Repeat until you find one that should show up, but doesn't.
  4. Find the file in Explorer.
  5. Open the file.
  6. Ctrl + P
  7. Type in the name of the file. It should show up now.

Reproduces without extensions: Yes/No

@vscodebot vscodebot bot added the file-explorer Explorer widget issues label Dec 1, 2017
@isidorn isidorn added quick-pick Quick-pick widget issues and removed file-explorer Explorer widget issues labels Dec 4, 2017
@isidorn isidorn assigned bpasero and unassigned isidorn Dec 4, 2017
@bpasero bpasero added search Search widget and operation issues and removed quick-pick Quick-pick widget issues labels Dec 4, 2017
@bpasero bpasero assigned roblourens and unassigned bpasero Dec 4, 2017
@roblourens
Copy link
Member

Hm, I can't repro in the Chromium codebase which is my test for huge workspaces. We have a result count limit, but that applies to actual results, not the workspace in general.

Is it possible that it's excluded by a search.exclude setting? Is there a consistent set of files that are missing, or just random ones sometimes?

@tpejsa
Copy link
Author

tpejsa commented Dec 6, 2017

This definitely happens for files that are not in search.exclude or file.exclude. Interestingly, if I delete .browse.VC.db, all the files start showing up again, but after a while some of them stop showing up again. It's like the index gets partially corrupted after a while.

I can't say for sure whether this happens for random files or always the same set of files. Seems more like the former.

@roblourens
Copy link
Member

roblourens commented Dec 6, 2017

.browse.VC.db is from the cpp extension, shouldn't affect this issue.

I need to try it in Linux too...

@tpejsa
Copy link
Author

tpejsa commented Dec 6, 2017

Maybe restarting vscode is what fixed it then.

@roblourens
Copy link
Member

I notice that you're on a slightly old version, can you try downloading the Insiders' build and tell me whether it reproes there? I tried some more and still can't repro.

https://code.visualstudio.com/insiders

@SqueezeToyAliens
Copy link

SqueezeToyAliens commented Dec 11, 2017

Windows 10 Home Edition (64 bit)
VSCode 1.18.1

Hi guys,
I'm having the same problem for both my web(default support) and Python(with the official Python extension installed) projects. For some of those(web projects) VSCode works fine but for the others that indexing problem occurs. I deleted any cache/settings both for my user and projects and even uninstalled(then re-installed) VSCode but it still occurs in the same projects. For those(with the indexing problem), I can only find files(quick open, search in files, etc.) that has been opened already in the editor. I tried the Insiders build(1.19.0-insider) and it doesn't seem to be solved(yet) there.

Regards,
Someone who really wants to use this editor more

@roblourens
Copy link
Member

@ElranKadosh This issue is about very large projects - 100,000+ files included. Is that the case for your projects? If not, open a new issue and look very carefully at your search.exclude and files.exclude settings at the folder and user level.

@SqueezeToyAliens
Copy link

SqueezeToyAliens commented Dec 12, 2017

Hi Rob, FYI, I just did:
#40076

These were medium sized projects (22k and 30k files). Thanks very much!

@chrmarti chrmarti added the info-needed Issue requires more information from poster label Jan 4, 2018
@chrmarti
Copy link
Contributor

chrmarti commented Jan 4, 2018

@tpejsa Did you have a chance to retry with a recent version?

@vscodebot
Copy link

vscodebot bot commented Jan 11, 2018

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Jan 11, 2018
@kzhui125
Copy link

I have the same issue, go to file is unusable for me..
@roblourens

@kzhui125
Copy link

image
1

@kzhui125
Copy link

Update:
after deleting .gitignore it works.

How to use "ctrl + p" to search files ignored by .gitignore?

@roblourens
Copy link
Member

You can set "search.useIgnoreFiles": false to disable this.

@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster search Search widget and operation issues
Projects
None yet
Development

No branches or pull requests

7 participants