Marked 2.4.6. fails to open some files
I just upgraded to 2.4.6 and now some of my files won't open. The attached example is UTF-8 text. It opened in earlier versions of Marked 2, and still opens fine in Marked 2.2, which 2.4.6 didn't replace.
- Markdown-notes.md 1.11 KB
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 06 Oct, 2014 10:56 PM
It opens fine for me in the latest version. Can you show me your
Processor settings?
-Brett
2 Posted by al on 06 Oct, 2014 11:03 PM
here is a screenshot
Support Staff 3 Posted by Brett on 06 Oct, 2014 11:06 PM
And when you say it fails to open, are you getting an error?
4 Posted by al on 06 Oct, 2014 11:10 PM
Yup, the big red cross screen. Woah. I just re-tried and now it works. All I have done is shut down and restart. I promise I was not dreaming! Hmm. I should experiment to see if I can duplicate the error consistently...
5 Posted by al on 06 Oct, 2014 11:18 PM
Its midnight here and I need sleep.. but just briefly... Opening a file from the "Open" menu always works fine, and double-clicking on the file seems to work. The issue is clicking on a link in another .md file, i.e. [reference text](filename.md)
But even that is inconsistent - sometimes it bombs and sometimes it doesn't.
Support Staff 6 Posted by Brett on 06 Oct, 2014 11:37 PM
I'm guessing that you're running into sandboxing issues with the latest versions. If a user explicitly opens the file (via Open menu, double clicking or drag and drop), permission is granted. Clicking a link does not constitute an express granting of permission, so if the file is in another folder and has never been opened before, it will fail to be read.
7 Posted by Lars Trebing on 08 Nov, 2014 01:31 AM
Same issue here (non-AppStore Marked 2.4.7 on Mac OS 10.10). Using the files from the attached tar archive:
open
command in Terminal). Works fine.After enabling the debug mode using
defaults write com.brettterpstra.marked2 debugMode 1
, Console.app gives me the following information:Interestingly enough, Marked 2.2 (non-AppStore as well, on the same system) has no problem whatsoever with these file links.
Is there anything that I can do to get this to work again? Or can I expect it to be fixed in the next update?
Support Staff 8 Posted by Brett on 08 Nov, 2014 01:48 AM
It's a simple permissions issue. Drag the parent folder to Marked and it
will all work fine.
I'll start having Marked request permissions when opening files through
links.
-Brett