tag:support.markedapp.com,2011-09-11:/discussions/questions/7819-marked-246-fails-to-open-some-filesMarked: Discussion 2016-08-11T03:16:17Ztag:support.markedapp.com,2011-09-11:Comment/348604602014-10-06T22:48:29Z2014-10-06T22:48:38ZMarked 2.4.6. fails to open some files<div><p>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.</p></div>altag:support.markedapp.com,2011-09-11:Comment/348604602014-10-06T22:56:46Z2014-10-06T22:56:46ZMarked 2.4.6. fails to open some files<div><p>It opens fine for me in the latest version. Can you show me
your<br>
Processor settings?</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/348604602014-10-06T23:03:54Z2014-10-06T23:03:54ZMarked 2.4.6. fails to open some files<div><p>here is a screenshot</p></div>altag:support.markedapp.com,2011-09-11:Comment/348604602014-10-06T23:06:37Z2014-10-06T23:06:37ZMarked 2.4.6. fails to open some files<div><p>And when you say it fails to open, are you getting an error?</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/348604602014-10-06T23:10:38Z2014-10-06T23:10:38ZMarked 2.4.6. fails to open some files<div><p>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...</p></div>altag:support.markedapp.com,2011-09-11:Comment/348604602014-10-06T23:18:15Z2014-10-06T23:18:15ZMarked 2.4.6. fails to open some files<div><p>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. <a href="filename.md">reference text</a></p>
<p>But even that is inconsistent - sometimes it bombs and sometimes
it doesn't.</p></div>altag:support.markedapp.com,2011-09-11:Comment/348604602014-10-06T23:37:27Z2014-10-06T23:37:27ZMarked 2.4.6. fails to open some files<div><p>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.</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/348604602014-11-08T01:31:13Z2014-11-08T01:31:14ZMarked 2.4.6. fails to open some files<div><p>Same issue here (non-AppStore Marked 2.4.7 on Mac OS 10.10).
Using the files from the attached tar archive:</p>
<ol>
<li>I open file1.md and file2.md (either from Finder or with the
<code>open</code> command in Terminal). Works fine.</li>
<li>I click the link to open file2.md. After telling Marked whether
to use the current window or a new one, it opens file2.md as
expected.</li>
<li>Back in file1.md, I click the link to open file3.md, and say
that I want it in a new window. Nothing happens.</li>
<li>I click the link for file3.md again, this time asking to have
it opened in the same window. After a second or too, I get the big
“File Type Fail” message.</li>
</ol>
<p>After enabling the debug mode using <code>defaults write
com.brettterpstra.marked2 debugMode 1</code>, Console.app gives me
the following information:</p>
<pre>
<code>08/11/14 02:25:09,471 Marked 2[648]: Detected file url: /Users/lars/file3.md (webView:decidePolicyForNavigationAction:request:frame:decisionListener:)
08/11/14 02:25:13,389 Marked 2[648]: VDKQueue tried to add the path /Users/lars/file3.md to watchedPathEntries, but the VDKQueuePathEntry was nil.
It's possible that the host process has hit its max open file descriptors limit.
08/11/14 02:25:13,389 Marked 2[648]: Monitoring CSS (startMonitoringFile)
08/11/14 02:25:13,405 sandboxd[311]: ([648]) Marked 2(648) deny file-read-data /Users/lars/file3.md
08/11/14 02:25:13,414 Marked 2[648]: Loading (tryOpenFile)
08/11/14 02:25:13,416 Marked 2[648]: file:///Users/lars/file3.md opened with encoding 3127 (tryOpenFile)
08/11/14 02:25:13,417 Marked 2[648]: Error opening, trying again (loadFromBaseURL)
08/11/14 02:25:13,432 sandboxd[311]: ([648]) Marked 2(648) deny file-read-data /Users/lars/file3.md
08/11/14 02:25:14,418 Marked 2[648]: Loading (tryOpenFile)
08/11/14 02:25:14,421 Marked 2[648]: file:///Users/lars/file3.md opened with encoding 140734693077056 (tryOpenFile)
08/11/14 02:25:14,422 Marked 2[648]: ERROR text is nil for /Users/lars/file3.md
08/11/14 02:25:14,422 Marked 2[648]: Loading failed (showErrorNib:)
08/11/14 02:25:14,435 sandboxd[311]: ([648]) Marked 2(648) deny file-read-data /Users/lars/file3.md
08/11/14 02:25:26,909 sandboxd[311]: ([648]) Marked 2(648) deny file-read-data /Users/lars/file3.md</code>
</pre>
<p>Interestingly enough, Marked 2.2 (non-AppStore as well, on the
same system) has no problem whatsoever with these file links.</p>
<p>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?</p></div>Lars Trebingtag:support.markedapp.com,2011-09-11:Comment/348604602014-11-08T01:48:41Z2014-11-08T01:48:41ZMarked 2.4.6. fails to open some files<div><p>It's a simple permissions issue. Drag the parent folder to
Marked and it<br>
will all work fine.</p>
<p>I'll start having Marked request permissions when opening files
through<br>
links.</p>
<p>-Brett</p></div>Brett