Finder Allow Access dialog loop when an opened file is deleted from the file system

sapling.00.yurt's Avatar

sapling.00.yurt

17 Apr, 2022 03:33 AM

// Please enter a detailed description of the issue // Description of the issue: Finder Allow Access dialog loop

// Please enter a list of steps required to reproduce the issue // Steps to reproduce:

  1. Open a file in Marked app
  2. Delete the file using Finder or from any other app.

// If applicable please attach a sample document that causes the issue for you.

// Configuration (do not edit) Marked 2 1027 (Setapp)

macOS Version: 12.3.1

additionalMathJaxConfig:
allowPageBreakInCode: YES
bookTxtIsLeanpub: NO
summaryMdIsGitBook: NO
codeIsPoetry: NO
codeCanWrap: YES
collapsibleHeadlines: NO
convertGithubCheckboxes: YES
convertGithubEmoji: YES
convertYAMLToMMD: NO
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML
defaultPreviewStyle: 3
defaultProcessor: Discount (GFM)
enableMiniMap: NO
excludeBlockQuotesFromCounts: NO
excludeFootnotesFromCounts: NO
excludeVerbatimFromCounts: NO
excludeCaptionsFromCounts: NO
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml
githubNewlines: YES
h1IsPageBreak: NO
h2IsPageBreak: NO
hrIsPageBreak: NO
includeMathJax: YES
includeKatex: NO
limitTextWidth: YES
mathNumberEquations: NO
mathNumberEquationsSide: 0
mathNumberEquationsAMSOnly: NO
minimalJavaScript: YES
outlineModeExtensions:
permissionGranted: NO
printHeaderBottomLeft:
printHeaderBottomRight:
printHeaderFirstPage: NO
printFooterFirstPage: NO
printHeaderTopLeft:
printHeaderTopRight:
processHTMLFiles: YES
removeMetadataForPreview: NO
removeYAMLHeaders: NO
scrollToEdit: YES
shouldDetectCritic: YES
shouldHighlightMarkupErrors: YES
shouldLoadCritic: NO
syntaxHighlight: YES
syntaxHighlightOnlyLang: NO
useCustomMarkdownProcessor: NO
customMarkdownProcessor:
useCustomPreprocessor: NO
customPreprocessor:
useFirstH1AsPrintTitle: YES

  1. Support Staff 1 Posted by Brett on 17 Apr, 2022 01:33 PM

    Brett's Avatar

    I’ll look into why this is happening. In the meantime if you need to launch Marked in a way that doesn’t try to open the missing file, open Terminal and enter:

    open -F -a Marked.app

    And hit return.

    Thanks,
    Brett

  2. 2 Posted by sapling.00.yurt on 30 Jul, 2022 01:54 PM

    sapling.00.yurt's Avatar

    Any update on this one? I delete documents from time to time that I automatically opened in MarkedApp, and when I need to delete this file, I have to go through this loop. You can display a dialog if the file was not found, no need to go into a loop of this accessibility dialogue nonsense. Please.

  3. Support Staff 3 Posted by Brett on 30 Jul, 2022 03:14 PM

    Brett's Avatar

    This does not happen for me locally. When exactly is the loop happening? When you delete a file that was previously open in Marked while it isn't running and then it tries to open previous windows? Or delete it while it's open in Marked? Or something else? I've tried every combination of this and never get this file access loop, though I haven't specifically tested with the Setapp build you're using. Please help me narrow it down.

  4. 4 Posted by sapling.00.yurt on 01 Aug, 2022 02:29 AM

    sapling.00.yurt's Avatar

    Hi Brett,
    I was having trouble responding to the email, so I'll post it here.

    Thank you for checking this. I’ve attached a screencap of the issue.

    In the video, 
        I will delete a file that is opened in MarkedApp, then an Access dialog will appear, and you will see that I will manually dismiss the dialog and attempt to close the deleted file tab but before I could, the dialog pops back again before I could click on the x. Hope this helps with your investigation.
    
  5. Support Staff 5 Posted by Brett on 01 Aug, 2022 05:53 PM

    Brett's Avatar

    Tested with the Setapp version and attempted to replicate exactly what I saw happening in your video, but I never got a permissions dialog at all. It's baffling that you would be seeing that, as the Setapp version isn't even sandboxed and never needs it.

    Out of curiosity, does it go away if you click Allow Access? Or does it keep coming back?

    -Brett

  6. 6 Posted by sapling.00.yurt on 02 Aug, 2022 03:03 AM

    sapling.00.yurt's Avatar

    Out of curiosity, does it go away if you click Allow Access? Or does it keep coming back?

    It keeps coming back, the same behavior as the Cancel button. It'd be good if you could try to replicate it on a Setapp version just so we have the closest build/environment.

    BTW I found a way to alleviate the issue so it doesn't bother me as much and deleting outdated documents is not something I do frequently. When I need to delete a file, given I have a script that automatically opens every .md I open on another editor into Marked, I need to close the tab in the Marked app in advance before deleting the file.

  7. Support Staff 7 Posted by Brett on 02 Aug, 2022 12:06 PM

    Brett's Avatar

    I did test with the Setapp version. As far as I can tell, my setup is identical. Like I said, there's no sandboxing in that version, so it really shouldn't EVER need to ask your permission (and isn't set up to). It's pretty baffling.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • 0417-1127-Marked-Deleted_File_Loop.png 227 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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