Major Squiggles with Mac 11.6 / VSCode 1.64 / UE 4.27

Apologies if this is a repeated question, but I’ve been stuck for a while and just wanted to throw it out there while I continue to look for the solution.

I’m running:
macOS Big Sur (11.6)
UE 4.27.2
VSCode 1.64
C/C++ Extension v1.8.4
UE Intellisense Fixes v2.4.0

I’m getting the entirety of BullCowCartridge.cpp underlined with red squiggles, all citing the same error:

And BullCowCartridge.h has a red squiggle that seems to move around. At first, it was up under the first character of the screen and just cited “#include errors detected”, but now has moved here:

For the record, it does compile. I would try a fresh install of the bullcow project, but I’ve already gone ahead a few lessons and don’t want to delete everything I’ve done. But the squiggles make it kinda hard to code.

Thanks!

Could you show what the output of the extension?

Hi, pardon the wait.

I thought I had fixed it last night adding some lines to my project’s .vcscode/c_cpp_properties.json.
I guess it just took VSCode a little while to re-run through all the dependencies and decide that it still was “broken”

here’s what I think I changed. Even though it didn’t help, these changes seem like they would be required.

{
    "configurations": [
        {
            "name": "BullCowGameEditor Editor Mac Development (BullCowGame)",
+           "includePath": [
+               "${workspaceFolder}/**"
+           ],
            "intelliSenseMode": "clang-x64",
            "macFrameworkPath": [
                "/System/Library/Frameworks",
                "/Library/Frameworks"
            ],
            "compileCommands": "/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame.json",
+           "compilerPath": "/usr/bin/clang",
            "cStandard": "c17",
-           "cppStandard": "c++98"
+           "cppStandard": "c++17"
        },
        {
            "name": "Mac",
            "intelliSenseMode": "clang-x64",
            "macFrameworkPath": [
                "/System/Library/Frameworks",
                "/Library/Frameworks"
            ],
            "compileCommands": "/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_Default.json",
            "cStandard": "c17",
-           "cppStandard": "c++98"
+           "cppStandard": "c++17"
        }
    ],
    "version": 4
}

And here’s my UE Intellisense Fixes output you asked for

Searching for *.uproject file...
Extension "UE Intellisense Fixes" is now active!

Found Unreal Engine v4.27.2

Fixing compiler path in c_cpp_properties.json.
Cpu: Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
Extension compiler path isn't set. Will not force compiler path in c_cpp_properties. (Not an error)
If the extension's compiler path setting was previously set you should reset your UE project to get back the c_cpp_properties default path.

Fixing compiler paths in compile commands.
Will not override compiler path in compile commands file. (Not an error)
Below is the compile commands first entry command. (WARNING) If getting errors and the compiler path is unexpected reset your UE project.
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"
Compile Command Object wasn't modifed. Will not write file.
Below is the compile commands first entry command. (WARNING) If getting errors and the compiler path is unexpected reset your UE project.
command: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" @"/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_Default/BullCowGame.191.rsp"
Compile Command Object wasn't modifed. Will not write file.
Done fixing compiler paths.

Fixing invalid paths in response files.
No invalid paths returned. No fixes needed.
No invalid paths returned. No fixes needed.
End fixing invalid paths in response files.

Fixing missing compile command files.
No missing file paths found. No fixes needed.
No missing file paths found. No fixes needed.
End fix missing compile commands.

Attempting to fix UE workspace(Add empty tag parser).
UE's tag parser includes are set to empty array for performance.
The setting limitSymbolsToIncludedHeaders is already set to true.
End fix UE workspace(Add empty tag parser).

Attempting to fix wrong cppStandard.
Extension's cppStandard setting was set to empty string.
Intellisense will use cpptools cppStandard setting instead of this extension's setting.
End fix wrong cppStandard.

Fixing launch.json.
launch.json didn't need to be changed.
End fix launch.json.

Start fix wrong intellisense mode
Cpu: Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
Intellisense mode doesn't need to be fixed.
End fix wrong intellisense mode.

Attempting to fix UE workspace optimization.
Current Main workspace file's forced includes are already fixed.
End fix UE optimization.

No need to write BullCowGame CCppProperties. It was unchanged.
No need to write UE4 CCppProperties. It was unchanged.

Extension is done.

Would you mind uninstalling the IntelliSense fixes extension and then start a fresh project and post the c_cpp.properties.json to compare with?

I think whilst fixing the issue with M1 macs it broke Intel.

Here ya go:

{
    "configurations": [
        {
            "name": "BullCowGameEditor Editor Mac Development (BullCowGame)",
            "intelliSenseMode": "clang-x64",
            "macFrameworkPath": [
                "/System/Library/Frameworks",
                "/Library/Frameworks"
            ],
            "compileCommands": "/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_BullCowGame.json",
            "cStandard": "c17"
        },
        {
            "name": "Mac",
            "intelliSenseMode": "clang-x64",
            "macFrameworkPath": [
                "/System/Library/Frameworks",
                "/Library/Frameworks"
            ],
            "compileCommands": "/Users/ptr/src/gd/BullCowGame-starter-kit/.vscode/compileCommands_Default.json",
            "cStandard": "c17"
        }
    ],
    "version": 4
}

I downgraded to UE 4.26 and it seems (?) to be working now? Even with the Intellisense fixes uninstalled… hesitant to say definitely because I thought I had it working before. Either way I’m happy to keep supplying information if you want to debug the issue when it comes to v4.27 on Intel macs.

Doing a diff on the two the only difference is the C++ mode and compiler path.

"compilerPath": "/usr/bin/clang",
"cppStandard": "c++17

The fact that it’s working in 4.26 makes it seem like another problem caused by Unreal’s generation of the compile commands.

If you wouldn’t mind could you compare/post the compileCommands.json for the two versions?

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"
	}
]

It’s weird that the working one is using cl for the compiler command as that’s Microsoft’s compiler which is Windows only.

For the non-working 4.27 project. If you remove compilerPath from the c_cpp_properties.json, does that fix it? As the compile command is already using the full path to the compiler.

That is very strange, didn’t notice that. Are we sure that it has to do with the compiler? Since both projects compile fine (though I’m compiling through UE, not sure if that magic runs through the VSCode project configs or through something else). But anyways I’m wondering if there’s something wrong with VSCode’s semantic analysis? Though, I fired up the project in CLion and there were also issues—different issues, but still issues. But I also have no idea what the Intellisense fixes are actually doing, or really anything about the engine linking.

But on your other point, the generated project originally didn’t have a compilerPath set. I added that line. Its presence or absence doesn’t seem to affect the errors.

Those settings are for IntelliSense only. They have no effect on actually compiling the project as that is done by Unreal’s build system.

The way autocompletion works is by using a compiler front-end which turns source code into an intermediate representation which can then be analysed. Clang is such a front end (which is typically used with the LLVM backend for actually compiling code into an executable/library).

clangd is a different autocompletion tool that is powered by the clang front end.

cl isn’t really a “compiler” but a driver that encapsulates the pre-processor/front & back end compilers/linker.

Kind of unrelated but the IntelliSense that’s in Visual Studio is powered by the EDG compiler front end and not Microsoft’s own front end (I think it’s called CX11?).


What if you copy the 4.26’s command of the response file using cl?

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms