Open gserm opened 1 month ago
I'm sorry that you are encountering this issue, could you please try following steps to troubleshoot the issue:
Check if you have any other extensions installed, if yes, please try disabling them temporarily to see if the error persists.
You can try deleting cache-related files VS code might be using:
For Windows: %APPDATA%\Code\Cache
For macOS: ~/Library/Application Support/Code/Cache
For Linux: ~/.config/Code/Cache
Brief Issue Summary
I have a project with cmake presets. Starting with a clean slate (before any configuration or preset selection in vscode), use a terminal to create a client stateless query under the build directory of a given preset
mkdir -p </path/to/build/folder>/.cmake/api/v1/query/client-foo/
touch </path/to/build/folder>/.cmake/api/v1/query/client-foo/codemodel-v2
and then configure the projectcmake --preset <preset> -B </path/to/build/folder>
As expected, at the end of the configuration CMake will have generated certain reply files under</path/to/build/folder>/.cmake/api/v1/reply
. Now launch vscode, open the project and select the same preset as above, you'll see the following message:[rollbar] Unhandled exception: Unhandled Promise rejection: Post-folder-open Error: No cache object found [object Object]
At that point, the cmake tools extension doesn't display any items.The issue seems similar to https://github.com/microsoft/vscode-cmake-tools/issues/2882
CMake Tools Diagnostics
Debug Log
No response
Additional Information
No response