workbench-obsidian icon indicating copy to clipboard operation
workbench-obsidian copied to clipboard

Workbench doesn't open

Open erikwestra opened this issue 3 years ago • 4 comments

Hi there,

I'm running Obsidian version 0.12.4 and just tried installing the Workbench plugin. The pencil icon appears on the left toolbar, but when I click on it nothing happens. The console shows the following error:

Uncaught TypeError: Cannot read property 'path' of undefined at HTMLDivElement.eval (eval at (app.js:1), :98:102)

Drilling down to the source, it appears the problem is here:

obsidianApp.workspace.openLinkText(workbenchNoteTitle, workbenchNoteFile.path, true, MarkdownPreviewView);

Any clues?

Thanks!

erikwestra avatar Jun 09 '21 20:06 erikwestra

Hm. Does the Workbench note (as specified in the plugin settings, or via the "Change your Workbench" command) exist?

ryanjamurphy avatar Jun 09 '21 20:06 ryanjamurphy

No -- there's no "Workbench.md" file anywhere in my vault, and that's definitely the name used by the Workbench settings.

I tried manually creating a "Workbench.md" file, and the pencil icon now opens that file -- it just seems that the "Workbench.md" file isn't being created for some reason.

The same thing happened on both machines I use Obsidian on, by the way. I'm happy to do more debugging if I can help track this down in any way...

erikwestra avatar Jun 10 '21 04:06 erikwestra

So is it working now that you've manually created the Workbench.md note?

I should fix the plugin—it should create the targeted note for you if it doesn't already exist. This is just something I didn't build in from the get-go.

ryanjamurphy avatar Jun 10 '21 22:06 ryanjamurphy

Did you ever end up adding the function of creating a targeted note automatically?

HammyHavoc avatar Jan 21 '22 23:01 HammyHavoc