Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workbench doesn't open #12

Open
erikwestra opened this issue Jun 9, 2021 · 4 comments
Open

Workbench doesn't open #12

erikwestra opened this issue Jun 9, 2021 · 4 comments

Comments

@erikwestra
Copy link

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!

@ryanjamurphy
Copy link
Owner

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

@erikwestra
Copy link
Author

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...

@ryanjamurphy
Copy link
Owner

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.

@HammyHavoc
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants