[TxMt] Re: `mate <file>` from Terminal is occasionally very slow to open <file> in TextMate

Jay Soffian jaysoffian at gmail.com
Fri Jul 12 17:49:32 UTC 2019


I know I'm bumping an old thread. This behavior happens to me all the time
(a few times a day). I haven't been able to figure it out. I don't use fish
shell, but rather bash. I do use a multi-monitor setup but I think I've
seen it when only using my laptop alone. It probably dates back to High
Sierra. My typical use case is "mate ." in a directory, not a specific
file. That directory will have a ".tm_properties" file making it a project.
I use iTerm2.

So TextMate is running, I switch to a directory in iTerm2, type "mate ."
then the command just hangs for 5-10 seconds before TextMate finally comes
to the front.

The laptop has an SSD. I think the problem is worse when I have a USB drive
attached for Time Machine.

I haven't thought to try clicking TextMate in the dock or command-tab
switching to it. I will try that next time this occurs.

I assume the folks who were suffering from this problem in this thread have
continued to put up with it? I know how frustrating it is. :-(

j.


On Mon, Nov 12, 2018 at 3:53 AM Daniel Vollmer <lists at maven.de> wrote:

> Hello,
>
> I haven’t really managed to diagnose this further, but occasionally I get
> the feeling that this might be due to how `fish` shell triggers execution
> of binaries (but again, I’ve only observed this in conjunction with `mate`
> — but that’s probably my most-used command-line utility that connects to
> the WindowServer by a large margin).
>
>         Daniel.
>
> > On 12. Nov 2018, at 05:30, Kevin Reid <kpreid at switchb.org> wrote:
> >
> > On Sun, Nov 11, 2018 at 7:42 PM Allan Odgaard <mailinglist at textmate.org>
> wrote:
> > On 29 Jul 2018, at 16:57, Kevin Reid wrote:
> >
> > I can't confirm right now because the problem is not happening (it's
> > intermittent and I haven't identified a cause).
> >
> > Try run something like this from a terminal to see if it is reproducible:
> >
> > for (( i = 1; i < 50; i++ )); do echo -n "Edit $i..."; mate -w
> "/tmp/test $i.txt"; echo "Done!"; done
> >
> > I did this myself but only issue I saw was that sometimes TextMate
> wouldn’t activate, mostly addressed in these two commits:
> https://github.com/textmate/textmate/compare/cc9faa602...d93972f95 and
> should only hapen when `mate` is used in succession.
> >
> > No hang/slow when I ran your test. However, in my experience since the
> last discussion, the problem seems to come and go on a long time scale.
> Like there's something else about the system, like maybe the state of
> Spaces/fullscreen, that determines whether it happens; it isn't random each
> time.
> >
> > _______________________________________________
> > textmate mailing list
> > textmate at lists.macromates.com
> > https://lists.macromates.com/listinfo/textmate
>
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> https://lists.macromates.com/listinfo/textmate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macromates.com/textmate/attachments/20190712/3536bc64/attachment.html>


More information about the textmate mailing list