breadcrumbs icon indicating copy to clipboard operation
breadcrumbs copied to clipboard

Bug: BC cannot read links and dangling nodes on first run

Open ooker777 opened this issue 3 years ago • 1 comments

Steps to reproduce the behavior:

  1. Open Obsidian with the BC plugin enabled from the last session
  2. BC cannot read links and dangling nodes into its database (#324, the this.app.plugins.plugins.breadcrumbs.mainG.toJSON() object has no edge and no dangling node)
  3. Turn off the plugin
  4. Turn on the plugin
  5. It works again

I follow the Debugging Breadcrumbs article. I use the TRACE mode, click Refresh Index, but I don't see any dvCaches:

I'm on:

  • Windows 11 Home Single Language Version 10.0.22000 Build 22000,
  • Obsidian 0.13.23
  • Breadcrumbs 2.52.0

ooker777 avatar Feb 08 '22 08:02 ooker777

Code to checking if BC is running properly:

var bcEdgeList = this.app.plugins.plugins.breadcrumbs.mainG.toJSON().edges
var IsBreadcrumbsrunning = new Promise((resolve,reject) => {
	if(bcEdgeList.length !== 0){
		resolve('Breadcrumbs is running properly') 
	} else {
		reject('Breadcrumbs has problem') 
	} 
})
IsBreadcrumbsrunning.then(message => console.log(message))
					.catch(message => console.log(message))

ooker777 avatar Feb 12 '22 09:02 ooker777

I think this is resolved in v4, see here for more info: https://github.com/SkepticMystic/breadcrumbs/blob/master/V4.md Will close this out for now, please reopen if it still occurs

SkepticMystic avatar Mar 03 '24 15:03 SkepticMystic