UE4.27 vscode找不到include的问题

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

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值