Discussion:
[TxMt] File browser: SCM status view no longer working?
Stefan Daschek
2018-11-07 12:12:39 UTC
Permalink
Today I noticed that clicking the SCM icon in the bottom right of the
file browser no longer does anything (it used to filter the view to
include only those files with a specific SCM status). Maybe this is
related to the recent changes in the file browser?

Everything else regarding SCM (using Git in my case) still works as
expected, including the SCM badges on the icons in the file browser.

Using TextMate 2.0-rc.14


Cheers,
Stefan
Hans-Jörg Bibiko
2018-11-07 12:24:40 UTC
Permalink
Post by Stefan Daschek
Using TextMate 2.0-rc.14
For me works - using TextMate 2.0-rc.15

-Hans
Jacob Carlborg
2018-11-07 12:38:03 UTC
Permalink
Post by Hans-Jörg Bibiko
Post by Stefan Daschek
Using TextMate 2.0-rc.14
For me works - using TextMate 2.0-rc.15
Same here.
--
/Jacob Carlborg
Stefan Daschek
2018-11-07 21:26:37 UTC
Permalink
Post by Jacob Carlborg
Post by Hans-Jörg Bibiko
Post by Stefan Daschek
Using TextMate 2.0-rc.14
For me works - using TextMate 2.0-rc.15
Same here.
Hm, on my other machine (TextMate 2.0-rc.15) it also doesn’t work. Both
machines have similar but not 100% identical configurations (both are
still using 10.13 High Sierra, by the way).

So it seems this is somehow related to my setup - any hints on how to
debug this?


Stefan
Jacob Carlborg
2018-11-08 10:04:06 UTC
Permalink
Hm, on my other machine (TextMate 2.0-rc.15) it also doesn’t work. Both machines have similar but not 100% identical configurations (both are still using 10.13 High Sierra, by the way).
I’m using 10.13 as well.

--
/Jacob Carlborg
Nigel Chapman
2018-11-09 16:28:00 UTC
Permalink
I’ve seen this behaviour (rc.15 on Mojave and rc.14 on High Sierra) but only with a project that I’ve got stored on my iCloud drive. Which seems a bit odd. I don’t think it can be that the .git folder isn’t synching, because like Stefan says, all the Git bundle commands work fine, and the icons have the right badges in the file browser.

(Also odd, but off-topic, on my iMac running High Sierra, check for updates tells me I am up to date on rc14, but on my laptop running Mojave it tells me I am up to date on rc15.)
Today I noticed that clicking the SCM icon in the bottom right of the file browser no longer does anything (it used to filter the view to include only those files with a specific SCM status). Maybe this is related to the recent changes in the file browser?
Everything else regarding SCM (using Git in my case) still works as expected, including the SCM badges on the icons in the file browser.
Using TextMate 2.0-rc.14
Cheers,
Stefan
_______________________________________________
textmate mailing list
https://lists.macromates.com/listinfo/textmate
Allan Odgaard
2018-11-10 07:18:01 UTC
Permalink
I’ve seen this behaviour (rc.15 on Mojave and rc.14 on High Sierra)
but only with a project that I’ve got stored on my iCloud drive.
Which seems a bit odd. I don’t think it can be that the .git folder
isn’t synching, because like Stefan says, all the Git bundle
commands work fine, and the icons have the right badges in the file
browser.
When you click the SCM button, is it a no-op or does the file browser
show an empty list of files? And if the latter, does the header say
anything?

Also, can you try open SCM status via File Browser menu (SCM Status
⇧⌘Y)? Just to be sure the issue is not just with the button,
although that it’s a single project seems to indicate that it is not.
(Also odd, but off-topic, on my iMac running High Sierra, check for
updates tells me I am up to date on rc14, but on my laptop running
Mojave it tells me I am up to date on rc15.)
This is because rc.15 requires 10.14, so it does not show up as a
candidate for 10.13.

I do expect to keep backwards compatibility for future builds, but some
of the visual changes required for 10.14, I am not sure how they work
before 10.14, so just to be safe, I made it require 10.14 while working
on these things.
Stefan Daschek
2018-11-10 10:43:08 UTC
Permalink
I’ve seen this behaviour (rc.15 on Mojave and rc.14 on High
Sierra) but only with a project that I’ve got stored on my iCloud
drive. Which seems a bit odd. I don’t think it can be that the
.git folder isn’t synching, because like Stefan says, all the Git
bundle commands work fine, and the icons have the right badges in
the file browser.
When you click the SCM button, is it a no-op or does the file browser
show an empty list of files? And if the latter, does the header say
anything?
For me, it’s a no-op.
Also, can you try open SCM status via File Browser menu (SCM Status
⇧⌘Y)? Just to be sure the issue is not just with the button, although
that it’s a single project seems to indicate that it is not.
Same effect as clicking the button: It’s also a no-op.

I tried with even more of my projects and it turns out that only some
projects are affected. Currently it looks like the bug occurs in
projects where Git submodules are present. Interestingly, both the
“parent” project as well the submodules themselves seem to be affected.
Projects not using submodules seem to work normally.

S.
Jacob Carlborg
2018-11-10 20:03:08 UTC
Permalink
I tried with even more of my projects and it turns out that only some projects are affected. Currently it looks like the bug occurs in projects where Git submodules are present. Interestingly, both the “parent” project as well the submodules themselves seem to be affected. Projects not using submodules seem to work normally.
No problems for me using submodules.

--
/Jacob Carlborg
Nigel Chapman
2018-11-10 10:46:31 UTC
Permalink
When you click the SCM button, is it a no-op or does the file browser show an empty list of files? And if the latter, does the header say anything?
Also, can you try open SCM status via File Browser menu (SCM Status ⇧⌘Y)? Just to be sure the issue is not just with the button, although that it’s a single project seems to indicate that it is not.
SCM button is a no-op, and so is the menu command.

There are no git sub-modules in this project, the only funny thing about it is that it is on the icloud drive,
(Also odd, but off-topic, on my iMac running High Sierra, check for updates tells me I am up to date on rc14, but on my laptop running Mojave it tells me I am up to date on rc15.)
This is because rc.15 requires 10.14, so it does not show up as a candidate for 10.13.
Thanks for the explanation.
Allan Odgaard
2018-11-12 04:37:20 UTC
Permalink
Post by Nigel Chapman
SCM button is a no-op, and so is the menu command.
There are no git sub-modules in this project, the only funny thing
about it is that it is on the icloud drive,
Did it work prior to the file browser update?

Also, where is this project on disk? Are you using `mate
/path/to/project` to open it? Or possibly the file browser’s “Go to
Folder
”.

I added a git repository for an iCloud container, and that worked for
me. But actually navigating to the container in TextMate was a bit of a
challenge, as iCloud is not shown as a volume, and selecting iCloud via
“Go to Folder
” doesn’t actually list all containers, as they
appear to not be in a central location: Though I was unable to find any
developer documentation about how I could add proper iCloud support to
the file browser. The only thingI found was about accessing my own
application’s container.
Nigel Chapman
2018-11-12 10:22:15 UTC
Permalink
Post by Allan Odgaard
Did it work prior to the file browser update?
It certainly worked in the past. I can’t definitely pin it down to the file browser update, as I only returned to working on this project recently. I originally thought it must have happened when I installed Mojave, but then I found out that the same thing is going on on my other machine which still has High Sierra, so the file browser update seems the likeliest time at which it stopped working.
Post by Allan Odgaard
Also, where is this project on disk? Are you using mate /path/to/project to open it? Or possibly the file browser’s “Go to Folder…”.
This is on the iCloud drive volume, which I see in the sidebar of the open dialogue. It’s not in a Textmate container. The actual folder is inside

~/Library/Mobile Documents/com~apple~CloudDocs/

I usually open this project with the Favourite Projects dialogue, but it’s all the same whether I use that, the File>Open command or mate from inside terminal.

I tried a few extra things, which only confused matters further. If I open any folder on the iCloud drive, the SCM button does not work, it’s a no-op, whether there's a repo or not. If I open any folder that was originally created on the local drive, it works as expected – if there’s a Git repo it shows the uncommitted changes and untracked items, if not, the “no status” thing. But, if I copy one of the folders off the iCloud drive to the local drive, the SCM button doesn’t work. Same whether I copy the whole folder or create a new folder and copy all the files. (This is all done in the Finder, I haven’t tried copying in terminal.) But I can’t see any unexpected hidden files in these folders.

I couldn’t see anything in the system logs that might correspond to something going wrong when I click the button.

If it was just me and my iCloud drive, I’d say that it was an edge case that you needn’t bother about, but these other reports that don’t seem to have anything in common are perhaps a bit concerning.

And thanks for reviving my request about the auto-hiding file browser.

All the best

Nigel
Allan Odgaard
2018-11-14 04:15:44 UTC
Permalink
Post by Nigel Chapman
I tried a few extra things, which only confused matters further. If I
open any folder on the iCloud drive, the SCM button does not work,
it’s a no-op, whether there's a repo or not. If I open any folder
that was originally created on the local drive, it works as expected
– if there’s a Git repo it shows the uncommitted changes and
untracked items, if not, the “no status” thing. But, if I copy one
of the folders off the iCloud drive to the local drive, the SCM button
doesn’t work. Same whether I copy the whole folder or create a new
folder and copy all the files. (This is all done in the Finder, I
haven’t tried copying in terminal.) But I can’t see any unexpected
hidden files in these folders.
In v2.0-rc.18 I added an explicit alert dialog for when a) no version
control information is found, or b) when version control is found, but
has been explicitly disabled for the folder (as we do e.g. for the home
folder due to performance issues).

Let me know if this alert is triggered, or if the button is still
sometimes a no-op.
Stefan Daschek
2018-11-14 09:31:43 UTC
Permalink
_______________________________________________
textmate mailing list
***@lists.macromates.com
https://lists.macromates.com/listinfo/textmate
Allan Odgaard
2018-11-14 09:42:00 UTC
Permalink
For me it’s still a no-op in some projects – and it may still be
related to Git submodules: For the handful of projects I tried, it
worked correctly in those without submodules, and didn’t work in
those containing submodules (regardless whether the project folder was
the parent repository or one of it’s submodules).
The TextMate source itself uses submodules, can you try clone that
repository and see if that works?

git clone --recursive https://github.com/textmate/textmate.git
Jacob Carlborg
2018-11-14 10:49:14 UTC
Permalink
In v2.0-rc.18 I added an explicit alert dialog for when a) no version control information is found, or b) when version control is found, but has been explicitly disabled for the folder (as we do e.g. for the home folder due to performance issues).
Let me know if this alert is triggered, or if the button is still sometimes a no-op.
For me it’s still a no-op in some projects – and it may still be related to Git submodules: For the handful of projects I tried, it worked correctly in those without submodules, and didn’t work in those containing submodules (regardless whether the project folder was the parent repository or one of it’s submodules).
Can you try removing the submodules and see if it makes a difference?

--
/Jacob Carlborg
Nigel Chapman
2018-11-14 12:40:00 UTC
Permalink
You were on to rc19 by the time I updated. For that version, I now get this behaviour:

Folder on local drive, with Git repo: works as it should, with changed/untracked files displayed in file list.
Folder on local drive, no Git repo: new alert is displayed, the file list does not change,
Folder on iCloud drive, with Git repo: button is still a no-op
Folder on iCloud drive, no Git repo: new alert is displayed, the file list does not change. (Previously, this case was a no-op, too).
In v2.0-rc.18 I added an explicit alert dialog for when a) no version control information is found, or b) when version control is found, but has been explicitly disabled for the folder (as we do e.g. for the home folder due to performance issues).
Let me know if this alert is triggered, or if the button is still sometimes a no-op.
_______________________________________________
textmate mailing list
https://lists.macromates.com/listinfo/textmate
Allan Odgaard
2018-11-22 08:23:22 UTC
Permalink
I found the issue: Spaces in `/path/to/repository/`

This is because I use URLs to represent file browser locations, and when
changing to SCM status I was constructing the URL as `"scm://%s" % path`
but here `path` needs to be URL-escaped

Stefan Daschek
2018-11-22 09:42:21 UTC
Permalink
I found the issue: Spaces in |/path/to/repository/|
Ah, this should explain it! Accidentally, all the repos I tested that
contained submodules have paths containing spaces, and those without
submodules have paths without spaces … so in the end this bug was
totally unrelated to submodules 🤷‍♂️

s.
Nigel Chapman
2018-11-22 09:58:21 UTC
Permalink
Brilliant!

Of course, every directory on the iCloud Drive has a space in the Mobile\ Documents component of the path.

I can confirm that the bug also occurs for me when I create a repo in a directory with a space in its name on the local drive.

Thanks for your work on this (and everything else about Textmate)
I found the issue: Spaces in /path/to/repository/
This is because I use URLs to represent file browser locations, and when changing to SCM status I was constructing the URL as "scm://%s" % path but here path needs to be URL-escaped

_______________________________________________
textmate mailing list
https://lists.macromates.com/listinfo/textmate
Marc Wilson
2018-11-10 16:15:39 UTC
Permalink
For me on rc.14, it’s not a no-op, it toggles between the file list and an empty pane with no title. High Sierra 10.13.6 here.
--
Marc Wilson
I’ve seen this behaviour (rc.15 on Mojave and rc.14 on High Sierra) but only with a project that I’ve got stored on my iCloud drive. Which seems a bit odd. I don’t think it can be that the .git folder isn’t synching, because like Stefan says, all the Git bundle commands work fine, and the icons have the right badges in the file browser.
When you click the SCM button, is it a no-op or does the file browser show an empty list of files? And if the latter, does the header say anything?
Also, can you try open SCM status via File Browser menu (SCM Status ⇧⌘Y)? Just to be sure the issue is not just with the button, although that it’s a single project seems to indicate that it is not.
(Also odd, but off-topic, on my iMac running High Sierra, check for updates tells me I am up to date on rc14, but on my laptop running Mojave it tells me I am up to date on rc15.)
This is because rc.15 requires 10.14, so it does not show up as a candidate for 10.13.
I do expect to keep backwards compatibility for future builds, but some of the visual changes required for 10.14, I am not sure how they work before 10.14, so just to be safe, I made it require 10.14 while working on these things.
_______________________________________________
textmate mailing list
https://lists.macromates.com/listinfo/textmate
Allan Odgaard
2018-11-12 03:37:00 UTC
Permalink
Post by Marc Wilson
For me on rc.14, it’s not a no-op, it toggles between the file list
and an empty pane with no title. High Sierra 10.13.6 here.
That’s a directory which has a repository?

And you say no title, can you capture this?

I.e. with a folder that has no repository, it should show empty pane but
with a header like this:

![](cid:BCA996BE-A510-4076-BF6C-***@textmate.org
"PastedImage.png")
Marc Wilson
2018-11-13 15:33:43 UTC
Permalink
It may have been a one-off, I can’t replicate it now in the same repository since I’ve re-launched TM.
--
Marc Wilson
Post by Allan Odgaard
Post by Marc Wilson
For me on rc.14, it’s not a no-op, it toggles between the file list and an empty pane with no title. High Sierra 10.13.6 here.
That’s a directory which has a repository?
And you say no title, can you capture this?
_______________________________________________
textmate mailing list
https://lists.macromates.com/listinfo/textmate
Loading...