Well that and I had added the entire includePath. But I didn’t have to make any of those edits for 4.26.
here’s the compileCommands_BullCowGame.json for the 4.26-generated project:
[
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit/Source/BullCowGame/BullCowCartridge.cpp",
"command": "cl.exe @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.171.rsp\"",
"directory": "/Users/ptr/src/UE_4.26/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit/Source/BullCowGame/BullCowCartridge.h",
"command": "cl.exe @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.171.rsp\"",
"directory": "/Users/ptr/src/UE_4.26/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit/Source/BullCowGame/BullCowGame.Build.cs",
"command": "cl.exe @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.171.rsp\"",
"directory": "/Users/ptr/src/UE_4.26/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit/Source/BullCowGame/BullCowGame.cpp",
"command": "cl.exe @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.171.rsp\"",
"directory": "/Users/ptr/src/UE_4.26/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit/Source/BullCowGame/BullCowGame.h",
"command": "cl.exe @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.171.rsp\"",
"directory": "/Users/ptr/src/UE_4.26/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit/Source/BullCowGame/BullCowGameGameModeBase.cpp",
"command": "cl.exe @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.171.rsp\"",
"directory": "/Users/ptr/src/UE_4.26/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit/Source/BullCowGame/BullCowGameGameModeBase.h",
"command": "cl.exe @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.171.rsp\"",
"directory": "/Users/ptr/src/UE_4.26/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit/Source/BullCowGame/Console/Cartridge.cpp",
"command": "cl.exe @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.171.rsp\"",
"directory": "/Users/ptr/src/UE_4.26/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit/Source/BullCowGame/Console/Cartridge.h",
"command": "cl.exe @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.171.rsp\"",
"directory": "/Users/ptr/src/UE_4.26/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit/Source/BullCowGame/Console/Terminal.cpp",
"command": "cl.exe @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.171.rsp\"",
"directory": "/Users/ptr/src/UE_4.26/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit/Source/BullCowGame/Console/Terminal.h",
"command": "cl.exe @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.171.rsp\"",
"directory": "/Users/ptr/src/UE_4.26/Engine/Source"
}
]
here’s the compileCommands_BullCowGame.json for the 4.27-generated project:
[
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit-4.27/Source/BullCowGame/BullCowCartridge.cpp",
"command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit-4.27/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
"directory": "/Users/ptr/src/UE_4.27/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit-4.27/Source/BullCowGame/BullCowCartridge.h",
"command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit-4.27/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
"directory": "/Users/ptr/src/UE_4.27/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit-4.27/Source/BullCowGame/BullCowGame.Build.cs",
"command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit-4.27/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
"directory": "/Users/ptr/src/UE_4.27/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit-4.27/Source/BullCowGame/BullCowGame.cpp",
"command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit-4.27/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
"directory": "/Users/ptr/src/UE_4.27/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit-4.27/Source/BullCowGame/BullCowGame.h",
"command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit-4.27/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
"directory": "/Users/ptr/src/UE_4.27/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit-4.27/Source/BullCowGame/BullCowGameGameModeBase.cpp",
"command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit-4.27/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
"directory": "/Users/ptr/src/UE_4.27/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit-4.27/Source/BullCowGame/BullCowGameGameModeBase.h",
"command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit-4.27/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
"directory": "/Users/ptr/src/UE_4.27/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit-4.27/Source/BullCowGame/Console/Cartridge.cpp",
"command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit-4.27/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
"directory": "/Users/ptr/src/UE_4.27/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit-4.27/Source/BullCowGame/Console/Cartridge.h",
"command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit-4.27/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
"directory": "/Users/ptr/src/UE_4.27/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit-4.27/Source/BullCowGame/Console/Terminal.cpp",
"command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit-4.27/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
"directory": "/Users/ptr/src/UE_4.27/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit-4.27/Source/BullCowGame/Console/Terminal.h",
"command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit-4.27/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
"directory": "/Users/ptr/src/UE_4.27/Engine/Source"
}
]
The diff will be off since I put the not-working 4.27 project in a separate folder. But here, I did a find/replace on the folder names and then did a diff (bash: diff version_4.26.json version_4.27.json
)
4,5c4,5
< "command": "cl.exe @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.171.rsp\"",
< "directory": "/Users/ptr/src/UE_4.26/Engine/Source"
---
> "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
> "directory": "/Users/ptr/src/UE_4.27/Engine/Source"
9,10c9,10
< "command": "cl.exe @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.171.rsp\"",
< "directory": "/Users/ptr/src/UE_4.26/Engine/Source"
---
> "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
> "directory": "/Users/ptr/src/UE_4.27/Engine/Source"
14,15c14,15
< "command": "cl.exe @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.171.rsp\"",
< "directory": "/Users/ptr/src/UE_4.26/Engine/Source"
---
> "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
> "directory": "/Users/ptr/src/UE_4.27/Engine/Source"
19,20c19,20
< "command": "cl.exe @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.171.rsp\"",
< "directory": "/Users/ptr/src/UE_4.26/Engine/Source"
---
> "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
> "directory": "/Users/ptr/src/UE_4.27/Engine/Source"
24,25c24,25
< "command": "cl.exe @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.171.rsp\"",
< "directory": "/Users/ptr/src/UE_4.26/Engine/Source"
---
> "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
> "directory": "/Users/ptr/src/UE_4.27/Engine/Source"
29,30c29,30
< "command": "cl.exe @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.171.rsp\"",
< "directory": "/Users/ptr/src/UE_4.26/Engine/Source"
---
> "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
> "directory": "/Users/ptr/src/UE_4.27/Engine/Source"
34,35c34,35
< "command": "cl.exe @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.171.rsp\"",
< "directory": "/Users/ptr/src/UE_4.26/Engine/Source"
---
> "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
> "directory": "/Users/ptr/src/UE_4.27/Engine/Source"
39,40c39,40
< "command": "cl.exe @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.171.rsp\"",
< "directory": "/Users/ptr/src/UE_4.26/Engine/Source"
---
> "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
> "directory": "/Users/ptr/src/UE_4.27/Engine/Source"
44,45c44,45
< "command": "cl.exe @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.171.rsp\"",
< "directory": "/Users/ptr/src/UE_4.26/Engine/Source"
---
> "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
> "directory": "/Users/ptr/src/UE_4.27/Engine/Source"
49,50c49,50
< "command": "cl.exe @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.171.rsp\"",
< "directory": "/Users/ptr/src/UE_4.26/Engine/Source"
---
> "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
> "directory": "/Users/ptr/src/UE_4.27/Engine/Source"
54,55c54,55
< "command": "cl.exe @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.171.rsp\"",
< "directory": "/Users/ptr/src/UE_4.26/Engine/Source"
---
> "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
> "directory": "/Users/ptr/src/UE_4.27/Engine/Source"
… and at the risk of having too much text on this post, if you want to diff it yourself, here’s the 4.27 file with the directory renamed:
[
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit/Source/BullCowGame/BullCowCartridge.cpp",
"command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
"directory": "/Users/ptr/src/UE_4.27/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit/Source/BullCowGame/BullCowCartridge.h",
"command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
"directory": "/Users/ptr/src/UE_4.27/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit/Source/BullCowGame/BullCowGame.Build.cs",
"command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
"directory": "/Users/ptr/src/UE_4.27/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit/Source/BullCowGame/BullCowGame.cpp",
"command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
"directory": "/Users/ptr/src/UE_4.27/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit/Source/BullCowGame/BullCowGame.h",
"command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
"directory": "/Users/ptr/src/UE_4.27/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit/Source/BullCowGame/BullCowGameGameModeBase.cpp",
"command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
"directory": "/Users/ptr/src/UE_4.27/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit/Source/BullCowGame/BullCowGameGameModeBase.h",
"command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
"directory": "/Users/ptr/src/UE_4.27/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit/Source/BullCowGame/Console/Cartridge.cpp",
"command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
"directory": "/Users/ptr/src/UE_4.27/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit/Source/BullCowGame/Console/Cartridge.h",
"command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
"directory": "/Users/ptr/src/UE_4.27/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit/Source/BullCowGame/Console/Terminal.cpp",
"command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
"directory": "/Users/ptr/src/UE_4.27/Engine/Source"
},
{
"file": "/Users/ptr/src/gd/BullCowGame-starter-kit/Source/BullCowGame/Console/Terminal.h",
"command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ @\"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame/BullCowGame.191.rsp\"",
"directory": "/Users/ptr/src/UE_4.27/Engine/Source"
}
]