Ruby Gems问题:更新宝石名称时发生冲突

问题描述

在旧项目中,我们使用sync gem(现已重命名为render_sync)来实时更新部分内容。我已将宝石名称形式sync更新为render_sync,并在本地进行了测试,效果很好。但是,当部署在实时服务器上时,部分服务器无法实时更新。这可能是render_sync上的问题,但我发现了一些不寻常的情况。

在实时服务器控制台中,我尝试

bundle show render_sync
>> .../gems/render_sync-0.5.0

bundle show sync
>> .../gems/render_sync-0.5.0

more .../gems/render_sync-0.5.0/README.md
>> # I think it showing old documenation,before it renamed to sync.

gem which render_sync
>> ERROR:  Can't find Ruby library file or shared library render_sync

gem which sync
>>.../lib/ruby/2.3.0/sync.rb

more .../lib/ruby/2.3.0/sync.rb
>> "Maybe the trouble is here. This shows the code of new gem sync which is used for some locking purpose."

我不知道为什么即使我从gem文件中删除了render_sync,它仍在运行bundle show sync时显示gem which sync。另一件事是,当我尝试显示C:\Users\akiva\PycharmProjects\helloOpencv\venv\Scripts\python.exe C:/Users/akiva/PycharmProjects/helloOpencv/operation.py Exception in Tkinter callback Traceback (most recent call last): File "C:\Users\akiva\AppData\Local\Programs\Python\Python37\lib\tkinter\__init__.py",line 1705,in __call__ return self.func(*args) File "C:\Users\akiva\PycharmProjects\helloOpencv\mine_sweeper.py",line 72,in frame self.canvas.create_image(x1,y1,image=self.block_pic) File "C:\Users\akiva\AppData\Local\Programs\Python\Python37\lib\tkinter\__init__.py",line 2489,in create_image return self._create('image',args,kw) File "C:\Users\akiva\AppData\Local\Programs\Python\Python37\lib\tkinter\__init__.py",line 2480,in _create *(args + self._options(cnf,kw)))) _tkinter.TclError: image "pyimage1" doesn't exist 的文件时,它显示了新的'sync'gem的代码。

这些宝石有冲突吗?我该如何解决?

这是gems的GitHub链接。

render_sync宝石

新的sync宝石

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...