benjamonnguyen / obsidian-todotxt-codeblocks

Manage your tasks inside Obsidian codeblocks according to the Todo.txt specification.
MIT License
15 stars 1 forks source link

Codeblock is not loading #21

Closed Jefferderp closed 8 months ago

Jefferderp commented 8 months ago

Hello,

I was eager to help test the new v0.2.0, but for some strange reason, the plugin is not loading. Obsidian is rendering a generic codeblock rather than the plugin's interface. I'm experiencing the same issue with v0.1.0. Curiously, I did not have this issue a week ago. The only notable changes to my vault are that I've updated Obsidian to the latest version. I've uninstalled the plugin, installed via Obsidian and BRAT, and restarted my vault. Any ideas?

My codeblock is formatted as such:

image

Are there any debug logs I can reference?

Thanks!

Jefferderp commented 8 months ago

...and now it works. I didn't try anything new.

Whatever!

Jefferderp commented 8 months ago

This issue appeared again when I noticed the features from 0.2.0 were missing, despite the manifest stating I was on that version. I restarted Obsidian, and the plugin was inactive again.

It doesn't appear to be related to any other installed/active plugins. I'm not in source mode, and there are no other obvious causes. I'm very familiar with Obsidian, so I don't think I'm overlooking anything obvious.

I can't for the life of me figure out what the cause is.

benjamonnguyen commented 8 months ago

Can you use ctrl+shift+i to access the Developer console and see if there are any error messages?

benjamonnguyen commented 8 months ago

On re-reading your comment, I think the solution is uninstall Todotxt and reinstall via BRAT (not Obsidian).

Jefferderp commented 8 months ago

Unfortunately I've already tried that.

Here's the only error I'm seeing in the console:

Uncaught (in promise) Error: Attempting to register an existing file extension "txt"
    at t.registerExtensions (app.js:1:1771428)
    at t.registerExtensions (app.js:1:2020712)
    at TodotxtCodeblocksPlugin.onload (plugin:todotxt-codeblocks:2432:10)
benjamonnguyen commented 8 months ago

Ah ok I'll fix that. I'm assuming you have another todotxt plugin? You can try disabling it for now while I work on the fix.

Jefferderp commented 8 months ago

I'm glad you mentioned that, it sparked an idea!

I have the openasmd plugin which allows plain-text editing of txt files. It didn't occur to me that it would be in conflict with todotxt-codeblocks, but of course it makes sense.

If the two are incompatible, that's no problem, I can work around it.

Problem solved. Thanks!