Losing Preference settings

Phil

11 Oct, 2017 12:55 PM

Second time this has happened recently, but all my preferences have been lost/reset for Marked - they look like they have been reset to default. This includes “losing” of custom style sheet setting, export headers and footers and various other preferences I had turned off/on

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

1. Open Marked 2 preferences are gone - I usually open Marked by dragging the icon from the header bar of my editor to the Marked Icon in my doc

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

// Configuration (do not edit) Marked 2 930 (Direct)

OS X Version: 10.13

allowPageBreakInCode: 1
bookTxtIsLeanpub: 0
summaryMdIsGitBook: 0
codeIsPoetry: 0
convertGithubCheckboxes: 1
convertYAMLToMMD: 0
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML
defaultPreviewStyle: 0
defaultProcessor: MultiMarkdown
enableMiniMap: 0
excludeBlockQuotesFromCounts: 0
excludeFootnotesFromCounts: 0
excludeVerbatimFromCounts: 0
excludeCaptionsFromCounts: 0
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml
githubNewlines: 1
h1IsPageBreak: 0
h2IsPageBreak: 0
hrIsPageBreak: 0
includeMathJax: 0
limitTextWidth: 0
minimalJavaScript: 0
outlineModeExtensions:
permissionGranted: 0
processHTMLFiles: 1
scrollToEdit: 1
shouldDetectCritic: 1
shouldHighlightMarkupErrors: 0
syntaxHighlight: 1

1. Support Staff Posted by Brett on 11 Oct, 2017 01:12 PM

Hi Phil,

This sounds like preference files are being corrupted. Have you run a repair in disk utility recently? I ask because I don't recall ever having this issue reported before, so I'm guessing there's probably an issue outside of Marked.

- Brett

2. Posted by tzegin on 11 Oct, 2017 01:36 PM

Happened to me twice since upgrading to 10.13.

Initially I thought the 10.13 upgrade somehow reset Marked 2 preferences, but it happened again yesterday.

3. Posted by tzegin on 11 Oct, 2017 01:50 PM

Now, this has become interesting.

After the preference was lost yesterday, because I was busy, I only changed a few settings, namely General, Preview and Style, including adding a custom CSS. When I click on the Apps tab, I did not choose a text editor and just stopped there and went back to my work.

Looking at the Preferences now, everything is how they should be, including Apps, Proofing, Export and Advanced, i.e. the preferences have been restored.

4. Support Staff Posted by Brett on 11 Oct, 2017 03:19 PM

I would definitely do a disk repair. Preferences are cached pretty
heavily by the system, so they could easily have been re-written to disk
from the cache at some point if the preference file had become

-Brett

5. Posted by Phil Shrimpton on 11 Oct, 2017 03:30 PM

Hi Brett,

Checked disk and carried out a “full Onyx”, no problems identified and nothing to repair.

Been a Marked user for a number of years and the problem has only happened twice and both of those are quite recent, but can’t confirm if they both happened after “upgraded” to High Sierra or not, today’s one was.

I have carried out a full clean of everything cache related and “disk repair” related - I will see if it happens again from now.

Phil

6. Posted by tzegin on 11 Oct, 2017 11:32 PM

First Aid of Disk Utility in recovery mode reported no issue with my startup disk. Will report back if preference is lost again.

-tzegin

7. Posted by tzegin on 26 Oct, 2017 06:56 AM

Had a document opened in Marked 2 this morning. Everything was fine. After leaving the document for a while, when I came back to it, preferences were lost.

Quit Marked 2 and opened the document again, and preferences were restored.

8. Posted by Phil on 26 Oct, 2017 01:25 PM

It has happened to be twice again since the original report, both time the preferences were lost whilst Marked was open. Quitting and restarting Marked restored most of the preferences both times (basically everything apart from my custom CSS file).

May not be related and might be a different issue, but both times I was editing a document and exporting to a paginated PDF and the PDF created did not contain all the pages, it exported 13-15 pages of a 19 page document.

9. Posted by tzegin on 26 Oct, 2017 11:05 PM

Now that you mentioned it, I did export a document to a paginated PDF.

However, the PDF created was perfect, and quitting and restarting Marked restored all preferences including my custom CSS.

10. Support Staff Posted by Brett on 27 Oct, 2017 06:15 PM

This sounds like a failure to write to the preference storage. I'd
highly recommend trashing the current preference file:

- Direct version: ~/Library/Preferences/com.brettterpstra.marked2
- MAS version:
~/Library/Containers/com.brettterpstra.marked2/Data/Library/Preferences/com.brettterpstra.marked2.plist

You'll have to rebuild your preferences, but if that file is corrupted
in any way, it could easily cause the symptoms you're seeing.

Please let me know if that helps.

-Brett

11. Posted by tzegin on 28 Oct, 2017 04:00 AM

I believe the preference file was corrupted. After upgrading to 10.13, I had to change the top margin to 50 (which was huge) to get the margin I wanted for PDF export.

After trashing the preference file, I have to set the top margin to 25, which to me is the correct figure.

12. Posted by Ralf Papenkordt on 29 Oct, 2017 11:51 PM

It seems that apps losing its preferences is a common problem in macOS High Sierra. I have this problem from time to time with Path Finder, Launchbar and IINA. Others have this problem too, see e.g. https://forums.macrumors.com/threads/high-sierra-os-apps-losing-the... .

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

»

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 Blurs the current field

Comment Form

r Focus the comment reply box Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

 21 Oct, 2018 06:04 PM Export as PDF (paginated) very slow 21 Oct, 2018 04:26 PM Problem with using CSS counters to create numbered paragraphs 19 Oct, 2018 12:37 PM Error after update 17 Oct, 2018 09:08 AM Dark macOS theme makes text in "Report an Issue" dialog pretty much invisible 16 Oct, 2018 08:28 PM Multi-File Documents in different folders

Recent Articles

 Highlight sentences longer than a certain number of words In-app purchase issues (Error Domain=Paddle Code=0 "(null)") License code has already been utilized How do I retrieve a lost license (direct version) Custom CSS: Writing custom CSS for Marked