silverbulletmd / silverbullet

The hackable notebook
https://silverbullet.md
MIT License
2.03k stars 140 forks source link

The treeview plugin prevents deleting files in the space #819

Closed simone-viozzi closed 3 months ago

simone-viozzi commented 3 months ago

https://github.com/joekrill/silverbullet-treeview/issues/11 happens even if the plugin is removed

silverbullet-1  | An exception was thrown as a result of invoking function showIfEnabled error: Unregistered syscall clientStore.get
silverbullet-1  | Error dispatching event page:deleted to treeview.showIfEnabled: Unregistered syscall clientStore.get
silverbullet-1  | Error deleting attachment Error: Unregistered syscall clientStore.get
silverbullet-1  |     at wa.onMessage (file:///silverbullet.js:117:27964)
silverbullet-1  |     at Worker.worker.onmessage (file:///silverbullet.js:117:27483)
silverbullet-1  |     at Worker.wrappedHandler (ext:deno_web/02_event.js:1401:12)
silverbullet-1  |     at innerInvokeEventListeners (ext:deno_web/02_event.js:754:7)
silverbullet-1  |     at invokeEventListeners (ext:deno_web/02_event.js:801:5)
silverbullet-1  |     at dispatch (ext:deno_web/02_event.js:658:9)
silverbullet-1  |     at Worker.dispatchEvent (ext:deno_web/02_event.js:1043:12)
silverbullet-1  |     at Worker.#pollMessages (ext:runtime/11_workers.js:258:12)
silverbullet-1  |     at eventLoopTick (ext:core/01_core.js:169:7)

I tried "reload UI" and others reload commands, clearing browser cache, but the error persists

zefhemel commented 3 months ago

Did your remove it from the _plugs folder?

simone-viozzi commented 3 months ago

Yes, I launched the command "update plugs", and it removed the js from the _plugs.

zefhemel commented 3 months ago

Not what to say, if the file is not there and you restarted the server... There's no caching on the server, so 🤷🏻 Have you tried pointing SilverBullet at an empty folder?

hjbout commented 3 months ago

same here, but after restarting the server (container) I could delete the page.

simone-viozzi commented 3 months ago

The underlining issue with tree view is now fixed https://github.com/joekrill/silverbullet-treeview/commit/daf7a57e1bc7ea51f0ce00feab6dcd78aa39f7f8