-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
wpf: color table is a kaleidoscope of misery in DotNet_x64Test configuration #10485
Labels
Area-WPFControl
Things related to the WPF version of the TermControl
Needs-Tag-Fix
Doesn't match tag requirements
Needs-Triage
It's a new issue that the core contributor team needs to triage at the next triage meeting
Resolution-Fix-Committed
Fix is checked in, but it might be 3-4 weeks until a release.
Comments
ghost
added
Needs-Triage
It's a new issue that the core contributor team needs to triage at the next triage meeting
Needs-Tag-Fix
Doesn't match tag requirements
labels
Jun 22, 2021
DHowett
added a commit
that referenced
this issue
Jun 22, 2021
The CursorStyle enum is declared as being of type `uint` on the C# side, but as `size_t` on the C++ side. There's a C# size_t impostor we could use, System.UIntPtr, but I don't want to risk changing the public API of TerminalTheme and I don't know if it can be used as a base type for an enum value. Anyway, since we don't have more than four billion cursor types I chose to narrow the field to a uint32_t and unpack it in TerminalSetTheme. Fixes #10485
DHowett
added
Area-WPFControl
Things related to the WPF version of the TermControl
zPreview-Service-Queued-1.13
A floating label that tracks the current Preview version for servicing purposes.
zStable-Service-Queued-1.12
A floating label that tracks the current Stable version for servicing purposes.
labels
Jun 22, 2021
ghost
added
Resolution-Fix-Committed
Fix is checked in, but it might be 3-4 weeks until a release.
and removed
In-PR
This issue has a related PR
labels
Jun 22, 2021
ghost
pushed a commit
that referenced
this issue
Jun 22, 2021
#10486) The CursorStyle enum is declared as being of type `uint` on the C# side, but as `size_t` on the C++ side. There's a C# size_t impostor we could use, System.UIntPtr, but I don't want to risk changing the public API of TerminalTheme and I don't know if it can be used as a base type for an enum. Anyway, since we don't have more than four billion cursor types I chose to narrow the field to a uint32_t and unpack it in TerminalSetTheme. Fixes #10485
DHowett
added a commit
that referenced
this issue
Jul 7, 2021
#10486) The CursorStyle enum is declared as being of type `uint` on the C# side, but as `size_t` on the C++ side. There's a C# size_t impostor we could use, System.UIntPtr, but I don't want to risk changing the public API of TerminalTheme and I don't know if it can be used as a base type for an enum. Anyway, since we don't have more than four billion cursor types I chose to narrow the field to a uint32_t and unpack it in TerminalSetTheme. Fixes #10485 (cherry picked from commit 2770228)
DHowett
added a commit
that referenced
this issue
Jul 7, 2021
#10486) The CursorStyle enum is declared as being of type `uint` on the C# side, but as `size_t` on the C++ side. There's a C# size_t impostor we could use, System.UIntPtr, but I don't want to risk changing the public API of TerminalTheme and I don't know if it can be used as a base type for an enum. Anyway, since we don't have more than four billion cursor types I chose to narrow the field to a uint32_t and unpack it in TerminalSetTheme. Fixes #10485 (cherry picked from commit 2770228)
🎉This issue was addressed in #10486, which has now been successfully released as Handy links: |
🎉This issue was addressed in #10486, which has now been successfully released as Handy links: |
miniksa
removed
zStable-Service-Queued-1.12
A floating label that tracks the current Stable version for servicing purposes.
zPreview-Service-Queued-1.13
A floating label that tracks the current Preview version for servicing purposes.
labels
Sep 27, 2021
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Area-WPFControl
Things related to the WPF version of the TermControl
Needs-Tag-Fix
Doesn't match tag requirements
Needs-Triage
It's a new issue that the core contributor team needs to triage at the next triage meeting
Resolution-Fix-Committed
Fix is checked in, but it might be 3-4 weeks until a release.
Windows Terminal version (or Windows build number)
1.8
Other Software
No response
Steps to reproduce
Run the WpfTerminalTestNetCore project in the DotNet_x64Test configuration. The color table is all offset and looks like a crazy dance party.
Expected Behavior
No response
Actual Behavior
In reality, the struct is being marshalled 4 bytes shorter than it needs to be, and this causes the color table to be offset.
The text was updated successfully, but these errors were encountered: