sublime_text icon indicating copy to clipboard operation
sublime_text copied to clipboard

OS tabs cause strange issues when clicking or navigating via key bindings

Open willrowe opened this issue 3 years ago • 8 comments

Description of the bug

When I open a new OS tab for another project, if I click back to the previous tab or use the key binding to move between them, the tabs themselves become invisible (the space for them is preserved). If I click anywhere in the window again, the whole window disappears. The only way to get it to reappear is to switch to another application and then switch back. However, it is impossible to switch back to the other tab, so Sublime must be quit in order to reset it.

Steps to reproduce

  1. Open Sublime.
  2. Open a new OS tab.
  3. Click the tab for the initial window.

Expected behavior

The initial tab should be shown.

Actual behavior

The whole window disappears.

Sublime Text build number

4130

Operating system & version

macOS 11.6.1

(Linux) Desktop environment and/or window manager

No response

Additional information

No response

OpenGL context information

No response

willrowe avatar Mar 24 '22 15:03 willrowe

https://user-images.githubusercontent.com/2748981/160037356-7f51ee21-bac1-4e2d-8bd3-613759abe667.mov

I'm unable to reproduce on macOS 12.2.1.

BenjaminSchaaf avatar Mar 25 '22 01:03 BenjaminSchaaf

Maybe it is just affecting macOS 11.6?

https://user-images.githubusercontent.com/7152423/160116969-9a6408f9-eb76-4c63-8e7f-33b04fdbb41f.mp4

willrowe avatar Mar 25 '22 12:03 willrowe

@BenjaminSchaaf were you able to confirm the issue or do you need more information from me?

willrowe avatar Apr 07 '22 18:04 willrowe

I don't have a mac with 11.6 handy so no I haven't confirmed the issue yet.

BenjaminSchaaf avatar Apr 08 '22 02:04 BenjaminSchaaf

Any update on this? It makes OS tabs unusable, so if this is released in a stable version it will break for everyone using macOS v11.

willrowe avatar May 03 '22 14:05 willrowe

This is still broken in build 4134.

willrowe avatar Jun 01 '22 14:06 willrowe

The same problem. Sublime Text 4 (4134) MacOS 12.4

pelemarse avatar Jun 12 '22 19:06 pelemarse

(Could reproduce on macOS 12.5 and) Can reproduce on macOS 12.6:

  • Open ST
  • Add folder to sidebar
  • Window > New Tab (native macOS)
  • Add folder to sidebar for second tab
  • click first tab
    • Tab bar with native tabs goes blank
    • sidebar for second tab still shown, although it should've changed
  • click second tab (or ... in native tab bar where it should be)
    • ST is hidden
    • bringing up ST from the dock fixes presentation of app (i.e. second native tab selected, sidebar (... still ...) shows second folder, native tabs shown)

... if you repeat switching to first tab, then second tab, ST stays hidden even when clicking the app icon in the dock unless you right-click it

jrappen avatar Sep 15 '22 09:09 jrappen

This is still broken in build 4139, which is a stable release candidate.

willrowe avatar Oct 31 '22 13:10 willrowe

Seems like a regression, if I recall correctly this was fine with ST4116. Not sure which build broke it.

jrappen avatar Oct 31 '22 14:10 jrappen

It would have been around build 4130 since I used to use tabs every day and would have noticed it immediately.

willrowe avatar Oct 31 '22 14:10 willrowe

Does this still happen in build 4140?

BenjaminSchaaf avatar Nov 01 '22 03:11 BenjaminSchaaf

I can confirm it is now working correctly in build 4140. Thank you!

willrowe avatar Nov 01 '22 12:11 willrowe

This was working at first, but I just noticed that it is no longer creating the OS tab. I have to merge the windows after opening a new window. If there are already two tabs it works fine though.

willrowe avatar Nov 04 '22 20:11 willrowe

It seems to be an issue with the Adaptive theme. They apparently have a fix for the next build.

jrappen avatar Nov 05 '22 06:11 jrappen

Fixed in build 4141.

willrowe avatar Nov 07 '22 13:11 willrowe