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

Quick Open & Search fail to find/search files #182887

Closed
gBasil opened this issue May 18, 2023 · 4 comments
Closed

Quick Open & Search fail to find/search files #182887

gBasil opened this issue May 18, 2023 · 4 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@gBasil
Copy link

gBasil commented May 18, 2023

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

  • VS Code Version:
  • OS Version: Arch Linux ARM, kernel: 6.2.0-asahi-11-1-edge-ARCH (64-bit)

This has been an issue for a while. When you use Quick Open or try to search the folder, it will only show the files that are currently open and those that you've already opened.

Steps to Reproduce:

  1. Install Visual Studio Code (or VSCodium) on an Apple Silicon machine.
  2. Open a folder and try and search for a file

Logs in Window in the Output tab for searching "libre" in the cloned repo of web-scrobbler:

2023-05-18 00:59:07.570 [trace] KeybindingService#dispatch Ctrl+P [ Will dispatch command workbench.action.quickOpen ]
2023-05-18 00:59:07.570 [trace] CommandService#executeCommand workbench.action.quickOpen
2023-05-18 00:59:07.570 [trace] SearchService#search {"_reason":"openFileHandler","folderQueries":[{"folder":{"$mid":1,"fsPath":"/home/basil/code/misc/web-scrobbler","external":"file:///home/basil/code/misc/web-scrobbler","path":"/home/basil/code/misc/web-scrobbler","scheme":"file"},"excludePattern":{"**/.git":true,"**/.svn":true,"**/.hg":true,"**/CVS":true,"**/.DS_Store":true,"**/Thumbs.db":true,"**/.project":true,"**/.settings":true,"**/.classpath":true,"**/.vscode":true,"**/.factorypath":true,"**/.theos":true,"**/node_modules":true,"**/bower_components":true,"**/*.code-search":true,"src-tauri/target/**/*":true},"fileEncoding":"utf8","disregardIgnoreFiles":false,"disregardGlobalIgnoreFiles":true,"disregardParentIgnoreFiles":true,"ignoreSymlinks":false}],"usingSearchPaths":false,"maxResults":0,"type":1,"filePattern":"","sortByScore":true,"cacheKey":"id#5"}
2023-05-18 00:59:07.654 [trace] SearchService#search: 56ms
2023-05-18 00:59:07.935 [trace] KeybindingService#dispatch L [ No matching keybinding ]
2023-05-18 00:59:07.937 [trace] SearchService#search {"_reason":"openFileHandler","folderQueries":[{"folder":{"$mid":1,"fsPath":"/home/basil/code/misc/web-scrobbler","external":"file:///home/basil/code/misc/web-scrobbler","path":"/home/basil/code/misc/web-scrobbler","scheme":"file"},"excludePattern":{"**/.git":true,"**/.svn":true,"**/.hg":true,"**/CVS":true,"**/.DS_Store":true,"**/Thumbs.db":true,"**/.project":true,"**/.settings":true,"**/.classpath":true,"**/.vscode":true,"**/.factorypath":true,"**/.theos":true,"**/node_modules":true,"**/bower_components":true,"**/*.code-search":true,"src-tauri/target/**/*":true},"fileEncoding":"utf8","disregardIgnoreFiles":false,"disregardGlobalIgnoreFiles":true,"disregardParentIgnoreFiles":true,"ignoreSymlinks":false}],"usingSearchPaths":false,"maxResults":512,"type":1,"filePattern":"l","sortByScore":true,"cacheKey":"id#5"}
2023-05-18 00:59:07.941 [trace] SearchService#search: 3ms
2023-05-18 00:59:08.161 [trace] KeybindingService#dispatch I [ No matching keybinding ]
2023-05-18 00:59:08.163 [trace] SearchService#search {"_reason":"openFileHandler","folderQueries":[{"folder":{"$mid":1,"fsPath":"/home/basil/code/misc/web-scrobbler","external":"file:///home/basil/code/misc/web-scrobbler","path":"/home/basil/code/misc/web-scrobbler","scheme":"file"},"excludePattern":{"**/.git":true,"**/.svn":true,"**/.hg":true,"**/CVS":true,"**/.DS_Store":true,"**/Thumbs.db":true,"**/.project":true,"**/.settings":true,"**/.classpath":true,"**/.vscode":true,"**/.factorypath":true,"**/.theos":true,"**/node_modules":true,"**/bower_components":true,"**/*.code-search":true,"src-tauri/target/**/*":true},"fileEncoding":"utf8","disregardIgnoreFiles":false,"disregardGlobalIgnoreFiles":true,"disregardParentIgnoreFiles":true,"ignoreSymlinks":false}],"usingSearchPaths":false,"maxResults":512,"type":1,"filePattern":"li","sortByScore":true,"cacheKey":"id#5"}
2023-05-18 00:59:08.167 [trace] SearchService#search: 1ms
2023-05-18 00:59:08.445 [trace] KeybindingService#dispatch B [ No matching keybinding ]
2023-05-18 00:59:08.447 [trace] SearchService#search {"_reason":"openFileHandler","folderQueries":[{"folder":{"$mid":1,"fsPath":"/home/basil/code/misc/web-scrobbler","external":"file:///home/basil/code/misc/web-scrobbler","path":"/home/basil/code/misc/web-scrobbler","scheme":"file"},"excludePattern":{"**/.git":true,"**/.svn":true,"**/.hg":true,"**/CVS":true,"**/.DS_Store":true,"**/Thumbs.db":true,"**/.project":true,"**/.settings":true,"**/.classpath":true,"**/.vscode":true,"**/.factorypath":true,"**/.theos":true,"**/node_modules":true,"**/bower_components":true,"**/*.code-search":true,"src-tauri/target/**/*":true},"fileEncoding":"utf8","disregardIgnoreFiles":false,"disregardGlobalIgnoreFiles":true,"disregardParentIgnoreFiles":true,"ignoreSymlinks":false}],"usingSearchPaths":false,"maxResults":512,"type":1,"filePattern":"lib","sortByScore":true,"cacheKey":"id#5"}
2023-05-18 00:59:08.448 [trace] SearchService#search: 0ms
2023-05-18 00:59:08.567 [trace] KeybindingService#dispatch R [ No matching keybinding ]
2023-05-18 00:59:08.568 [trace] SearchService#search {"_reason":"openFileHandler","folderQueries":[{"folder":{"$mid":1,"fsPath":"/home/basil/code/misc/web-scrobbler","external":"file:///home/basil/code/misc/web-scrobbler","path":"/home/basil/code/misc/web-scrobbler","scheme":"file"},"excludePattern":{"**/.git":true,"**/.svn":true,"**/.hg":true,"**/CVS":true,"**/.DS_Store":true,"**/Thumbs.db":true,"**/.project":true,"**/.settings":true,"**/.classpath":true,"**/.vscode":true,"**/.factorypath":true,"**/.theos":true,"**/node_modules":true,"**/bower_components":true,"**/*.code-search":true,"src-tauri/target/**/*":true},"fileEncoding":"utf8","disregardIgnoreFiles":false,"disregardGlobalIgnoreFiles":true,"disregardParentIgnoreFiles":true,"ignoreSymlinks":false}],"usingSearchPaths":false,"maxResults":512,"type":1,"filePattern":"libr","sortByScore":true,"cacheKey":"id#5"}
2023-05-18 00:59:08.570 [trace] SearchService#search: 1ms
2023-05-18 00:59:08.611 [trace] KeybindingService#dispatch E [ No matching keybinding ]
2023-05-18 00:59:08.617 [trace] SearchService#search {"_reason":"openFileHandler","folderQueries":[{"folder":{"$mid":1,"fsPath":"/home/basil/code/misc/web-scrobbler","external":"file:///home/basil/code/misc/web-scrobbler","path":"/home/basil/code/misc/web-scrobbler","scheme":"file"},"excludePattern":{"**/.git":true,"**/.svn":true,"**/.hg":true,"**/CVS":true,"**/.DS_Store":true,"**/Thumbs.db":true,"**/.project":true,"**/.settings":true,"**/.classpath":true,"**/.vscode":true,"**/.factorypath":true,"**/.theos":true,"**/node_modules":true,"**/bower_components":true,"**/*.code-search":true,"src-tauri/target/**/*":true},"fileEncoding":"utf8","disregardIgnoreFiles":false,"disregardGlobalIgnoreFiles":true,"disregardParentIgnoreFiles":true,"ignoreSymlinks":false}],"usingSearchPaths":false,"maxResults":512,"type":1,"filePattern":"libre","sortByScore":true,"cacheKey":"id#5"}
2023-05-18 00:59:08.627 [trace] SearchService#search: 2ms
@andreamah
Copy link
Contributor

If you do the following, what logs do you get when you perform a search?

  1. run Developer: Set Log Level in the command palette and set Trace
  2. do a search
  3. In the bottom panel, check logs in the Extension Host channel in the Outputs tab

I think this might be a duplicate of #179907, which I just fixed in the latest VS Code Insiders.

@andreamah andreamah added the info-needed Issue requires more information from poster label May 18, 2023
@gBasil
Copy link
Author

gBasil commented May 18, 2023

It seems like it is a duplicate, there's a jemalloc-related error. Here are the logs:

2023-05-18 15:09:16.798 [debug] RipgrepSearchEH#search provideTextSearchResults asah, {"folder":"file:///etc/nixos","excludes":["**/.git","**/.svn","**/.hg","**/CVS","**/.DS_Store","**/Thumbs.db","**/node_modules","**/bower_components","**/*.code-search"],"includes":[],"useIgnoreFiles":true,"useGlobalIgnoreFiles":false,"useParentIgnoreFiles":false,"followSymlinks":true,"encoding":"utf8","maxResults":20000,"previewOptions":{"matchLines":1,"charsPerLine":1000},"usePCRE2":false}
2023-05-18 15:09:16.798 [debug] RipgrepSearchEH#search /nix/store/63whq5dg9q96fcfbsp7im4hwljcwwvpx-vscodium-1.77.3.23102/lib/vscode/resources/app/node_modules/@vscode/ripgrep/bin/rg --hidden --ignore-case -g '!**/.git' -g '!**/.svn' -g '!**/.hg' -g '!**/CVS' -g '!**/.DS_Store' -g '!**/Thumbs.db' -g '!**/node_modules' -g '!**/bower_components' -g '!**/*.code-search' --no-ignore-parent --follow --crlf --fixed-strings --no-config --no-ignore-global --json -- 'asah' '.'
 - cwd: /etc/nixos
2023-05-18 15:09:16.803 [debug] RipgrepSearchEH#search <jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
memory allocation of 5 bytes failed

2023-05-18 15:09:16.856 [debug] RipgrepSearchEH#search No data from stdout
2023-05-18 15:09:16.856 [debug] RipgrepSearchEH#search No result from parser
2023-05-18 15:09:16.856 [debug] RipgrepSearchEH#search

I'll try the insiders build.

@gBasil
Copy link
Author

gBasil commented May 19, 2023

Hm, doesn't seem to work. I got the version off of https://code.visualstudio.com/insiders, (.tar.gz, arm64). The jemalloc error is still there when trying to search.

@gBasil
Copy link
Author

gBasil commented Jun 8, 2023

After various updates, it works now. Thank you!

@gBasil gBasil closed this as completed Jun 8, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jul 23, 2023
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
Projects
None yet
Development

No branches or pull requests

2 participants