-
Notifications
You must be signed in to change notification settings - Fork 60
Closed
Description
Please Review Before Posting!
- I checked that the bug does not happen in the CodeMirror Vim demo. If it does, please report it there and not here.
- I'm reasonably sure that this bug is indeed about the Vimrc file support and not a general Vim in Obsidian issue. If it's a general Vim issue, report it here.
Describe the bug:
Under certain conditions, two uncaught exceptions occur on startup, interrupting the startup sequence:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '_handlers')
at VimrcPlugin.getCursorActivityHandlers (plugin:obsidian-vimrc-support:690:19)
at VimrcPlugin.updateSelectionEvent (plugin:obsidian-vimrc-support:682:18)
at eval (plugin:obsidian-vimrc-support:656:18)
at e.tryTrigger (app.js:1:722881)
at e.trigger (app.js:1:722814)
at t.trigger (app.js:1:2307445)
at t.activeLeafEvents (app.js:1:2292258)
at l (app.js:1:518110)
at c (app.js:1:518226)
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'off')
at VimrcPlugin.updateVimEvents (plugin:obsidian-vimrc-support:703:22)
at eval (plugin:obsidian-vimrc-support:657:18)
at e.tryTrigger (app.js:1:722881)
at e.trigger (app.js:1:722814)
at t.trigger (app.js:1:2307445)
at t.activeLeafEvents (app.js:1:2292258)
at l (app.js:1:518110)
at c (app.js:1:518226)
To Reproduce:
Case 1:
- Enable 'Daily Notes' core plugin
- Enable homepage community plugin
- Homepage Settings > Set 'Homepage' to 'Daily Note'
- Enable vimrc plugin
- Restart obsidian
Case 2:
- Enable "Vim chord display" setting
- open the vault w/o a note opened
Environment (please complete the following information):
SYSTEM INFO:
Obsidian version: v1.7.3
Installer version: v1.6.7
Operating system: Darwin Kernel Version 24.0.0: Mon Aug 12 21:29:00 PDT 2024; root:xnu-11215.1.10~5/RELEASE_ARM64_T6000 24.0.0
Login status: logged in
Language: en
Catalyst license: supporter
Insider build toggle: on
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 7
Plugins enabled: 2
1: Vimrc Support v0.10.1
2: Homepage v4.0.6
Additional context:
n/a
Metadata
Metadata
Assignees
Labels
No labels