NotePlan / NotePlan/plugins

Unnecessary plugin log report on missing settings.json file

Open
#347 2 comments 0 reactions 1 assignee View on GitHub

@EduardMe is already working on this.

Since Sep 27, 2022.

housekeeping
Dominant language
JavaScript
Stars
204
Forks
82
Avg merge
22h 27m
Merged PRs (30d)
3

Description

I'm developing a new plugin. So far it doesn't have any settings in the plugin.json file. But every time I run any command I get the following in the plugin log:

Failed to loadJSON, error = Error Domain=NSCocoaErrorDomain Code=260 "The file “settings.json” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/jonathan/Library/Containers/co.noteplan.NotePlan3/Data/Library/Application Support/co.noteplan.NotePlan3/Plugins/data/np.Preview/settings.json, NSUnderlyingError=0x6000164fbfc0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

Is this necessary? Could it please be suppressed?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.