srg-kostyrko / obsidian-journal

MIT License
115 stars 8 forks source link

Commands in command palette not loading initially #66

Closed halfst closed 1 month ago

halfst commented 1 month ago

I'm having an issue where when I start Obsidian the commands for Journals do not show up in the command palette. Because of this, I'm unable to use hotkeys to navigate my daily notes like I'd like to. The only workaround I have found so far is to turn the plugin off and on again, but it's annoying to have to do this every time I start Obsidian.

Obsidian start-up time breakdown

Obsidian version: v1.7.1 Installer version: v1.5.3 Operating system: Windows 10 Pro 10.0.19045

srg-kostyrko commented 1 month ago

Could you please check if there are any errors reported in developers console You can open it from menu View -> Toggle developer tools

halfst commented 1 month ago

app.js:1 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'children') at t.getSideLeaf (app.js:1:2292574) at t.getLeftLeaf (app.js:1:2291275) at JournalManager.placeCalendarView (plugin:journals:5939:38) at JournalPlugin.eval (plugin:journals:6769:30) at Generator.next () at fulfilled (plugin:journals:25:58)

srg-kostyrko commented 1 month ago

hm it fails trying to add calendar view to left sidebar it might be related to some changes in 1.7 I'll investigate this further

srg-kostyrko commented 1 month ago

I have tired reproducing problem on 1.7 version and it still work for me without issues

do you have something in your plugins that heavily changes layout (like removing left sidebar)?

halfst commented 1 month ago

Nothing that removes the sidebar. When I first open Obsidian the Journals calendar isn't available in the sidebar, but after I turn off and on the plugin it shows up in the sidebar. I tried moving the calendar to the right sidebar and I get the same issue. I also tried uninstalling and reinstalling the plugin, but that made no difference.

I think I figured out the issue though. I have the Homepage plugin set to load a specific workspace every time I open Obisidian, and the calendar wasn't on that workspace. I added the calendar to the workspace and saved it and now it loads fine.