Auto/Manual Refresh not working with SkyDrive
Hi
I am having issues with refresh not working (neither auto/manual)
on .md documents I have stored on SkyDrive. I have tried a few
editors (BBEdit, Mou, nano) and I get the same results across all.
If I close and re-open the .md document in Marked, the updates
appear, but Refresh almost never works.
For reference, tried this on my local disk, outside of the SkyDrive directory, and the refresh seems to work as expected.
Thanks,
Jamie
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on 12 Apr, 2013 02:54 PM
I haven't used SkyDrive. How is it mounted? Do the files exist on your local drive as they do with Dropbox?
2 Posted by jamie on 12 Apr, 2013 10:29 PM
Yes, it is very much like DropBox, where there is a SkyDrive folder in your Home folder, and it syncs with the cloud on updates.
Support Staff 3 Posted by Brett on 12 Apr, 2013 10:49 PM
And is your SkyDrive indexed by Spotlight?
4 Posted by jamie on 12 Apr, 2013 11:01 PM
That is a great question. I assume so, since I have not specifically excluded it. However Microsoft may on install (though I do not see the point of that). I'll check it out, and re-index via cli, and let you know if it gets fixed.
Support Staff 5 Posted by Brett on 13 Apr, 2013 12:15 AM
You can tell quickly by running `mdls` on any file in the folder and seeing if there's any metadata listed.
6 Posted by jamie on 13 Apr, 2013 01:04 PM
Hi Brett
I ran mdls on the .md file, in the SkyDrive folder, and there is metadata attached to it:
BenderBook:NID API Documentation jpeloquin$ mdls NewformaId_API.md
kMDItemContentCreationDate = 2013-04-11 20:42:02 +0000
kMDItemContentModificationDate = 2013-04-12 16:14:29 +0000
kMDItemContentType = "net.daringfireball.markdown"
kMDItemContentTypeTree = (
"net.daringfireball.markdown", "public.text", "public.data", "public.item", "public.content" ) kMDItemDateAdded = 2013-04-11 20:43:33 +0000
kMDItemDisplayName = "NewformaId_API.md"
kMDItemFSContentChangeDate = 2013-04-12 16:14:29 +0000
kMDItemFSCreationDate = 2013-04-11 20:42:02 +0000
kMDItemFSCreatorCode = ""
kMDItemFSFinderFlags = 0
kMDItemFSHasCustomIcon = 0
kMDItemFSInvisible = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSIsStationery = 0
kMDItemFSLabel = 0
kMDItemFSName = "NewformaId_API.md"
kMDItemFSNodeCount = 48660
kMDItemFSOwnerGroupID = 20
kMDItemFSOwnerUserID = 502
kMDItemFSSize = 48660
kMDItemFSTypeCode = "TEXT"
kMDItemKind = "Markdown"
kMDItemLastUsedDate = 2013-04-12 19:43:36 +0000
kMDItemLogicalSize = 48660
kMDItemPhysicalSize = 49152
kMDItemUseCount = 37
kMDItemUsedDates = (
"2013-04-12 04:00:00 +0000" )
One interesting thing that may play a part - is that the SkyDrive "folder" is only in my Home folder when I am logged in. I noticed this this morning while trying to run mdls from another account (via su) in the command line. DropBox was there, GoogleDrive was there, but no SkyDrive. When I fully logged in as this user, the SkyDrive "folder" was now in my Home directory... Very odd.
Support Staff 7 Posted by Brett on 13 Apr, 2013 01:53 PM
It appears, though I haven't been able to confirm, that the SkyDrive folder is actually a network mount. Marked can't track files on network mounts, and that would explain the lack of refresh. What I'm not sure about is why manual refresh wouldn't work if that's the case. Are you certain that hitting ⌘R doesn't update the preview for SkyDrive documents?
8 Posted by jamie on 15 Apr, 2013 02:56 PM
So, here is something interesting. I was talking it over with a co-worker this morning, and I came up on the idea that maybe the SkyDrive folder is just hidden until a proper OSX Login... I logged in as another user on my Mac, and in Terminal, I switched users (using su) to the user who has the markdown files on SkyDrive. When I ran 'ls', as expected I could not find the SkyDrive folder. Tried 'ls -la', also no SkyDrive folder. Okay - so let’s try running 'locate SkyDrive' - that did show a record for /Users/jpeloquin/SkyDrive . I tried 'cd /Users/jpeloquin/SkyDrive ', which didn't come back with any errors... Interesting - so I did and 'ls' and sure enough all my files were listed. With this info, I would say that there is definitely a cache folder, like DropBox/GoogleDrive - but for some reason they pass a hide flag on the folder upon logout, and unhide it on login (I assume the SkyDrive.app has a daemon that does this). This, if nothing else, is a very interesting look at how SkyDrive works... Makes me feel a little queasy...
9 Posted by jamie on 15 Apr, 2013 03:01 PM
As for the manual refresh (⌘R) - the refresh is hit or miss. It will sometimes refresh, sometimes not. I will say that if auto-refresh isn't working, then the manual refresh also does not work. Is there anything that might show up in the console logs if there is an error in trying to refresh a document?
10 Posted by jamie on 15 Apr, 2013 03:48 PM
Another update on the SkyDrive - even with the jpeloquin user logged in, I can not see the SkyDrive folder in a remote session... Very odd.
Support Staff 11 Posted by Brett on 18 Apr, 2013 05:13 PM
I'm going to have to say that Marked probably can't track files on SkyDrive. I'll attempt to test as I'm able, but without knowing what the issue actually is, it's difficult to say.
12 Posted by jamie on 18 Apr, 2013 06:23 PM
No worries, after investigating how SkyDrive works, I am a bit concerned about always having access to it... Will most likely move all my important docs out of it, and consolidate on either DropBox, Box or Google Drive... Thanks so much for taking the time on this ticket!
Brett closed this discussion on 25 Apr, 2013 08:47 PM.
jamie re-opened this discussion on 15 May, 2013 12:42 PM
13 Posted by jamie on 15 May, 2013 12:45 PM
Hi Brett
Follow-up on this issue. I moved the markdown file from SkyDrive to DropBox, and I am experiencing the same issues with "Refresh" not actually updating the preview. It seems to work once or twice, and then just stops refreshing (including when using Preview > Refresh). If it makes any difference at all, I am using BBEdit to write the document.
Thanks,
Jamie