obsidian-db-folder icon indicating copy to clipboard operation
obsidian-db-folder copied to clipboard

[Bug]: "obsidian data folder error obtaining page results current folder loaded instead"

Open huachuman opened this issue 1 year ago • 5 comments

Contact Details

No response

What happened?

First time making a database folder. All I did was select one tag with 23 notes in it. Then it gave me this error and froze Obsidian for a very long period of time.

"Obsidian data folder error obtaining page results current folder loaded instead"

What platform were you using?

Desktop

Version of the plugin

I don't know, it's set to auto-update and I updated it this morning.

Relevant log output

No response

Are you using the latest version of the plugin in your Obsidian vault?

  • [X] I have verified that I am on the latest version

Are you check if there is a similar issue?

  • [X] I have verified that there are not similar issues

huachuman avatar Apr 04 '23 12:04 huachuman

Me too. Tested with a new vault installed only Dataview and DB Folder with only 1 file with tag #🗃️/📚.

The dataview query is FROM #🗃️/📚

image

HynDuf avatar May 15 '23 14:05 HynDuf

me too.

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'tags') at P2.checkIfFileIsInSource (plugin:dbfolder:120:18402) at P2.eval (plugin:dbfolder:120:17229) at Generator.next () at eval (plugin:dbfolder:1:938) at new Promise () at a (plugin:dbfolder:1:697) at n.actions.dataviewUpdater (plugin:dbfolder:120:17159) at eval (plugin:dbfolder:111:238464) at Generator.next () at eval (plugin:dbfolder:1:938)

wwjCMP avatar May 21 '23 06:05 wwjCMP

I've got the same problem. When trying to create a new database, I get a different error each time:

plugin:dbfolder:120 Uncaught (in promise) TypeError: X.error is not a function
    at I3.eval (plugin:dbfolder:120:60619)
    at Generator.next (<anonymous>)
    at eval (plugin:dbfolder:1:938)
    at new Promise (<anonymous>)
    at a (plugin:dbfolder:1:697)
    at I3.initDatabase (plugin:dbfolder:120:59907)
    at I3.eval (plugin:dbfolder:120:59867)
    at Generator.next (<anonymous>)
    at eval (plugin:dbfolder:1:938)
    at new Promise (<anonymous>)
app.js:1 TypeError: Cannot read properties of undefined (reading 'unregisterView')
    at I3.destroy (plugin:dbfolder:120:60765)
    at I3.eval (plugin:dbfolder:120:62512)
    at Generator.next (<anonymous>)
    at eval (plugin:dbfolder:1:938)
    at new Promise (<anonymous>)
    at a (plugin:dbfolder:1:697)
    at I3.onUnloadFile (plugin:dbfolder:120:62466)
    at I3.<anonymous> (app.js:1:1315008)
    at app.js:1:236930
    at Object.next (app.js:1:237035)
app.js:1 TypeError: X.info is not a function
    at I3.destroy (plugin:dbfolder:120:60875)
    at I3.eval (plugin:dbfolder:120:62512)
    at Generator.next (<anonymous>)
    at eval (plugin:dbfolder:1:938)
    at new Promise (<anonymous>)
    at a (plugin:dbfolder:1:697)
    at I3.onUnloadFile (plugin:dbfolder:120:62466)
    at I3.<anonymous> (app.js:1:1315008)
    at app.js:1:236930
    at Object.next (app.js:1:237035)

Note:

I'm trying to create the DB based on a tag. With an open console, after opening the DB, there is no content and just an empty page and the following error pops up in the console:

app.js:1 TypeError: Cannot read properties of undefined (reading 'unregisterView')
    at I3.destroy (plugin:dbfolder:120:60765)
    at I3.eval (plugin:dbfolder:120:62512)
    at Generator.next (<anonymous>)
    at eval (plugin:dbfolder:1:938)
    at new Promise (<anonymous>)
    at a (plugin:dbfolder:1:697)
    at I3.onUnloadFile (plugin:dbfolder:120:62466)
    at I3.<anonymous> (app.js:1:1315008)
    at app.js:1:236930
    at Object.next (app.js:1:237035)

Opening the DB without the console, I get a view of its content (though getting the same error as @huachuman and @HynDuf) but the listed files do not match the specified tag (defined when creating the DB).

MalteJosten avatar Aug 31 '23 08:08 MalteJosten

same error , just started using obsydian , only have two plugins data folder and dataview , unable to create a database folder based on tags , only folder based database folder is working ,

is there some external libraries that are required

gokulgseven avatar Dec 30 '23 14:12 gokulgseven

same error , just started using obsydian , only have two plugins data folder and dataview , unable to create a database folder based on tags , only folder based database folder is working ,

is there some external libraries that are required

A few weeks ago, I managed to trace and fix some bugs in my main.js file (inside .obsidian/plugins/dbfolder) to the point where it seem to work normally. I forgot how exactly I fixed it but it have 2 main points:

  1. The logger, specifically the configureLogger() function, I replaced some void(0) to console.log.
  2. The create database folder based on Tags problems. This was related to the tag isn't included in double quotes in data.json or something.

I forgot what I specifically fixed so just provide the main.js file here (already formatted, and yes it's safe so you can replace the main.js file to see if the bug is fixed on your side). main.js.zip

HynDuf avatar Dec 31 '23 14:12 HynDuf