Hey there,
I’m regularly experiencing a bug where TextMate seems to receive partial focus. The title bar will appear to be selected, but the tabs never come into focus.
Please see https://imgur.com/a/ePa4j for screenshots.
In this "half focus" mode I can select, enter and delete text, but not select, copy, paste or do many other things. Cmd-c and Cmd-v both cause the system bell to ding. I can switch focused TextMate windows, but the "half focus" window title bar remains focused, and the tabs never get selected.
I still haven’t found a reliable way to reproduce this.
I have 2 theories about what is happening;
1) Its related to some ongoing process, such as a linter still running in the background or the code highlighting for complex code. This seems relevant because I work some days without encountering the issue, others I run into it many times. Its possible that the offensive days I have more windows, or a more difficult to parse file open.
2) Its related to multiple displays. I’m on a MBP15in from early 2013 with a display hooked up over thunderbolt or hdmi. It does seem that its much easier to reproduce this bug with a second display.
Perhaps there’s a combination of 1 and 2?
For a while I was switching between apps to get "full focus"; Switch from Chrome to TextMate (get "half focus"), switch to Finder, switch to Chrome, switch to TextMate (get "full focus").
Seems that if no one else is having the issue, its probably #1 and related to my custom bundles.
Whatever the cause, hiding TextMate with Cmd+H and restoring it seems to cause "full focus" reliably.
Is this making sense? Is there anything I can do to help debug?
This weekend I’ll try reverting to defaults and see if that helps. In the mean time, what do you all think?
Thanks a million,
Graham Heath
I get this occasionally as well and can fix this by switching back and forth between apps.
Ed
On Jan 13, 2017, at 5:54 PM, Graham Heath graham.p.heath@gmail.com wrote:
Hey there,
I’m regularly experiencing a bug where TextMate seems to receive partial focus. The title bar will appear to be selected, but the tabs never come into focus.
Please see https://imgur.com/a/ePa4j https://imgur.com/a/ePa4j for screenshots.
In this "half focus" mode I can select, enter and delete text, but not select, copy, paste or do many other things. Cmd-c and Cmd-v both cause the system bell to ding. I can switch focused TextMate windows, but the "half focus" window title bar remains focused, and the tabs never get selected.
I still haven’t found a reliable way to reproduce this.
I have 2 theories about what is happening;
Its related to some ongoing process, such as a linter still running in the background or the code highlighting for complex code. This seems relevant because I work some days without encountering the issue, others I run into it many times. Its possible that the offensive days I have more windows, or a more difficult to parse file open.
Its related to multiple displays. I’m on a MBP15in from early 2013 with a display hooked up over thunderbolt or hdmi. It does seem that its much easier to reproduce this bug with a second display.
Perhaps there’s a combination of 1 and 2?
For a while I was switching between apps to get "full focus"; Switch from Chrome to TextMate (get "half focus"), switch to Finder, switch to Chrome, switch to TextMate (get "full focus").
Seems that if no one else is having the issue, its probably #1 and related to my custom bundles.
Whatever the cause, hiding TextMate with Cmd+H and restoring it seems to cause "full focus" reliably.
Is this making sense? Is there anything I can do to help debug?
This weekend I’ll try reverting to defaults and see if that helps. In the mean time, what do you all think?
Thanks a million,
Graham Heath
textmate mailing list textmate@lists.macromates.com mailto:textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate http://lists.macromates.com/listinfo/textmate
I have experienced the same issue as well.
On 14 Jan 2017, at 5:54, Graham Heath wrote:
I’m regularly experiencing a bug where TextMate seems to receive partial focus. The title bar will appear to be selected, but the tabs never come into focus […]
This issue has existed with macOS for as long as I can remember, and I have seen it for other apps as well, though it is visually much more obvious with TextMate because of the tabs bleeding into the title bar.
I do not think the issue is with any of my code, since window management is not the responsibility of the individual app and I am not aware of code in TextMate that could affect this.
Allan, I’m sorry to say, that this is behavior that I associate with TextMate, not the os at large. I will keep an eye out for it and let you know if I change my mind. But, as you’ll see below, I don’t really blame your code either, I’m just wondering whats causing it. Its so erratic that its probably not something simple.
Jacob, Ed, and others; Do you have any plugins? I haven’t done the full reset, but I have disabled things that I feel might be offending. Its too early to say, but I wonder if a plugin might be triggering when the app gets focus, but something isn’t going quite right.
Tossing this on the pile; I’m using a early 2013 mbp that does seem to have issues with apps hanging or freezing fairly often, so maybe whatever’s causing that, is causing this.
Thanks,
Graham Heath
On January 14, 2017 at 11:44:42 PM, Allan Odgaard (mailinglist@textmate.org) wrote:
On 14 Jan 2017, at 5:54, Graham Heath wrote:
I’m regularly experiencing a bug where TextMate seems to receive partial focus. The title bar will appear to be selected, but the tabs never come into focus […]
This issue has existed with macOS for as long as I can remember, and I have seen it for other apps as well, though it is visually much more obvious with TextMate because of the tabs bleeding into the title bar.
I do not think the issue is with any of my code, since window management is not the responsibility of the individual app and I am not aware of code in TextMate that could affect this.
_______________________________________________ textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Hi Graham,
My TM setup is pretty basic. No plug-ins, Shell Support installed, Git support sometimes depending on the project.
I think Allan may be right though as I’ve seen this behaviour with Safari and Finder as well so it could be an general OS issue.
Ed
On Jan 31, 2017, at 10:23 PM, Graham Heath graham.p.heath@gmail.com wrote:
Allan, I’m sorry to say, that this is behavior that I associate with TextMate, not the os at large. I will keep an eye out for it and let you know if I change my mind. But, as you’ll see below, I don’t really blame your code either, I’m just wondering whats causing it. Its so erratic that its probably not something simple.
Jacob, Ed, and others; Do you have any plugins? I haven’t done the full reset, but I have disabled things that I feel might be offending. Its too early to say, but I wonder if a plugin might be triggering when the app gets focus, but something isn’t going quite right.
Tossing this on the pile; I’m using a early 2013 mbp that does seem to have issues with apps hanging or freezing fairly often, so maybe whatever’s causing that, is causing this.
Thanks,
Graham Heath
On January 14, 2017 at 11:44:42 PM, Allan Odgaard (mailinglist@textmate.org mailto:mailinglist@textmate.org) wrote:
On 14 Jan 2017, at 5:54, Graham Heath wrote:
I’m regularly experiencing a bug where TextMate seems to receive partial focus. The title bar will appear to be selected, but the tabs never come into focus […]
This issue has existed with macOS for as long as I can remember, and I have seen it for other apps as well, though it is visually much more obvious with TextMate because of the tabs bleeding into the title bar.
I do not think the issue is with any of my code, since window management is not the responsibility of the individual app and I am not aware of code in TextMate that could affect this.
textmate mailing list textmate@lists.macromates.com mailto:textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com mailto:textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate http://lists.macromates.com/listinfo/textmate
This continues to happen to me a few times a day, exclusively in TextMate. Some days are worse, maybe better after a reboot, but thats not for sure.
Some more theories for you Ed, and anyone else :)
Do you … 1: have more than a few TextMate windows or tabs open? 2: have a customized window bar title? 3: have expensive to render documents? 4: SCM integration?
Here’s what I’m thinking _might_ be happening for each of these. Hopefully one of these sparkles for someone.
1) TM is confused about what tab / window should have focus, and fails to pick one. 2) I have a pretty complex stack of replacements to build my window title, perhaps one of these replacements has a edge case that causes an error 3) TM may be selecting the right tab, but the selection doesn’t happen in a reasonable time and aborts 4) The timing between focus and TM failing to select a tab seems related to when the title bar updates when SCM is working
I’ve been experimenting with disabling plugins and add ons. Today I’m going to try disabling the SCM plugin :(
If that doesn’t work I guess I’ll build TM and see what I can find. Short of building it, there’s not a way better debug this issue, is there?
Thanks,
Graham Heath
On February 1, 2017 at 7:05:23 AM, Ed Wong (scampy@me.com) wrote:
Hi Graham,
My TM setup is pretty basic. No plug-ins, Shell Support installed, Git support sometimes depending on the project.
I think Allan may be right though as I’ve seen this behaviour with Safari and Finder as well so it could be an general OS issue.
Ed
On Jan 31, 2017, at 10:23 PM, Graham Heath graham.p.heath@gmail.com wrote:
Allan, I’m sorry to say, that this is behavior that I associate with TextMate, not the os at large. I will keep an eye out for it and let you know if I change my mind. But, as you’ll see below, I don’t really blame your code either, I’m just wondering whats causing it. Its so erratic that its probably not something simple.
Jacob, Ed, and others; Do you have any plugins? I haven’t done the full reset, but I have disabled things that I feel might be offending. Its too early to say, but I wonder if a plugin might be triggering when the app gets focus, but something isn’t going quite right.
Tossing this on the pile; I’m using a early 2013 mbp that does seem to have issues with apps hanging or freezing fairly often, so maybe whatever’s causing that, is causing this.
Thanks,
Graham Heath
On January 14, 2017 at 11:44:42 PM, Allan Odgaard (mailinglist@textmate.org) wrote:
On 14 Jan 2017, at 5:54, Graham Heath wrote:
I’m regularly experiencing a bug where TextMate seems to receive partial focus. The title bar will appear to be selected, but the tabs never come into focus […]
This issue has existed with macOS for as long as I can remember, and I have seen it for other apps as well, though it is visually much more obvious with TextMate because of the tabs bleeding into the title bar.
I do not think the issue is with any of my code, since window management is not the responsibility of the individual app and I am not aware of code in TextMate that could affect this.
_______________________________________________ textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
_______________________________________________ textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
_______________________________________________ textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
1: have more than a few TextMate windows or tabs open?
Usually many windows with many tabs. Some windows are minimized (those that I’m not actively working on at the moment).
2: have a customized window bar title?
Yes - full document path.
3: have expensive to render documents?
A few files with > 5000 lines but generally < 1500 lines of PHP, ObjC, HTML, JS or CSS. Some customizations done to PHP bundle and Mac Classic theme.
4: SCM integration?
Git on some projects.
Hope this helps.
Ed
On Feb 10, 2017, at 5:33 PM, Graham Heath graham.p.heath@gmail.com wrote:
This continues to happen to me a few times a day, exclusively in TextMate. Some days are worse, maybe better after a reboot, but thats not for sure.
Some more theories for you Ed, and anyone else :)
Do you … 1: have more than a few TextMate windows or tabs open? 2: have a customized window bar title? 3: have expensive to render documents? 4: SCM integration?
Here’s what I’m thinking _might_ be happening for each of these. Hopefully one of these sparkles for someone.
- TM is confused about what tab / window should have focus, and fails to pick one.
- I have a pretty complex stack of replacements to build my window title, perhaps one of these replacements has a edge case that causes an error
- TM may be selecting the right tab, but the selection doesn’t happen in a reasonable time and aborts
- The timing between focus and TM failing to select a tab seems related to when the title bar updates when SCM is working
I’ve been experimenting with disabling plugins and add ons. Today I’m going to try disabling the SCM plugin :(
If that doesn’t work I guess I’ll build TM and see what I can find. Short of building it, there’s not a way better debug this issue, is there?
Thanks,
Graham Heath
On February 1, 2017 at 7:05:23 AM, Ed Wong (scampy@me.com mailto:scampy@me.com) wrote:
Hi Graham,
My TM setup is pretty basic. No plug-ins, Shell Support installed, Git support sometimes depending on the project.
I think Allan may be right though as I’ve seen this behaviour with Safari and Finder as well so it could be an general OS issue.
Ed
On Jan 31, 2017, at 10:23 PM, Graham Heath <graham.p.heath@gmail.com mailto:graham.p.heath@gmail.com> wrote:
Allan, I’m sorry to say, that this is behavior that I associate with TextMate, not the os at large. I will keep an eye out for it and let you know if I change my mind. But, as you’ll see below, I don’t really blame your code either, I’m just wondering whats causing it. Its so erratic that its probably not something simple.
Jacob, Ed, and others; Do you have any plugins? I haven’t done the full reset, but I have disabled things that I feel might be offending. Its too early to say, but I wonder if a plugin might be triggering when the app gets focus, but something isn’t going quite right.
Tossing this on the pile; I’m using a early 2013 mbp that does seem to have issues with apps hanging or freezing fairly often, so maybe whatever’s causing that, is causing this.
Thanks,
Graham Heath
On January 14, 2017 at 11:44:42 PM, Allan Odgaard (mailinglist@textmate.org mailto:mailinglist@textmate.org) wrote:
On 14 Jan 2017, at 5:54, Graham Heath wrote:
I’m regularly experiencing a bug where TextMate seems to receive partial focus. The title bar will appear to be selected, but the tabs never come into focus […]
This issue has existed with macOS for as long as I can remember, and I have seen it for other apps as well, though it is visually much more obvious with TextMate because of the tabs bleeding into the title bar.
I do not think the issue is with any of my code, since window management is not the responsibility of the individual app and I am not aware of code in TextMate that could affect this.
textmate mailing list textmate@lists.macromates.com mailto:textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com mailto:textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com mailto:textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate http://lists.macromates.com/listinfo/textmate
Thanks for the answers. What all is happening here is still a mystery but I’ve got an update;
I’ve now had 24 hours without incident. My current theory is this relates to SCM Diff Gutter, as after disabling it I haven’t seen the issue, but thats just a theory. I’m re-enabling Emmet today, and I’ll add my linters tomorrow.
Ed, do you have SCM Diff Gutter, or anything adding icons to your gutter?
Thanks,
Graham Heath
On February 10, 2017 at 9:08:03 PM, Ed Wong (scampy@me.com) wrote:
1: have more than a few TextMate windows or tabs open?
Usually many windows with many tabs. Some windows are minimized (those that I’m not actively working on at the moment).
2: have a customized window bar title?
Yes - full document path.
3: have expensive to render documents?
A few files with > 5000 lines but generally < 1500 lines of PHP, ObjC, HTML, JS or CSS. Some customizations done to PHP bundle and Mac Classic theme.
4: SCM integration?
Git on some projects.
Hope this helps.
Ed
On Feb 10, 2017, at 5:33 PM, Graham Heath graham.p.heath@gmail.com wrote:
This continues to happen to me a few times a day, exclusively in TextMate. Some days are worse, maybe better after a reboot, but thats not for sure.
Some more theories for you Ed, and anyone else :)
Do you … 1: have more than a few TextMate windows or tabs open? 2: have a customized window bar title? 3: have expensive to render documents? 4: SCM integration?
Here’s what I’m thinking _might_ be happening for each of these. Hopefully one of these sparkles for someone.
1) TM is confused about what tab / window should have focus, and fails to pick one. 2) I have a pretty complex stack of replacements to build my window title, perhaps one of these replacements has a edge case that causes an error 3) TM may be selecting the right tab, but the selection doesn’t happen in a reasonable time and aborts 4) The timing between focus and TM failing to select a tab seems related to when the title bar updates when SCM is working
I’ve been experimenting with disabling plugins and add ons. Today I’m going to try disabling the SCM plugin :(
If that doesn’t work I guess I’ll build TM and see what I can find. Short of building it, there’s not a way better debug this issue, is there?
Thanks,
Graham Heath
On February 1, 2017 at 7:05:23 AM, Ed Wong (scampy@me.com) wrote:
Hi Graham,
My TM setup is pretty basic. No plug-ins, Shell Support installed, Git support sometimes depending on the project.
I think Allan may be right though as I’ve seen this behaviour with Safari and Finder as well so it could be an general OS issue.
Ed
On Jan 31, 2017, at 10:23 PM, Graham Heath graham.p.heath@gmail.com wrote:
Allan, I’m sorry to say, that this is behavior that I associate with TextMate, not the os at large. I will keep an eye out for it and let you know if I change my mind. But, as you’ll see below, I don’t really blame your code either, I’m just wondering whats causing it. Its so erratic that its probably not something simple.
Jacob, Ed, and others; Do you have any plugins? I haven’t done the full reset, but I have disabled things that I feel might be offending. Its too early to say, but I wonder if a plugin might be triggering when the app gets focus, but something isn’t going quite right.
Tossing this on the pile; I’m using a early 2013 mbp that does seem to have issues with apps hanging or freezing fairly often, so maybe whatever’s causing that, is causing this.
Thanks,
Graham Heath
On January 14, 2017 at 11:44:42 PM, Allan Odgaard (mailinglist@textmate.org) wrote:
On 14 Jan 2017, at 5:54, Graham Heath wrote:
I’m regularly experiencing a bug where TextMate seems to receive partial focus. The title bar will appear to be selected, but the tabs never come into focus […]
This issue has existed with macOS for as long as I can remember, and I have seen it for other apps as well, though it is visually much more obvious with TextMate because of the tabs bleeding into the title bar.
I do not think the issue is with any of my code, since window management is not the responsibility of the individual app and I am not aware of code in TextMate that could affect this.
_______________________________________________ textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
_______________________________________________ textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
_______________________________________________ textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Graham, I don’t have Diff Gutter enabled, just the standard line numbers, folding arrows, bookmarks in the gutter.
Ed
On 14 Feb2017, at 3:56 PM, Graham Heath graham.p.heath@gmail.com wrote:
Thanks for the answers. What all is happening here is still a mystery but I’ve got an update;
I’ve now had 24 hours without incident. My current theory is this relates to SCM Diff Gutter, as after disabling it I haven’t seen the issue, but thats just a theory. I’m re-enabling Emmet today, and I’ll add my linters tomorrow.
Ed, do you have SCM Diff Gutter, or anything adding icons to your gutter?
Thanks,
Graham Heath
On February 10, 2017 at 9:08:03 PM, Ed Wong (scampy@me.com mailto:scampy@me.com) wrote:
1: have more than a few TextMate windows or tabs open?
Usually many windows with many tabs. Some windows are minimized (those that I’m not actively working on at the moment).
2: have a customized window bar title?
Yes - full document path.
3: have expensive to render documents?
A few files with > 5000 lines but generally < 1500 lines of PHP, ObjC, HTML, JS or CSS. Some customizations done to PHP bundle and Mac Classic theme.
4: SCM integration?
Git on some projects.
Hope this helps.
Ed
On Feb 10, 2017, at 5:33 PM, Graham Heath <graham.p.heath@gmail.com mailto:graham.p.heath@gmail.com> wrote:
This continues to happen to me a few times a day, exclusively in TextMate. Some days are worse, maybe better after a reboot, but thats not for sure.
Some more theories for you Ed, and anyone else :)
Do you … 1: have more than a few TextMate windows or tabs open? 2: have a customized window bar title? 3: have expensive to render documents? 4: SCM integration?
Here’s what I’m thinking _might_ be happening for each of these. Hopefully one of these sparkles for someone.
- TM is confused about what tab / window should have focus, and fails to pick one.
- I have a pretty complex stack of replacements to build my window title, perhaps one of these replacements has a edge case that causes an error
- TM may be selecting the right tab, but the selection doesn’t happen in a reasonable time and aborts
- The timing between focus and TM failing to select a tab seems related to when the title bar updates when SCM is working
I’ve been experimenting with disabling plugins and add ons. Today I’m going to try disabling the SCM plugin :(
If that doesn’t work I guess I’ll build TM and see what I can find. Short of building it, there’s not a way better debug this issue, is there?
Thanks,
Graham Heath
On February 1, 2017 at 7:05:23 AM, Ed Wong (scampy@me.com mailto:scampy@me.com) wrote:
Hi Graham,
My TM setup is pretty basic. No plug-ins, Shell Support installed, Git support sometimes depending on the project.
I think Allan may be right though as I’ve seen this behaviour with Safari and Finder as well so it could be an general OS issue.
Ed
On Jan 31, 2017, at 10:23 PM, Graham Heath <graham.p.heath@gmail.com mailto:graham.p.heath@gmail.com> wrote:
Allan, I’m sorry to say, that this is behavior that I associate with TextMate, not the os at large. I will keep an eye out for it and let you know if I change my mind. But, as you’ll see below, I don’t really blame your code either, I’m just wondering whats causing it. Its so erratic that its probably not something simple.
Jacob, Ed, and others; Do you have any plugins? I haven’t done the full reset, but I have disabled things that I feel might be offending. Its too early to say, but I wonder if a plugin might be triggering when the app gets focus, but something isn’t going quite right.
Tossing this on the pile; I’m using a early 2013 mbp that does seem to have issues with apps hanging or freezing fairly often, so maybe whatever’s causing that, is causing this.
Thanks,
Graham Heath
On January 14, 2017 at 11:44:42 PM, Allan Odgaard (mailinglist@textmate.org mailto:mailinglist@textmate.org) wrote:
On 14 Jan 2017, at 5:54, Graham Heath wrote:
> I’m regularly experiencing a bug where TextMate seems to receive > partial > focus. The title bar will appear to be selected, but the tabs never > come > into focus […]
This issue has existed with macOS for as long as I can remember, and I have seen it for other apps as well, though it is visually much more obvious with TextMate because of the tabs bleeding into the title bar.
I do not think the issue is with any of my code, since window management is not the responsibility of the individual app and I am not aware of code in TextMate that could affect this.
textmate mailing list textmate@lists.macromates.com mailto:textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com mailto:textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com mailto:textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate http://lists.macromates.com/listinfo/textmate