当前位置:   article > 正文

UE4.27 vscode找不到include的问题_unable to resolve configuration with compilerpath

unable to resolve configuration with compilerpath

UE 4.27 vscode配置,但是找不到所有的 include 

然后报错内容是:

检测到include错误,请考虑更新 xxxxxjson 或 includePath

以及output里:

无法使用 “c:\program” 解析配置, 请改用 “cl.exe” 

试过用UE里 Refresh Visual Studio Code Project, 没有用。

添加地址到include path之类的也无效。

最后试到的方法是:

把所有的compileCommands_xxxx.json里的 command:

"command": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.32.31326\\bin\\HostX64\\x64\\cl.exe @\"C:\\Program Files\\Epic Games\\UE_4.27\\.vscode\\compileCommands_Default\\UE_Begin.210.rsp\"",

都改成(对 cl.exe 那段地址再加一层引号):

"command": "\"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.32.31326\\bin\\HostX64\\x64\\cl.exe\" @\"C:\\Program Files\\Epic Games\\UE_4.27\\.vscode\\compileCommands_Default\\UE_Begin.210.rsp\"",

参考:UE 4.27 how to fix issues in visual studio code: "red squiggles" and "Unable to resolve configuration with compilerPath C:\Program" - Blueprint - Unreal Engine ForumsI try to update this week a game build few months ago with 4.26 + VS code with 4.27. And when I launch visual studio code after “refresh visual studio code project” I got these issues: I found how to solve it . -R…https://forums.unrealengine.com/t/ue-4-27-how-to-fix-issues-in-visual-studio-code-red-squiggles-and-unable-to-resolve-configuration-with-compilerpath-c-program/568488

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/688963
推荐阅读
相关标签
  

闽ICP备14008679号