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

The build configurations generated do not contain the active build configuration. Using 'DEBUG' for CMAKE_BUILD_TYPE instead of 'Debug' to ensure that IntelliSense configurations can be found. #3807

Open
XuPengfei-1020 opened this issue Jun 2, 2024 · 6 comments
Labels
more info needed More info is needed from the community for us to properly triage and investigate.
Milestone

Comments

@XuPengfei-1020
Copy link

Brief Issue Summary

This bug is sill here, and IntelliSense dose completely not work.

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

No response

@github-actions github-actions bot added the triage label Jun 2, 2024
@XuPengfei-1020
Copy link
Author

It seemd that the history issue about this problem was arbitrary closed but without any fixed.
Please tell us the reason of this bug, and how to avoid it.

@gcampbell-msft
Copy link
Collaborator

@XuPengfei-1020 I'm sorry, I don't fully understand your issue. Are you saying that you're expecting 'null' in the CMAKE_BUILD_TYPE to work? What issue are you referencing that was closed?

Some more information about the issue you are facing is required in order for us to help out, looking forward to helping you! Thanks.

@gcampbell-msft gcampbell-msft added the more info needed More info is needed from the community for us to properly triage and investigate. label Jun 3, 2024
@XuPengfei-1020 XuPengfei-1020 changed the title The build configurations generated do not contain the active build configuration. Using 'Debug' for CMAKE_BUILD_TYPE instead of 'null' to ensure that IntelliSense configurations can be found. The build configurations generated do not contain the active build configuration. Using 'Debug' for CMAKE_BUILD_TYPE instead of 'DEBUG' to ensure that IntelliSense configurations can be found. Jun 4, 2024
@XuPengfei-1020
Copy link
Author

@XuPengfei-1020 I'm sorry, I don't fully understand your issue. Are you saying that you're expecting 'null' in the CMAKE_BUILD_TYPE to work? What issue are you referencing that was closed?

Some more information about the issue you are facing is required in order for us to help out, looking forward to helping you! Thanks.

Thanks for your reply.

The error msg is 'Debug' instead of 'DEBUG' OR 'Release' instead of 'RELEASE', dependent on what cmake target I set in the cmake-took config.

I changed the cmake command by replace '-DCMAKE_BUILD_TYPE:STRING=Debug' with '-DCMAKE_BUILD_TYPE:STRING=DEBUG', ran it by hand, the error msg was not appreence any more.

It seems like the DCMAKE_BUILD_TYPE(Debug, Release) in cmake command that cmake-tools assemble is not match the target definition in CMAKELISTS.txt(DEBUG,RELEASE).

@XuPengfei-1020 XuPengfei-1020 changed the title The build configurations generated do not contain the active build configuration. Using 'Debug' for CMAKE_BUILD_TYPE instead of 'DEBUG' to ensure that IntelliSense configurations can be found. The build configurations generated do not contain the active build configuration. Using 'DEBUG' for CMAKE_BUILD_TYPE instead of 'Debug' to ensure that IntelliSense configurations can be found. Jun 4, 2024
@v-frankwang v-frankwang removed the triage label Jun 4, 2024
@v-frankwang
Copy link
Collaborator

@XuPengfei-1020 I tried this issue as you described and got the following results:

Set CMAKE_BUILD_TYPE (Debug)
image

Set CMAKE_BUILD_TYPE (DEBUG)
image

Is that the question you're trying to get across?

@XuPengfei-1020
Copy link
Author

XuPengfei-1020 commented Jun 5, 2024

@v-frankwang
Yes, that is.
The DCMAKE_BUILD_TYPE in cmake-tools configuration can only be 'Debug' or 'Release', user need to choose a build_type from the preseted DCMAKE_BUILD_TYPE options but can not set a custom DCMAKE_BUILD_TYPE value, It caused the issue that DCMAKE_BUILD_TYPE in build command does not match the build_types which are definated in the CMakeLists.txt.

@v-frankwang
Copy link
Collaborator

@gcampbell-msft I reproduced the problem the user described, the exact steps are in my last comment, but I can't pinpoint exactly what's causing it, can you give me some advice?

@gcampbell-msft gcampbell-msft added this to the Backlog milestone Jun 25, 2024
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: Triage Needed
Development

No branches or pull requests

3 participants