GAS库致命缺陷:“缺少标识符为FOO的库(可能已删除?)" [英] GAS Libraries Fatal Flaw: "Library with identifier FOO is missing (perhaps it was deleted?)"
问题描述
其他人是否遇到这问题?如果是这样,什么解决方案或我最好的行动方案?
Does anyone else experience this problem? And if so, what is the solution or my best course of action?
库致命缺陷:缺少标识符为FOO的库(可能已删除?)+"很抱歉,发生服务器错误.请稍等,然后重试."
在我的GAS项目中运行任何功能都会导致以下错误消息:
Running any function in my GAS project results in the following error message:
缺少标识符为FOO的库(也许已删除?)"
如果我尝试对我的库(在资源"选项卡下)进行任何更改,包括:
If I try to make any changes to my libraries (under the Resources tab) including:
- 将库FOO更新到最新版本
- 将第二个库(称为BAR)更新到最新版本
- 将FOO或BAR更新到其他任何版本
- 完全删除FOO或BAR,或
- 关闭FOO或BAR的开发模式(当前处于开发模式).
简而言之,对库资源的任何更改都会遇到以下错误消息:
In short, any change to the library resources are met with the following error message:
很抱歉,发生服务器错误.请稍候,然后重试."
- 我今天第一次观察到此错误消息.
- 自从至少两年前或更早启动此项目以来,我从未见过此问题.
样本应按原样运行或以最小的设置运行,而无需外部运行依存关系.
function test(){Logger.log("A")}
哪些步骤可以重现此问题?
- 删除项目中的所有代码.
- 将上述名为"test"的函数复制并粘贴到我项目中的脚本文件中.
- 尝试运行名为"test"的上述功能.
- 尝试运行测试"并看到错误消息:缺少标识符为FOO的库(也许已删除?),"打开资源">库".
- 尝试将FOO更新到最新版本.或对任何库进行任何更改.
预期输出是什么?
- 运行"test"功能后,我希望它已成功完成,并且记录仪显示"A".
- 尝试更新库之后,我希望在对话框中看到新的库版本.
相反,您看到了什么?
- 我看到错误消息:缺少标识符为FOO的库(也许它已被删除?)"
- 我看到错误消息:很抱歉,发生服务器错误.请稍候,然后重试."
请在下面提供任何其他信息.
我创建了一个新项目(称为B),将所有代码从问题项目(称为A)复制并粘贴到B,并将FOO和BAR库(最新版本)成功集成到B中.这样,B运行正常,没有任何错误.问题是我所有的scriptDB数据仍然存储在A中.无法从A运行任何功能,就无法从A中导出任何数据.否则,我将尝试混乱"的解决方法,例如用B重新启动.并将我对所有(第三方)的呼叫更新为对B的呼叫.
Please provide any additional information below.
I have created a new project (let's call it B), copied and pasted all the code from the problem project (let's call it A) to B and successfully integrated the FOO and BAR libraries (latest versions) into B. After doing so, B runs fine without any error. The problem is that all my scriptDB data is still stored in A. Without being able to run any functions from A, I can not export any of my data from A. Otherwise, I would attempt a "messy" workaround such as restarting with B and updating all my (3rd party) calls to A with calls to B, for example.
推荐答案
评论摘要:
我也遇到了这个问题.我创建了一个新文件,复制了所有代码,并提供了新名称lib(因此,我现在使用的是"var a = BBBBBB.myfunction",而不是"var a = AAA.myFunction"),更改了函数,变量和文字进入BBBBBB.但是由于缺少库,我仍然无法运行我的(简短且容易的)测试脚本.我注意到我偶然删除了旧版本的库(版本1).也许这就是问题所在.我可以想象,由于版本控制系统(跟踪每个代码更改),导致旧版本代码与已删除的版本1相关联.
I also experience this problem. I created a new file, copied all my code, provided a new name the lib (so instead of 'var a = AAA.myFunction' I now use 'var a = BBBBBB.myfunction'), changed every name of function, variable and text into BBBBBB. But still I could not run my (short and easy) testscript because of the missing library. I noticed that I deleted an old version (version 1) of the library by accident. Maybe that created the problem. I can imagine that because of the versioning system (keeping track of every code changes) old code reffering to the deleted version-1 causes the problem.
这篇关于GAS库致命缺陷:“缺少标识符为FOO的库(可能已删除?)"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!