Skip to content
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

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

Open
mortenfc opened this issue Oct 17, 2024 · 4 comments
Labels
more info needed More info is needed from the community for us to properly triage and investigate.

Comments

@mortenfc
Copy link

mortenfc commented Oct 17, 2024

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:

  • Reset Cmake Tool Extension
  • rm -rf build &&
    cmake -C CMakeConfig/linux_gcc7.cmake --preset=gcc7_linux_x86_64 -DAMSR_BUILD_TESTING=ON -DAMSR_BUILD_TEST2020=ON -DAMSR_BUILD_DOC=ON -DAMSR_BUILD_EXAMPLE=ON
    -DBULLSEYE_ENABLE=ON -DAMSR_BUILD_BENCHMARK=ON -DCMAKE_CXX_FLAGS=(string join ' ' (cmake -LA -N . | grep CMAKE_CXX_FLAGS_INIT |
    cut -d= -f2) -- "-Wfatal-errors") -DAMSR_BUILD_TEST2020=ON -DAMSR_BUILD_TESTING=ON -DCMAKE_CXX_FLAGS_DEBUG="-g -O0"

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
Copy link
Collaborator

v-frankwang commented Oct 18, 2024

@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?:)

@v-frankwang v-frankwang added more info needed More info is needed from the community for us to properly triage and investigate. and removed triage labels Oct 18, 2024
@mortenfc
Copy link
Author

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
Copy link
Collaborator

@gcampbell-msft Can you help find a: #4132 (comment) code repository mentioned by a user? He will use the library we provided to reproduce the problem.

@gcampbell-msft
Copy link
Collaborator

gcampbell-msft commented Oct 21, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more info needed More info is needed from the community for us to properly triage and investigate.
Projects
Status: Blocked
Development

No branches or pull requests

3 participants