obsidian-sample-plugin icon indicating copy to clipboard operation
obsidian-sample-plugin copied to clipboard

Obsidian App doesn't seem to load custom plugin

Open OneHoopyFrood opened this issue 1 year ago • 7 comments

When I follow the directions, Obsidian does not show the plugin as loaded. I have confirmed the repository is in the correct place, the packages are correctly installed, and npm run dev completes successfully.

I was reading the source code and noticed that one of the loading functions is sensitive to the "author" field in the manifest, so I went ahead and changed things around to match what I'm trying to do (support definition lists)

Here is my directory structure: ~/.obsidian/plugins/obsidian-definition-lists-plugin

I am on a MacBook Pro:

Screenshot 2024-06-14 at 11 02 23 AM

What I see:

image

I expected to see the plugin listed here, as per the directions in the README.

What I've tried:

  • Modifying the manifest
  • A separate vault
  • Moving main.js into the /plugins/ directory itself (didn't work, moved it back)
  • Wiping it out and starting over
  • With each attempt:
    • Reloading Obsidian through command
    • Fully closing Obsidian, making sure the process is halted, and re-starting.

OneHoopyFrood avatar Jun 14 '24 16:06 OneHoopyFrood

What is your current code?

joethei avatar Jul 31 '24 21:07 joethei

The same is happening to me. Any know issue with the sample plugin code?

papucho avatar Nov 04 '24 14:11 papucho

Do you have some code, on a repo perhaps so we can take a look?

joethei avatar Nov 04 '24 14:11 joethei

I just realise that if I clone the plugin, it works but if I follow the manual process it doesn't work.

Copy over main.js, styles.css, manifest.json to your vault VaultFolder/.obsidian/plugins/your-plugin-id/.

papucho avatar Nov 04 '24 15:11 papucho

I ran into the same issue. I needed to restart obsidian after cloning the sample plugin to the plugins directory in the vault, then it showed up.

rcanand avatar Feb 20 '25 22:02 rcanand

Sorry! Totally forgot about this and wasn't watching notifications. I don't have any unique code. This happened while following the basic "How to use" section and then "Manually installing the plugin" to just clone the sample and get it showing in obsideon. I followed the steps as written on the README, so I imagine you could reproduce by starting out with a blank slate and doing the same.

OneHoopyFrood avatar Feb 21 '25 20:02 OneHoopyFrood

@OneHoopyFrood bro I met the same issue as yours while I suddenly found that i mistakenly create the plugins folder into the vault(top directory) but not in .obsidian/ so that's the point where the sample plugin doesn't work. If you put the plugins folder into .obsidian/ and execute "npm i" && "npm run dev" and then reload the ob app, I can definitely say that it must work

MrKyomoto avatar Mar 27 '25 15:03 MrKyomoto