macdown icon indicating copy to clipboard operation
macdown copied to clipboard

Open Recent list shows blank entries which generate 'The document “(null)” could not be opened.' error dialogs when selected

Open jamesquilty opened this issue 2 years ago • 16 comments

On macOS Sonoma 14.3 MacDown 0.7.1/0.7.3 appears to be unable to store entries in the recent file list in File → Open Recent. The entries are blank and, when selected, generate an error dialog: MacDown Open Recent Error Dialog I see this behaviour on two separate Macs both running macOS Sonoma 14.3.

jamesquilty avatar Jan 28 '24 20:01 jamesquilty

Also reported in #1328.

jamesquilty avatar Feb 04 '24 04:02 jamesquilty

Confirmed in 14.4.1 on Intel and M1.

David-Talaga avatar Mar 28 '24 14:03 David-Talaga

I also encountered this problem. I downloaded the source code and compiled it, and found that the problem still existed. This menu is automatically generated by the system. If I use Xcode to create a new project, I find it is fine. I'm still looking for the exact reason.

jasper2007111 avatar Aug 05 '24 17:08 jasper2007111

After my debugging, I found that this problem was caused by the inability of recentDocumentURLs in NSDocumentController to add recent files. It should be due to Apple's sandbox mechanism. In fact, newly created projects do not have this problem, and new projects do have a sandbox setting option. The solution is to change the project settings according to Xcode's recommendations.

jasper2007111 avatar Aug 07 '24 09:08 jasper2007111