-
Notifications
You must be signed in to change notification settings - Fork 28.7k
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
Search does not work #179121
Comments
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.77.0. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding! |
Are these "some projects" local or some kind of remote (SSH, container, etc.)? |
All projects I open are in local directory, versioned with git. Everything is TS & node modules with package.json / yarn. |
I'm having a similar issue. My global searches do resolve -- just (incorrectly) with zero hits for any query. This behavior only occurs in a remote workspace (in my case, the Klipper repo) via
Of note:
None of this worked, and now I have to help my neighbor search for his lost goat. 😔 Hope someone has ideas. xoxoxo |
Hi! @DanRYoung if you run |
I have exactly the same problem as @DanRYoung. |
@xfg68 which OS are you on? |
@andreamah vs code is on windows 10 using remote - ssh to access files on a linux machine (debian). |
I'm on Mac, can't search files on a remote rpi (debian buster). No results, no errors. Nothing in the server debug log as far as I can see. Local search works fine. Only results returned are in open windows. |
@xfg68 @impinjineer2020 if you follow these steps, what logs do you get? |
Oops I looked at the server dropdown not the window. Trace logging is very verbose, but doesn't say much for the actual search. Trace is great. Logs are slightly obfuscated. There are errors about looking in the project directory for things that aren't supposed to be there:
It's expected that I don't have a node_modules: 2023-04-05 11:38:04.250 [trace] Error: ENOENT: no such file or directory, stat '/home/pi/work/project/node_modules': EntryNotFound (FileSystemError): Error: ENOENT: no such file or directory, stat '/home/pi/work/project/node_modules' And it's expected that I don't have these files in my project: .vscode/launch.json 2023-04-05 11:38:04.251 [trace] Error while resolving configuration file 'vscode-remote://ssh-remote%xxx/home/pi/work/project/.vscode/tasks.json': Unable to read file 'vscode-remote://ssh-remote+xxx/home/pi/work/project/.vscode/tasks.json' (Error: Unable to resolve nonexistent file 'vscode-remote://ssh-remote+xxx/home/pi/work/project/.vscode/tasks.json') |
issue-179121.window-trace.log:
Let me know if I can provide any other helpful info. |
If you go to the "Extension Host" channel instead of "Window" and do a search with trace logs enabled, do you see a line that starts with Also, if you see a path that directly follows |
The
Directly running the ripgrep command reproduces the above log file output (lines 9 & 11, respectively). That's very helpful, @andreamah, thank you. The summary for any folks whose fetish isn't noodling through other people's log files: the VSCode remote host uses @vscode/ripgrep under the hood for global file search. When searching, this flavor of |
I think I have the same issue. My search is not working well in the remote session. I use ssh from MacOs(local) to remote linux(arm64) I check the logs in
I'm not sure whether it's an issue of vscode. |
The latest VS Code Insiders build has the fix for this issue- please let us know whether it works! |
It appears that search in files works against a remote pi with the insiders I just downloaded: Version: 1.78.0-insider (Universal) |
I still cannot search the files on the ssh-remote session to an aarch64-linux. Version: 1.78.0-insider |
@mycraftmw this might be a different error if you're on aarch64 and not arm32 Try this:
|
@andreamah , thanks to your advice, I did find something suspected in the
|
filed this under another issue in #179907 since this is not related to the ripgrep issues on linux arm32 |
Any clue when it's available in stable versions? How often is vscode usually updated? |
I'm having the same issue, and it seems to be the libc error as well:
ldd --version
ldd (Debian GLIBC 2.28-10+rpt2+rpi1+deb10u1) 2.28
Copyright (C) 2018 Free Software Foundation, Inc. |
The issue should be fixed in the newest VS Code Insiders. VS Code Stable is updated every month, and the next update should be soon. Closing this for now, since this bug shouldn't appear anymore. A more permanent fix will be tracked in microsoft/ripgrep-prebuilt#24 |
Type: Bug
I have no idea why, but in some projects the find all dialog just keeps spinning and nothing is found. I have no idea why. It says that extension host crashed 3 times.
VS Code version: Code 1.76.2 (ee2b180, 2023-03-14T17:55:54.936Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Sandboxed: Yes
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Extensions (40)
A/B Experiments
The text was updated successfully, but these errors were encountered: