Comments (10)
Yes... it did!
from zotero-markdb-connect.
Thanks for the heads up. It probably means that it's having trouble parsing some setting. Would you mind running this code snippet (Tools -> Developer -> Run Javascript
) and posting the output?
async function runDebug () {
const promptSaveErrors = false;
debuglog = {};
debuglog.version = Zotero.ObsCite.version;
debuglog.zoteroVersion = Zotero.version;
let prefs = {};
for (let pref of ['matchstrategy', 'source_dir', 'zotkeyregex', 'metadatakeyword']) {
try {
prefs[pref] = Zotero.ObsCite.getPref(pref);
} catch (e) {
prefs[pref] = "Error (" + e.name + ") " + e.message;
}
}
debuglog.prefs = prefs;
let config = {};
for (let pref of ['matchstrategy', 'source_dir', 'zotkeyregex', 'metadatakeyword', 'bbtinstalled']) {
try {
switch(pref) {
case 'matchstrategy':
config[pref] = Zotero.ObsCite._getParam_matchstrategy();
break;
case 'source_dir':
config[pref] = Zotero.ObsCite._getParam_vaultpath();
break;
case 'zotkeyregex':
config[pref] = Zotero.ObsCite._getParam_zotkeyregex();
break;
case 'metadatakeyword':
config[pref] = Zotero.ObsCite._getParam_metadatakeyword();
break;
case 'bbtinstalled':
config[pref] = await Zotero.ObsCite._checkBBTinstalled();
break;
}
} catch (e) {
config[pref] = "Error (" + e.name + ") " + e.message;
}
}
try {
config.checkSetting = await Zotero.ObsCite.checkSettings();
} catch (e) {
config.checkSetting = "Error (" + e.name + ") " + e.message;
}
debuglog.config = config;
let results = {};
try {
await Zotero.ObsCite.processData(true);
results.cleanrun = Zotero.ObsCite.cleanrun;
results.ndataKeys = Zotero.ObsCite.dataKeys.length;
} catch (e) {
results = "Error (" + e.name + ") " + e.message;
}
debuglog.results = results;
return debuglog;
}
return runDebug()
from zotero-markdb-connect.
Sorry for being late...
{
"prefs": {
"matchstrategy": "bbtcitekey"
"source_dir": "C:\Obsidian\Zettelkasten"
"zotkeyregex": ""
"metadatakeyword": ""
}
"config": {
"matchstrategy": "bbtcitekey"
"zotkeyregex": ""
"metadatakeyword": ""
"checkSetting": true
}
"results": {
"cleanrun": true
"ndataKeys": 24
}
}
from zotero-markdb-connect.
I'm not sure what's going on, but it's possible that it's failing to find BBT at initialization. If you're up for helping me sort it out, here's a version with an extra debugging trace.
You can manually install it (Tools -> Add-ons -> Remove ZoteroObsidianCitations
, Install Add-on From File -> zotero-obsidian-citations-0.0.13alpha.xpi
, then restart Zotero. If you get the same error, run this code snippet and post the output (run it as 'not async', which should be the default):
Zotero.ObsCite.debuglog
Thanks!
from zotero-markdb-connect.
Yes, the error persisted after changing to the v0.13alpha. Here is the output:
{
"version": "0.0.12"
"zoteroVersion": "5.0.97-beta.63+035aac30f"
"isMac": false
"isLinux": false
"isWin": true
"prefs": {
"matchstrategy": "bbtcitekey"
"source_dir": "C:\Obsidian\Zettelkasten"
"zotkeyregex": ""
"metadatakeyword": ""
}
"config": {
"matchstrategy": "bbtcitekey"
"source_dir": "C:\Obsidian\Zettelkasten"
"zotkeyregex": ""
"metadatakeyword": ""
"bbtinstalled": [
"0": true
]
"checkSetting": false
}
"trace": {
"checkSetting": "fail"
"processData": "unreached"
"ndataKeys": "unreached"
"updateItems": "unreached"
}
"failedSetting": {
"_getParam_matchstrategy": "none"
"_getParam_vaultpath": "none"
"_checkBBTinstalled": []
"_getParam_metadatakeyword": "none"
"_getParam_zotkeyregex": "none"
"matchstrategy": "none"
}
}
from zotero-markdb-connect.
yep, that's what's going on (ZOC fails to communicate with BBT at launch, then BBT becomes available later).
I thought that I had totally over-engineered the BBT initialization check, but it seems that it wasn't enough. I'll take a look at what I might be able to improve. Thanks for the feedback, it's very helpful.
from zotero-markdb-connect.
Just in case it is useful...
The context options like "Open ObsidianMD note", do not appear until a manual sync is run.
from zotero-markdb-connect.
... and BBT plugin was last updated on January 21. Maybe they changed something in their plugin
from zotero-markdb-connect.
see if this solves it:
(yeah, the Open in ObsidianMD item won't show up until the settings pass inspection, so if it doesn't pass at startup, then it won't show until the sync is manually invoked and the settings pass. That's all consistent with BBT not being found at initialization but being available later. Thanks.)
from zotero-markdb-connect.
great. thanks for reporting the issue
from zotero-markdb-connect.
Related Issues (20)
- Add option to use Obsidian Advanced URI HOT 2
- Support matching via filename without @ HOT 4
- Parsing Errors With LogSeq HOT 6
- MarkDB not identifying YAML HOT 4
- 0 matches after upgrade to 0.0.21 HOT 3
- how to close this window? HOT 3
- Invalid tag name, containing an "/" HOT 5
- MarkDB does not recognize YAML citekey enclosed in quotation marks HOT 5
- Group Library HOT 1
- MarkDB does not recognize YAML citekey HOT 5
- Support for multiple citekeys HOT 2
- "Show Markdown File" - Linux compatibility HOT 1
- Add link to .md file in respective Zotero item HOT 4
- feature request HOT 4
- Failed to configure RegEx HOT 3
- Citekey match fails with escape characters in filename HOT 8
- Add support for Zotero 7 HOT 16
- syncing error HOT 3
- markdb-connect won't add the required tag HOT 3
- Obsidian links don't work since the last update. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zotero-markdb-connect.