Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Zotero] Bug with Zotero database in local development #7742

Closed
lazarjov opened this issue Jul 31, 2023 · 3 comments
Closed

[Zotero] Bug with Zotero database in local development #7742

lazarjov opened this issue Jul 31, 2023 · 3 comments
Labels
bug Something isn't working extension: zotero Issues related to the zotero extension extension Issues related to one of the extensions in the Store

Comments

@lazarjov
Copy link
Contributor

Extension

https://www.raycast.com/reckoning-dev/zotero

Description

I am experiencing a bug as I try to do local development on this extension.

Here is the error message return in Raycast as soon as I open the command Search Database:

173: e._sqlite3_bind_double=function(){return(e._sqlite3_bind_double=e.asm.oa).apply(null,arguments)};e._sqlite3_bind_int=function(){return(e._sqlite3_bind_int=e.asm.pa).apply(null,arguments)};e._sqlite3_bind_text=function(){return(e._sqlite3_bind_text=e.asm.qa).apply(null,arguments)};e._sqlite3_bind_parameter_index=function(){return(e._sqlite3_bind_parameter_index=e.asm.ra).apply(null,arguments)};e._sqlite3_sql=function(){return(e._sqlite3_sql=e.asm.sa).apply(null,arguments)};
174: e._sqlite3_normalized_sql=function(){return(e._sqlite3_normalized_sql=e.asm.ta).apply(null,arguments)};e._sqlite3_errmsg=function(){return(e._sqlite3_errmsg=e.asm.ua).apply(null,arguments)};e._sqlite3_exec=function(){return(e._sqlite3_exec=e.asm.va).apply(null,arguments)};e._sqlite3_changes=function(){return(e._sqlite3_changes=e.asm.wa).apply(null,arguments)};e._sqlite3_close_v2=function(){return(e._sqlite3_close_v2=e.asm.xa).apply(null,arguments)};
175: e._sqlite3_create_function_v2=function(){return(e._sqlite3_create_function_v2=e.asm.ya).apply(null,arguments)};e._sqlite3_open=function(){return(e._sqlite3_open=e.asm.za).apply(null,arguments)};var da=e._malloc=function(){return(da=e._malloc=e.asm.Aa).apply(null,arguments)},oa=e._free=function(){return(oa=e._free=e.asm.Ba).apply(null,arguments)};e._RegisterExtensionFunctions=function(){return(e._RegisterExtensionFunctions=e.asm.Da).apply(null,arguments)};
176: var ob=e.__get_tzname=function(){return(ob=e.__get_tzname=e.asm.Ea).apply(null,arguments)},nb=e.__get_daylight=function(){return(nb=e.__get_daylight=e.asm.Fa).apply(null,arguments)},mb=e.__get_timezone=function(){return(mb=e.__get_timezone=e.asm.Ga).apply(null,arguments)},pa=e.stackSave=function(){return(pa=e.stackSave=e.asm.Ha).apply(null,arguments)},ra=e.stackRestore=function(){return(ra=e.stackRestore=e.asm.Ia).apply(null,arguments)},x=e.stackAlloc=function(){return(x=e.stackAlloc=e.asm.Ja).apply(null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
177: arguments)},Hb=e._memalign=function(){return(Hb=e._memalign=e.asm.Ka).apply(null,arguments)};e.cwrap=function(a,b,c,d){c=c||[];var f=c.every(function(g){return"number"===g});return"string"!==b&&f&&!d?Qa(a):function(){return Ra(a,b,c,arguments)}};e.UTF8ToString=A;e.stackSave=pa;e.stackRestore=ra;e.stackAlloc=x;var bd;eb=function cd(){bd||dd();bd||(eb=cd)};
178: function dd(){function a(){if(!bd&&(bd=!0,e.calledRun=!0,!Pa)){e.noFSInit||Pc||(Pc=!0,Oc(),e.stdin=e.stdin,e.stdout=e.stdout,e.stderr=e.stderr,e.stdin?Qc("stdin",e.stdin):ec("/dev/tty","/dev/stdin"),e.stdout?Qc("stdout",null,e.stdout):ec("/dev/tty","/dev/stdout"),e.stderr?Qc("stderr",null,e.stderr):ec("/dev/tty1","/dev/stderr"),ia("/dev/stdin",0),ia("/dev/stdout",1),ia("/dev/stderr",1));Pb=!1;jb($a);if(e.onRuntimeInitialized)e.onRuntimeInitialized();if(e.postRun)for("function"==typeof e.postRun&&
179: (e.postRun=[e.postRun]);e.postRun.length;){var b=e.postRun.shift();ab.unshift(b)}jb(ab)}}if(!(0<cb)){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)bb();jb(Za);0<cb||(e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1);a()},1)):a())}}e.run=dd;if(e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);0<e.preInit.length;)e.preInit.pop()();dd();

e.stackAlloc:sql-wasm.js:176:467
e.onRuntimeInitialized:commandSearchZotero.js:1751:19
a:commandSearchZotero.js:4113:19
dd:commandSearchZotero.js:4132:22

Steps To Reproduce

  1. Open Zotero extension in local development
  2. Open Raycast
  3. Open Command

Current Behaviour

Returns an error

Expected Behaviour

Returns a search view to search for articles in the Zotero database

@lazarjov lazarjov added bug Something isn't working extension Issues related to one of the extensions in the Store labels Jul 31, 2023
@raycastbot raycastbot added the extension: zotero Issues related to the zotero extension label Jul 31, 2023
@raycastbot
Copy link
Collaborator

raycastbot commented Jul 31, 2023

Thank you for opening this issue!

🔔 @sadanand-singh you might want to have a look.

💡 Tip: Once the issue is resolved, comment @raycastbot close this issue to close it.

@lazarjov lazarjov changed the title [Zoteor] Bug with Zotero database in local development [Zotero] Bug with Zotero database in local development Jul 31, 2023
@sadanand-singh
Copy link
Contributor

Works fine for me. May be your sqlite version and wasm files are not from same versions.

@sadanand-singh
Copy link
Contributor

This is not an issue if you have right version of sql files. Closing it. @raycastbot close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working extension: zotero Issues related to the zotero extension extension Issues related to one of the extensions in the Store
Projects
None yet
Development

No branches or pull requests

3 participants