如何解决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链接。
新的sync宝石
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。