Read NotePlan's plugin log to debug a plugin. Use when investigating why a NotePlan plugin misbehaved, after triggering a plugin command or x-callback URL, when the user says a plugin "isn't working"/"threw an error"/"did nothing", or when you need to see what a plugin logged. Wraps scripts/nplog/nplog --json, which…
Debug jgclark.Dashboard using nplog (never grep the raw log), refresh paths, Apple Reminders/REM, setPluginData cost, and JSContext blocking. Use proactively when Dashboard startup, perspective switch, section refresh, or REM/Reminders misbehave, or after an x-callback / plugin command.
Do not use raw Promise.resolve, Promise.all, or Promise.race in plugin code—NotePlan's JSContext may not have them. Use polyfills from @helpers/promisePolyfill.js: initPromisePolyfills(), promiseResolve(), promiseAll(), promiseRace(), waitForCondition(), setTimeoutPolyfill(). After creating/modifying notes, call…
Instructions for NotePlan/plugins, covering noteplan plugins development guide, build/test commands, code style guidelines, common helper functions and viewing plugin logs.