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

Warn when using old MacType versions #17369

Merged
merged 4 commits into from
Jun 5, 2024
Merged

Conversation

lhecker
Copy link
Member

@lhecker lhecker commented Jun 5, 2024

This adds a check for whether MacType is injected and whether it's
a known bad version (pre-2023). In that case we avoid calling the
known faulty ID2D1Device4 interface. We could avoid it in general to
fix the issue without a warning (it's only a very mild optimization),
but on the other hand, the bug that MacType has is a very serious one
and it's probably better overall to suggest users to update.

See: snowie2000/mactype#938

Validation Steps Performed

  • MacType 2021.1-RC1 results in a warning and no crash ✅
  • MacType 2023.5.31 results in no warning ✅

@lhecker lhecker added Area-Rendering Text rendering, emoji, complex glyph & font-fallback issues Severity-Crash Crashes are real bad news. Product-Terminal The new Windows Terminal. Issue-Task It's a feature request, but it doesn't really need a major design. labels Jun 5, 2024
Comment on lines 221 to 222
<value>Your version of MacType is incompatible with this application. Please update to version 2023.5.31 or later.</value>
<comment>{Locked="2023.5.31"}</comment>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you have a better wording in mind, please let me know!

Copy link
Member

@carlos-zamora carlos-zamora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! 🙂

@carlos-zamora
Copy link
Member

Do we want to service this?

@DHowett
Copy link
Member

DHowett commented Jun 5, 2024

Do we want to service this?

yes but we need to wait for localization

Co-authored-by: Dustin L. Howett <[email protected]>
@zadjii-msft
Copy link
Member

i love this

@DHowett DHowett enabled auto-merge June 5, 2024 18:34
@DHowett DHowett added this pull request to the merge queue Jun 5, 2024
Merged via the queue into main with commit 9317d42 Jun 5, 2024
20 checks passed
@DHowett DHowett deleted the dev/lhecker/mactype-warning branch June 5, 2024 20:12
DHowett added a commit that referenced this pull request Jun 7, 2024
This adds a check for whether MacType is injected and whether it's
a known bad version (pre-2023). In that case we avoid calling the
known faulty `ID2D1Device4` interface. We could avoid it in general to
fix the issue without a warning (it's only a very mild optimization),
but on the other hand, the bug that MacType has is a very serious one
and it's probably better overall to suggest users to update.

See: snowie2000/mactype#938

* MacType 2021.1-RC1 results in a warning and no crash ✅
* MacType 2023.5.31 results in no warning ✅

---------

Co-authored-by: Dustin L. Howett <[email protected]>
(cherry picked from commit 9317d42)
Service-Card-Id: 92687128
Service-Version: 1.20
DHowett added a commit that referenced this pull request Jun 7, 2024
This adds a check for whether MacType is injected and whether it's
a known bad version (pre-2023). In that case we avoid calling the
known faulty `ID2D1Device4` interface. We could avoid it in general to
fix the issue without a warning (it's only a very mild optimization),
but on the other hand, the bug that MacType has is a very serious one
and it's probably better overall to suggest users to update.

See: snowie2000/mactype#938

## Validation Steps Performed
* MacType 2021.1-RC1 results in a warning and no crash ✅
* MacType 2023.5.31 results in no warning ✅

---------

Co-authored-by: Dustin L. Howett <[email protected]>
(cherry picked from commit 9317d42)
Service-Card-Id: 92687129
Service-Version: 1.21
DHowett pushed a commit that referenced this pull request Jun 10, 2024
@zadjii-msft zadjii-msft linked an issue Jun 11, 2024 that may be closed by this pull request
DHowett pushed a commit that referenced this pull request Jun 20, 2024
(cherry picked from commit 5359e71)
Service-Card-Id: 92701124
Service-Version: 1.21
DHowett pushed a commit that referenced this pull request Jun 26, 2024
(cherry picked from commit 5359e71)
Service-Card-Id: 92701123
Service-Version: 1.20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Rendering Text rendering, emoji, complex glyph & font-fallback issues Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal. Severity-Crash Crashes are real bad news.
Projects
Development

Successfully merging this pull request may close these issues.

We should show an error dialog for outdated MacType versions
4 participants