Macvim: Big Sur TouchBar warnings

Created on 14 Nov 2020  Â·  13Comments  Â·  Source: macvim-dev/macvim

Describe the bug

Warnings logged to console:

2020-11-14 12:04:30.383 MacVim[38128:287979] Warning: Expected min height of view: (<MMTouchBarButton: 0x7fb601061200>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
2020-11-14 12:04:31.160 MacVim[38128:287979] Warning: Expected min height of view: (<NSPopoverTouchBarItemButton: 0x7fb5fee3bf50>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
2020-11-14 12:04:42.433 MacVim[38128:287979] Warning: Expected min height of view: (<NSPopoverTouchBarItemButton: 0x7fb5feed2410>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
2020-11-14 12:04:43.095 MacVim[38128:287979] Warning: Expected min height of view: (<NSPopoverTouchBarItemButton: 0x7fb6010b59c0>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
2020-11-14 12:10:40.174 MacVim[38128:287979] Warning: Expected min height of view: (<NSPopoverTouchBarItemButton: 0x7fb5feedb5e0>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.

Environment (please complete the following information):

  • VIM: 8.2.1719 (166)
  • OS: Big Sur 11.0.1
11.0 Big Sur

Most helpful comment

Sorry, I'm not sure if there is a way to suppress the warnings.

I just tested this, and it seems that for local testing, when I build MacVim using Xcode 12 (current released binary is built using Xcode 11), the issue seems to go away, so I think it's just a matter of building MacVim with the latest SDK.

I plan to make a release soon, so hopefully you don't have to suffer this too long.

All 13 comments

Have the same issue! Always happens when switching between modes it seems.

Yeah I'm not sure why this is happening. Need to take a look. I'm guessing Apple made the buttons larger so they went over the limit…

While this issue is not fixed, is there a way to suppress these warnings from appearing on the terminal?

Sorry, I'm not sure if there is a way to suppress the warnings.

I just tested this, and it seems that for local testing, when I build MacVim using Xcode 12 (current released binary is built using Xcode 11), the issue seems to go away, so I think it's just a matter of building MacVim with the latest SDK.

I plan to make a release soon, so hopefully you don't have to suffer this too long.

Found this issue 2 days ago, got same message after upgrading to BigSur.
After last comment I tried to remove MacVim and reinstall it with Homebrew. Now all warnings are gone, everything is ok. Using Xcode 12 in my system.
So thank you very much, @ychin for your idea about building with Xcode 12.

Thanks @ekzotech ! For people looking for a step-by-step, I fixed this by doing the following:

  • Updating my brew update and brew upgrade
  • Updating to the newer command line tools (CLT) sudo rm -rf /Library/Developer/CommandLineTools and sudo xcode-select --install
  • Uninstalling my macvim brew uninstall macvim
  • Reinstalling macvim brew install macvim

@callumfrance: didn't work for me.

@balena unlucky bro

Thanks @ekzotech ! For people looking for a step-by-step, I fixed this by doing the following:

  • Updating my brew update and brew upgrade
  • Updating to the newer command line tools (CLT) sudo rm -rf /Library/Developer/CommandLineTools and sudo xcode-select --install
  • Uninstalling my macvim brew uninstall macvim
  • Reinstalling macvim brew install macvim

Worked for me!

Thanks @ekzotech brew reinstall macvim works for me.

https://developer.apple.com/design/human-interface-guidelines/macos/touch-bar/touch-bar-icons-and-images/

ideal icon size: 36px × 36px (18pt × 18pt @2x)
maximum icon size: 44px × 44px (22pt × 22pt @2x)

Other apps has the same problem, according on search results in google

This should be fixed with the latest release since it's built with Xcode 12.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

epheien picture epheien  Â·  4Comments

itsayellow picture itsayellow  Â·  4Comments

bdarfler picture bdarfler  Â·  4Comments

flaugher picture flaugher  Â·  4Comments

alexvanu picture alexvanu  Â·  4Comments