nem*_*102 16 python vim runtime-error autocomplete
我试图用我的Python代码使用Vim的omnicompletion,但每当我尝试Cx + Co时,它会提示以下错误消息:
运行时错误!
程序E:\ Vim\vim73\gvim.exe
R6034应用程序尝试错误地加载C运行时库.有关更多信息,请联系应用程序的支持团队.
请问有谁请告诉我如何解决这个问题!非常感谢!
sgw*_*513 22
我有同样的问题,导致gvim无法加载python pyd dll.有一些提示可以解决导致上述问题的.pyd dll.我不确定有没有办法解决所有dll的运行时错误.参考如何解决您的问题,不在Windows链接上嵌入msvc运行时的正确清单.
更新:而不是更新.pyd文件的清单.我尝试通过更新原始gvim清单并使用python.exe清单中的一些更改来直接更新gvim的清单.
# dump manifest from gvim.exe
>> mt.exe -inputresource:gvim.exe;#1 -out:gvim.manifest
# dump manifest from python.exe
# *I use python26 for gvim, default gvim come with python27
>> mt.exe -inputresource:c:\python26\python.exe;#1 -out:python.manifest
# manually edit gvim.manifest, just change the line with dependentAssembly with
# line from the python.manifest which will depend on VC90.CRT
# Then, update the edited manifest into gvim.exe
>> mt.exe -manifest gvim.manifest -outputresource:gvim.exe;1
Run Code Online (Sandbox Code Playgroud)
以下是我编辑过的gvim.manifest:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<assemblyIdentity processorArchitecture="*" version="7.3.0.0" type="win32" name="Vim"></assemblyIdentity>
<description>Vi Improved - A Text Editor</description>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.VC90.CRT" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
</dependentAssembly>
</dependency>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
</requestedPrivileges>
</security>
</trustInfo>
<asmv3:application>
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
<dpiAware>true</dpiAware>
</asmv3:windowsSettings>
</asmv3:application>
</assembly>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2863 次 |
| 最近记录: |