-
Notifications
You must be signed in to change notification settings - Fork 29.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 limited to open files #174507
Comments
Do you have a workspace open when you perform your search? |
Yes, its a workspace for one directory on the remote host. In the integrated terminal, a I noticed something else: In order to compile the above answer, I had to open VS Code for the workspace. A search returned no hits, even though one of the files containing the search term was among the (re)opened ones. But it was not the front one (i.e. the file contents was not visible). Once I had selected the tab, another search would return hits for the search terms in the file. |
Hey @andreamah, this issue might need further attention. @mforkel, you can help us out by closing this issue if the problem no longer exists, or adding more information. |
Sorry for replying so late, I seemed to have missed this. If you do the following, what logs do you get?
|
Thanks for looking into this, @andreamah. Unfortunately, I can't open the integrated terminal anymore due to #180798. Is there any other way to access the extension host channel output? |
You can open the command palette and run |
VS Code version: 1.78.2 (system setup) The problem still exists. My test setup:
Three of the files contain the string
A search finds those and only those files that are currently open. A search does not create any log entries in |
Oh right, you're on a remote. If you try to invoke ripgrep directly on your remote machine, what happens? |
I found ripgrep at
But that is just #180798 once more. |
Hmm ok, I see that you're getting the issue about minimum GLIBC, sort of like with microsoft/vscode-ripgrep#34. I'm going to try to stabilize the GLIBC version for this build for this anyways in microsoft/ripgrep-prebuilt#24 to match vscode's minimum version anyways, but I'll keep this issue here to link the upstream issue. |
I'm not sure I understand the GLIBC conflict. The search extension in the editor does not trigger it. And I discovered the incomplete search results before 1.78. So if there's any other information I can provide, I'll be happy to do that. |
It's because workspace-wide search relies on ripgrep, which requires GLIBC. During cross-compilation of the executable that we created for vscode, it must have enforced a new minimum GLIBC. |
I'm sorry, I'm still confused :-). If ripgrep is required for the search and if ripgrep requires GLIBC 2.8 (as does the integrated terminal) which is not available in Stretch on ARM, why can I still perform a search in VS Code (even if the results are wrong)? |
Apologies for the super late reply. The reason that you could search in open files was because we don't uses ripgrep there. For more info, it might help to take a look at https://github.com/microsoft/vscode/wiki/Search-Issues#notes-on-regular-expression-support |
This should have been resolved with microsoft/vscode-ripgrep#40, please let me know if you still run into it. |
Type: Bug
Only files open in the editor are searched.
I checked all potential pitfalls described in Missing search results. E.g., Search only in Open Editors is not activated and the files don't use CR as end-of-line characters.
The problem occurs on a remote host running Raspbian Stretch, and was discovered after an upgrade of the server to version 1.75.1. Since the host wasn't used for a while, it is not possible to tell whether the search worked before the upgrade. The problem occurs for all folders tested and for two users.
The problem does not occur on the host running VS Code itself and not with VS Code server on an x64 host with Debian Bullseye.
VS Code version: Code 1.75.1 (441438a, 2023-02-08T21:32:34.589Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Sandboxed: No
Remote OS version: Linux arm 4.19.66-v7+
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: unavailable_off
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Extensions (31)
The text was updated successfully, but these errors were encountered: