VSCode Vex extension cannot show build button

I have a drivetrain c++ project was working, but after a long vacation, vex extension cannot show the build button
image

if I create a new v5 c++ project, in .vscode, it mssing c_cpp_properties.json file and settings.json is empty

Use feedback after opening the project and Halen can look at the logs. Is vex_project_settings.json still ok ?

1 Like

I try to send feedback, but fail

@hphillips any thoughts ?

1 Like

I have couple of things we could try to check,

Maybe there is an issue with vex_project_settings.json file for some reason.
Normally the toolbar only looks like that when a vex project is not detected or there is an issue reading in the project settings file.

As far as submitting feedback, was your computer offline when you tried to submit feedback?

Could you post your settings file in a code block like so:

{
	"extension": {
		"version": "0.6.0",
		"json": 2
	},
	"project": {
		"name": "test",
		"description": "",
		"creationDate": "7/20/2024, 2:03:55 AM",
		"platform": "V5",
		"language": "cpp",
		"slot": 1,
		"sdkVersion": "V5_20240223_11_00_00",
		"cpp": {
			"includePath": [],
			"printf_float": true
		}
	}
}

Could you also get me the following info:

  • OS
  • VEX Feedback Version
  • VSCode version
2 Likes

This is the vex_project_settings.json file:

{
	"extension": {
		"version": "0.5.0",
		"json": 2
	},
	"project": {
		"name": "storm2024",
		"description": "",
		"creationDate": "5/24/2024, 7:43:51 PM",
		"platform": "V5",
		"language": "cpp",
		"slot": 1,
		"sdkVersion": "V5_20240223_11_00_00",
		"cpp": {
			"includePath": [],
			"printf_float": true
		}
	}
}


This is the VSCode version:
image

here is my new created cpp json file

to use Vex vscode extension, do I need install any other extension? such as WSL from Miscrosoft?

Can you explain in detail the steps you have done up until the error? Like the buttons you click on and the things you type?

Is this repeatable on another computer?

not really, the Microsoft C++ extension is needed for intellisense but would not affect you problem.

Does a new project build correctly ?

1 Like

Apologies for the delayed response, its been a pretty busy weekend.

So it looks like your project settings are okay.
I’ll need to look at logs because I wasn’t able to reproduce this issue on my setup.

You can find them by doing the following:

  1. Press CTRL + SHIFT + U to open the output tab in the terminal.

  2. Click the dropdown on the top left labled “Tasks” and select VEX from the dropdown.

  3. You should see the VEX Extension log appear.

Can you duplicate the issue again and then post your logs here?

1 Like

new project doesn’t work

Here is my VEX extension log

Thanks for posting your log!

So I had another user report a similar issue but with a python project. I believe the issue is being caused because the VEX Extension is getting initialized/registered before the C/C++ Extension. I think this causes the vscode api to throw an error when the VEX Extension tries to update the settings.json file after your project is first detected.

Since the error gets thrown, you project does not get added to the internal project list and the build toolbar is not shown.

I’m not sure if the initialization order is pre determined, random, or based on the order that your extensions were installed or updated.

You could try and uninstalled/reinstalled the C/C++ Extension.
Then reboot your computer. This seemed to fix the issue in the other users case.

You could also try adding the missing property to your settings.json file:

{
     "C_Cpp.default.systemIncludePath" : "" 
}

Then reload your workspace by closing/reopening vscode.

Give this a try and let me know what happens.

1 Like