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

SLE-968: Handle index exclusions correctly for CDT on Windows #753

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

thahnen
Copy link
Member

@thahnen thahnen commented Oct 9, 2024

SLE-968

Summary

Because CDT didn't follow the norm of putting forward slashes as resource identifiers for output directories of build configurations, we were incorrectly handling Windows and in special cases excluded the whole project from being indexed.

This could be CDT projects generated from CMake via the following command in the project directory (here is a Unix example, should be the same with Windows and Makefiles):

cmake -G"Eclipse CDT4 - Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug .

Or when users configured their Eclipse CDT project files (e.g. on a CDT Managed Build) to use the project directory as the build directory or when using normal Makefile-based projects imported into Eclipse CDT.

Testing

There are currently no CDT-related tests on the CI, but there is a ticket for it to be tackled in the next iteration. Tried it with a Windows VM.

Because CDT didn't follow the norm of putting forward slashes as resource identifiers for output directories of build configurations, we were incorrectly handling Windows and in special cases excluded the whole project from being indexed.
@gabriela-trutan-sonarsource gabriela-trutan-sonarsource marked this pull request as ready for review October 10, 2024 08:41
@thahnen thahnen merged commit 7fe7695 into master Oct 10, 2024
17 checks passed
@thahnen thahnen deleted the fix/tha/SLE-968_CdtWindows branch October 10, 2024 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants