Compile error

in vs vex when trying to download code
Build Failed: Make process closed with exit code: 2
Rebuild Failed: make process closed with exit code : 2

i tried this also on a blank template and got the same error.

1 Like

Is this all of the message? as if there is an error it should tell you what that error is for example a define

thread o(DoSomething);
thread o(DoSomething);

In the message it says “redefinition of o”. Is there any information included other than that?

1 Like

try restarting the the window

1 Like

i checked the files and there is nothing in the build folder section. its just empty

1 Like

Can you post the error here? And maybe your code.

1 Like

Build Failed: Make process closed with exit code: 2
Rebuild Failed: make process closed with exit code : 2

[2/14/2024, 1:28:40 PM] Unable to resolve configuration with compilerPath: “c:\Users\student\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang”
[2/14/2024, 1:28:41 PM] Unable to resolve configuration with compilerPath: “c:\Users\student\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang”

1 Like

Could you show us your c_cpp_properties.json file?

1 Like

it’s just a blank comp template and it wont compile

1 Like

(its in the .vscode folder)
Screenshot 2024-02-14 232439
Here is mine

{
	"env": {
		"vex_compilerPath": "${config:vexrobotics.vexcode.Cpp.Toolchain.Path}\\clang\\bin\\clang",
		"vex_sdkPath": "${config:vexrobotics.vexcode.Cpp.Sdk.Home}\\V5\\V5_20220726_10_00_00\\vexv5",
		"vex_gcc": "${vex_sdkPath}/gcc/include/c++/4.9.3",
		"vex_sdkIncludes": [
			"${vex_sdkPath}/clang/8.0.0/include/**",
			"${vex_gcc}/**",
			"${vex_gcc}/arm-none-eabi/armv7-arm/thumb",
			"${vex_sdkPath}/gcc/include",
			"${vex_sdkPath}/include/**",
			"${workspaceFolder}/include/**",
			"${workspaceFolder}/src/**"
		]
	},
	"configurations": [
		{
			"name": "Win32",
			"includePath": [
				"${vex_sdkIncludes}",
				"${workspaceFolder}"
			],
			"compilerPath": "${vex_compilerPath}",
			"cStandard": "gnu99",
			"cppStandard": "gnu++11",
			"intelliSenseMode": "windows-clang-x86"
		},
		{
			"name": "Mac",
			"includePath": [
				"${vex_sdkIncludes}"
			],
			"compilerPath": "${vex_compilerPath}",
			"cStandard": "gnu99",
			"cppStandard": "gnu++11",
			"intelliSenseMode": "macos-clang-x86"
		},
		{
			"name": "Linux",
			"includePath": [
				"${vex_sdkIncludes}"
			],
			"compilerPath": "",
			"cStandard": "gnu99",
			"cppStandard": "gnu++11",
			"intelliSenseMode": "linux-clang-x86"
		}
	],
	"version": 4
}
1 Like

Is this a school or personal computer ? It feels like you don’t have correct permissions to run the build system. We have had some issues with new installs with VSCode version 1.86 in windows, was it a recent install ?

2 Likes

1 Like

yes its happening on both school and home pc school no admin home yes admin

it’s also the newest version of vs

1 Like

Then my assumption is that you have run into this issue.

2 Likes

so i get to wait and i cant do anything. but i got a comp in a few days lovely.

1 Like

Blame Microsoft.

you could install vscode 1.85 (and disable updates) and then remove the
c:\Users\student\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode
folder which would cause the extension to download everything again.

2 Likes

and it will still work for a laptop without admin that my school runs? if i remove everything?

1 Like

Changelog | Visual Studio Marketplace
they have a new update 0.2.1
but i still get
[2/15/2024, 1:03:59 PM] Unable to resolve configuration with compilerPath: “c:\Users\student\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang”

[2/15/2024, 1:03:59 PM] Unable to resolve configuration with compilerPath: “c:\Users\student\AppData\Roaming\Code\User\globalStorage\vexrobotics.vexcode\tools\cpp\toolchain_win32\clang\bin\clang”

and this is on my school windows laptop without admin.

1 Like

Did you reload vscode after installing the update?

1 Like

yeah i uninstalled and removed everything and still getting that error in c/c++ config warnings