[GH-ISSUE #301] Strange Assist++ error on Windows when MSVC as compiler is selected (Clang 21) #94

Closed
opened 2026-05-05 03:39:27 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @klugier on GitHub (Oct 11, 2025).
Original GitHub issue: https://github.com/ultimatepp/ultimatepp/issues/301

Originally assigned to: @mirek-fidler on GitHub.

Hello, I replaced bin directory and libclang binaries to version 21.1 on Windows, but it looks like it generates scanning errors in the valid code. For example I have this issue in ide/BaseDlg.cpp, but other files are affected as well.

Image
Originally created by @klugier on GitHub (Oct 11, 2025). Original GitHub issue: https://github.com/ultimatepp/ultimatepp/issues/301 Originally assigned to: @mirek-fidler on GitHub. Hello, I replaced bin directory and libclang binaries to version 21.1 on Windows, but it looks like it generates scanning errors in the valid code. For example I have this issue in ide/BaseDlg.cpp, but other files are affected as well. <img width="1680" height="1009" alt="Image" src="https://github.com/user-attachments/assets/c2e84b02-8799-416a-9024-59cd4ca3b1df" />
Author
Owner

@mirek-fidler commented on GitHub (Oct 11, 2025):

Can you try with nightly build? (It is already updated to 21.1.1 / openssl 3.6.0)

Image

Mirek

<!-- gh-comment-id:3393385986 --> @mirek-fidler commented on GitHub (Oct 11, 2025): Can you try with nightly build? (It is already updated to 21.1.1 / openssl 3.6.0) <img width="3670" height="1348" alt="Image" src="https://github.com/user-attachments/assets/ee5941fa-d8a4-4731-93b1-ef98d340ffe3" /> Mirek
Author
Owner

@ismail-yilmaz commented on GitHub (Oct 11, 2025):

21.1.1 works fine here:

Image
<!-- gh-comment-id:3393412554 --> @ismail-yilmaz commented on GitHub (Oct 11, 2025): 21.1.1 works fine here: <img width="1117" height="707" alt="Image" src="https://github.com/user-attachments/assets/87491fe9-a731-4e8d-84b7-f10e6b7fc0ff" />
Author
Owner

@klugier commented on GitHub (Oct 11, 2025):

Thanks! I will do clean install.

<!-- gh-comment-id:3393486903 --> @klugier commented on GitHub (Oct 11, 2025): Thanks! I will do clean install.
Author
Owner

@klugier commented on GitHub (Oct 19, 2025):

I am reopening this issue. It looks like when you select MSVC then these assist errors appears! FYI, @mirek-fidler. I think Assist++ should work the same whenever CLANG, GCC or MSVC is selected. If we don't fix it, then working with MSVC will be diffcult and not joyful.

<!-- gh-comment-id:3419935322 --> @klugier commented on GitHub (Oct 19, 2025): I am reopening this issue. It looks like when you select MSVC then these assist errors appears! FYI, @mirek-fidler. I think Assist++ should work the same whenever CLANG, GCC or MSVC is selected. If we don't fix it, then working with MSVC will be diffcult and not joyful.
Author
Owner

@mirek-fidler commented on GitHub (Oct 19, 2025):

This does not have a good solution - CLANG is incompatible with Microsft SDK header files. I have fixed it by completely ignoring "real" build method and always using just CLANGx64 method for assist (I mean, to determine include path) to determine headers. Which has its flaws, but the best we can do now.

<!-- gh-comment-id:3420045060 --> @mirek-fidler commented on GitHub (Oct 19, 2025): This does not have a good solution - CLANG is incompatible with Microsft SDK header files. I have fixed it by completely ignoring "real" build method and always using just CLANGx64 method for assist (I mean, to determine include path) to determine headers. Which has its flaws, but the best we can do now.
Author
Owner

@klugier commented on GitHub (Oct 20, 2025):

I think it is a fair approach, if you want to have custom includes with MSVC just update Clang build method as well.

<!-- gh-comment-id:3420865013 --> @klugier commented on GitHub (Oct 20, 2025): I think it is a fair approach, if you want to have custom includes with MSVC just update Clang build method as well.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/ultimatepp#94
No description provided.