vscode: findFiles sometimes fails, fixed by changing to fast-glob

Does this issue occur when all extensions are disabled?: Yes/No

It occurs for me(extension creator) rarely so unable to test. Another extension user(also on Windows) had it quite frequently though. https://github.com/boocs/ue4-intellisense-fixes/issues/12

My extension requires the cpptools extension.

  • VS Code Version: 1.66.1 (It’s been happening for months but can’t tell you what version it started in)
  • OS Version: 21H1

Steps to Reproduce: Use findFile with async/await in an extension. My extension runs on startup with the activate function which is marked async. findFiles exclude is set to null in all occurrences.

It happens very rarely for me so it’s hard to reproduce.

I did fix this bug, it seems, by replacing all findFiles with fast-glob. https://github.com/boocs/ue4-intellisense-fixes/issues/12

Marks against this not being a bug:

  1. No one else has reported this
  2. My code isn’t the best…
  3. My code doesn’t have tests

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (6 by maintainers)

Most upvoted comments

Let me see if I can create a faux UE project, that still errors, that you can test. It might take till tomorrow for me to post though.