obsidian-common-errors

Featured

Diagnose and fix common Obsidian plugin errors and exceptions. Use when encountering plugin errors, debugging failed operations, or troubleshooting Obsidian plugin issues. Trigger with phrases like "obsidian error", "fix obsidian plugin", "obsidian not working", "debug obsidian plugin".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Obsidian Common Errors ## Overview Diagnostic guide for the six most frequent Obsidian plugin development errors, with root causes and copy-paste fixes. ## Prerequisites - Obsidian plugin development environment set up - Access to Developer Console (Ctrl/Cmd+Shift+I) - Plugin source code access ## Instructions ### Step 1: "Cannot read properties of null" — Workspace Not Ready Accessing `app.workspace.activeLeaf` or `app.workspace.getActiveViewOfType()` before the layout is initialized returns `null`. ```typescript // BROKEN: accessing workspace immediately in onload async onload() { const view = this.app.workspace.getActiveViewOfType(MarkdownView); // TypeError: Cannot read properties of null (reading 'editor') view.editor.replaceSelection('hello'); } // FIXED: wait for layout-ready event async onload() { this.app.workspace.onLayoutReady(() => { const view = this.app.workspace.getActiveViewOfType(MarkdownView); if (view) { view.editor.replaceSelection('hello'); } }); } ``` For commands that need workspace access later (not at load time), guard with a null check: ```typescript this.addCommand({ id: 'my-command', name: 'Do Something', checkCallback: (checking: boolean) => { const view = this.app.workspace.getActiveViewOfType(MarkdownView); if (view) { if (!checking) { // safe to use view.editor here view.editor.replaceSelection('inserted'); } return true; } return false; } }); ``` #...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

obsidian-incident-runbook

Troubleshoot Obsidian plugin failures with systematic incident response. Use when plugins crash, data is corrupted, or users report critical issues with your Obsidian plugin. Trigger with phrases like "obsidian crash", "obsidian plugin broken", "obsidian incident", "debug obsidian failure", "obsidian emergency".

2,266 Updated today
jeremylongshore
Data & Documents Solid

obsidian

Comprehensive guidelines for Obsidian.md plugin development including ESLint rules from eslint-plugin-obsidianmd v0.3.0, TypeScript best practices, memory management, API usage (requestUrl vs fetch), UI/UX standards, popout window compatibility, community.obsidian.md submission process, and Scorecard optimization. Use when working with Obsidian plugins, main.ts files, manifest.json, Plugin class, MarkdownView, TFile, vault operations, or any Obsidian API development.

143 Updated 3 days ago
gapmiss
AI & Automation Featured

obsidian-install-auth

Set up Obsidian plugin development environment with Node.js and TypeScript. Use when starting a new plugin project, configuring the dev environment, or initializing Obsidian plugin development from scratch. Trigger with phrases like "obsidian setup", "obsidian plugin dev", "create obsidian plugin", "obsidian development environment".

2,266 Updated today
jeremylongshore
AI & Automation Featured

obsidian-observability

Implement structured logging, metrics, error tracking, and a debug panel for Obsidian plugins. Use when adding debug logging, tracking plugin performance, building a diagnostics view, or setting up error reporting. Trigger with phrases like "obsidian logging", "obsidian monitoring", "obsidian debug panel", "track obsidian plugin performance".

2,266 Updated today
jeremylongshore
AI & Automation Featured

obsidian-debug-bundle

Collect Obsidian plugin debug evidence for support and troubleshooting. Use when encountering persistent issues, preparing bug reports, or collecting diagnostic information for plugin problems. Trigger with phrases like "obsidian debug", "obsidian diagnostic", "collect obsidian logs", "obsidian support bundle".

2,266 Updated today
jeremylongshore