缺少标识为LabelServices的库(也许已将其删除了吗?)/出了点问题.请重新加载 [英] Library with identifier LabelServices is missing (perhaps it was deleted?) / Something went wrong. Please reload

查看:59
本文介绍了缺少标识为LabelServices的库(也许已将其删除了吗?)/出了点问题.请重新加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将其发布在google-apps-script-issues(

I have posted this on google-apps-script-issues (https://code.google.com/p/google-apps-script-issues/issues/detail?id=4723&can=4&colspec=Stars%20Opened%20ID%20Type%20Status%20Summary%20Component%20Owner) but with no response I am getting desperate as all my sheets and scripts are breaking down. So I hope someone here might have encountered this and have some idea for me how to handle this.

我现有的某些脚本(包括电子表格中的某些脚本)突然开始引发异常缺少标识符为LabelServices的库(也许已删除?)".

Some of my exiting scripts (including some in spreadsheets) suddenly started throwing the exception 'Library with identifier LabelServices is missing (perhaps it was deleted?)'.

我尝试删除一些引发此错误的脚本中的库引用,然后重新添加它,但出现相同的错误.我什至定义了一个同名的新库,并尝试使用它.还是一样的错误.

I tried deleting the library reference in some of the scripts that were throwing this error and re-adding it but the same error comes up. I even defined a new library with the same name and try to use it instead. Still the same error.

最有可能是一个相关的错误,当尝试打开这些脚本的项目属性时,我看到消息发生了错误.请重新加载.沙漏永不停止.在独立脚本和电子表格中嵌入的脚本中都会发生这种情况.

Most likely a related error, when trying to open project properties to these scripts I see the message 'Something went wrong. Please reload.' and the hourglass never stops. This happens at both standalone scripts and ones embeded in spreadsheets.

请注意,如果我将同一个库添加到新脚本中,那么就没有问题,并且库可以正常工作.

Please note that if I add the same library to a new script then there is no problem and the library works perfectly.

我想补充一点,即使我删除了该库以及对该库的任何调用或引用,问题仍然存在.

I would like to add that even if I remove the library and also any calls or references to the library the problem still persists.

可以通过 https://链接到发生这种情况的脚本script.google.com/d/1ptevXwu25z9Vo88zX0XOyaQk5pE5MmzwDbb-lMglNY1lzz1HBBiAeJxn/edit?usp=drive_web 您可以复制并使用它.您应该遇到同样的问题.

Link to a script where this happens is available at https://script.google.com/d/1ptevXwu25z9Vo88zX0XOyaQk5pE5MmzwDbb-lMglNY1lzz1HBBiAeJxn/edit?usp=drive_web You can copy it and play with it. You should get the same problem.

感谢任何帮助!

推荐答案

安德鲁.首先感谢您在我脑海中激发了一些灵感.我一路自下而上,检查了每个脚本和它正在调用的库.显然存在依赖关系,但是应该没有什么问题.即使在开发模式下,也有几个库似乎会引起问题.我必须创建一个新版本,但仅用其他脚本更新它们的版本还不够.在调用脚本中,我必须删除所有库,然后逐一重新添加它们,同时测试项目属性是否显示.我只是希望Google有一个实用工具可以清楚地指出出了什么问题,因为尽管我两次浏览了有关库和开发模式的文档,但我仍无法弄清楚.由于我大约有30个库,更不用说电子表格和应用程序了,我花了整整一天的时间...再次感谢!

Andrew. First of all thank you as you triggered something in my mind. I went all the way bottom up and checked each script and a library it was calling. There were obviously dependencies, however nothing that should have been a problem. a couple of libraries even though in development mode seem to cause a problem. I had to create a new version but it was not enough just to update their version in other scripts. In the calling scripts I had to remove all libraries and re-add them one by one while testing whether the project properties shows up or not. I just wish Google would have a utility to clearly highlight what was wrong because I can't figure it out though I went twice through their documentation in regard to libraries and development mode. Since I have about 30 libraries or so, not to mention spreadsheets and apps it took me nearly a whole day... Thanks again!

总的来说,似乎存在有时库不同步的问题(至少这是我描述它的最佳方式).您可能需要为这些库创建新版本(即使它们处于开发模式.并且在每个有问题的脚本中,都删除并重新添加这些库(至少要进行几笔交易-首先删除并确认,然后添加-更好的一个) (同时检查您的项目属性是否正确打开).这为我解决了这个问题.

To all, it seems that there is a problem where sometimes libraries get out of sync (at least that's the best way I can describe it). You may need to create new versions for the libraries (even though these are in development mode. And in each problematic script remove and re-add the libraries (in at lease a couple of transactions - first remove and confirm then add - and better one at the time while checking that your project properties opens properly). This solved the problem for me.

这篇关于缺少标识为LabelServices的库(也许已将其删除了吗?)/出了点问题.请重新加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆