vscode-cpptools
vscode-cpptools copied to clipboard
fuzzy search bug
Environment
- OS and version:
- VS Code:1.81.1
- C/C++ extension:1.20.0
- OS and version of remote machine (if applicable):
- GDB / LLDB version:
Bug Summary and Steps to Reproduce
Bug Summary:
Steps to reproduce:
- In this environment...
- With this config...
- Do '...'
- See error... coturndo cannot find my function coworker_turn_do
Debugger Configurations
1
Debugger Logs
1
Other Extensions
No response
Additional Information
No response
@chall1123 I don't understand why there's text code/lib
in your query if that doesn't appear to match the symbol you intend to find.
Does the issue repro with a smaller workspace? There could be too many matches (that are being filtered out) being returned from our database query. You could try increasing C_Cpp.maxSymbolSearchResults to 10000.
C_Cpp.maxSymbolSearchResults
@sean-mcmanus I added a setting of 10000 for "C Cpp. maxSymbolSearchResults", but my function still cannot be searched. When I uninstalled the Python extension, my function can be searched normally, so there may be some conflict between these two extensions
@chall1123 Which Python extension? It seems like it would be a bug with that extension? But from the docs on registerWorkspaceSymbolProvider at https://code.visualstudio.com/api/references/vscode-api, it says "Multiple providers can be registered. In that case providers are asked in parallel and the results are merged. A failing provider (rejected promise or exception) will not cause a failure of the whole operation."...so from that it doesn't sound like it's expected for the Python extension to be blocking our symbol results. It's possible it could be some bug with VS Code itself?
@chall1123 Which Python extension? It seems like it would be a bug with that extension? But from the docs on registerWorkspaceSymbolProvider at https://code.visualstudio.com/api/references/vscode-api, it says "Multiple providers can be registered. In that case providers are asked in parallel and the results are merged. A failing provider (rejected promise or exception) will not cause a failure of the whole operation."...so from that it doesn't sound like it's expected for the Python extension to be blocking our symbol results. It's possible it could be some bug with VS Code itself?
@sean-mcmanus python v2023.9.10, if this is vscode bug, I can only install one of the two extensions to use
@chall1123 Are you able to create a sample repro that demonstrates the bug? Or are able to find the necessary configuration settings to repro it? i.e. I don't know how to repro the issue. If you file a Pylance or VS Code bug, they also might need more repro info.
@chall1123 Are you able to create a sample repro that demonstrates the bug? Or are able to find the necessary configuration settings to repro it? i.e. I don't know how to repro the issue. If you file a Pylance or VS Code bug, they also might need more repro info.
@sean-mcmanus thanks,My project contains a large amount of Python and C code.There are no other operations,I just need to install and uninstall Python extensions simply. , and the problem can be solved and reproduced. I will use it alone for now. Thank you very much
Hey @sean-mcmanus, this issue might need further attention.
@chall1123, you can help us out by closing this issue if the problem no longer exists, or adding more information.