microsoft / vscode-cmake-tools

CMake integration in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=vector-of-bool.cmake-tools
MIT License
1.48k stars 453 forks source link

No cache object found when manually configuring build folder before cmake-tools #4132

Open mortenfc opened 1 month ago

mortenfc commented 1 month ago

Brief Issue Summary

Only way to get rid of the error [rollbar] Unhandled exception: Unhandled Promise rejection: Post-folder-open Error: No cache object found [object Object]

Is to remove build folder and then ask cmake-tools to configure without configuring with terminal.

What I tried:

We have a LOT of presets and targets. A gazillion .jsons are created, might be related

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

No response

v-frankwang commented 1 month ago

@mortenfc Thank you for posting this issue. If you reopen the project a bit and then configure it in the terminal does it work? Can you provide a simple reproduction of the project and some detailed reproduction steps to help us quickly investigate this issue?:)

mortenfc commented 1 month ago

That's gonna be hard. perhaps you know some open source repo with a lot of targets and prefixes? Then I can play around with that

v-frankwang commented 1 month ago

@gcampbell-msft Can you help find a: https://github.com/microsoft/vscode-cmake-tools/issues/4132#issuecomment-2422410463source code repository mentioned by a user? He will use the library we provided to reproduce the problem.

gcampbell-msft commented 1 month ago

@mortenfc There are a couple of large open source projects that we use commonly for testing. Here are two: https://github.com/Kitware/CMake, https://github.com/ninja-build/ninja