majal / bible-linker-google-docs

A Google Documents Apps Script that searches for Bible verses and creates links to a selection of online Bible sources.
MIT License
8 stars 4 forks source link

Error: Script function not found #33

Open Mswiftney opened 2 months ago

Mswiftney commented 2 months ago

I've installed Bible Linker from Google Marketplace on both Chrome and Edge and both times got the same message:

Message details Script function not found: dfv_en_jw_en_jw_kjv

This occurs when I try to select either a different bible version or try to insert the links.

Help?

majal commented 2 months ago

Hi @Mswiftney! Thanks for dropping by and reporting this error.

This has been an ongoing issue and I've been tracking this in Google Apps Script (GAS) error logs.

The problem with the issue is it is intermittent. Personally, I have never encountered the issue myself, but the logs throw that issue from time to time. A friend once had the same issue, and without changes to the code, it later resolved for him.

Since the code is the same, and it works for most but not for others, I am guessing that that there might be something in the way the GAS interpreter runs the code. Because I have never encountered the error myself, it is not possible for me to debug it (since there's nothing to debug if everything works on my install). I'm actually waiting for a coder who will identify the error and help debug it from their end.

So for now all I can do is guess what went wrong. My initial "fixes" focused on the JS IIFE function that is necessary for dynamic custom menus. My hunch was that the IIFE did not complete before the main function started. But my "mitigations" did not to work.

So now I'm back to guessing again why the error is happening, albeit not consistently. I'm still waiting for someone who could point me to where this bug is coming from. 😅