Hi,
I am having problems with file access from a zotero 7 plugin. Not sure what the problem is so maybe someone can help with this. From a plugin, the `OS.File.stat` line below doesn't trigger any errors but the code below is never gets executed (I see message 1 but not 2). This is from a function wrapped in Zotero.Promise.coroutine.
testFunction: Zotero.Promise.coroutine(function* (path) {
Zotero.debug("Message 1");
var file_stat = yield OS.File.stat(path);
Zotero.debug("Message 2");
});
However, from Tools->Developer->Run Javascript, I can run the same code without problems. I can even use run javascript to replace the function in the plugin with exactly the same code and it runs afterwards.
Could this be related to file access issues? Any other ideas?
Thanks!