Vex VS code not able to find vex.h file

I am having problems with the new Vex VS code software. I have installed all extensions, but I am new to this software. When I imported my projects from when I coded on VexCode pro before support was dropped, I tried to run the debugger. several errors show when I run it. The first problem I have when running it is in my vex.h file in my include folder, it tells me the include paths were not found for stdlib.h, v5.h, and v5_vcs.h.


So, I checked the quick fix section to try and find this browse.path setting. Upon clicking on it it brings me to this page

Once I’m here I don’t know what I need to change to include those 3 include paths. Anyone else know how to resolve this issue?

Does your project build when press the vex build icon?

image

It looks like you are trying to run your project locally using a launch.json file and maybe compile with another extension or tool?

If you could submit a feedback issue, and include this post in the message, then I can take a look at your project.

2 Likes

I tried building it and it said build successful, but the error codes still exist in the project, does this matter? Also, how do I submit a feedback issue, I’m new to the forums.

Okay that’s good then, that just means we are dealing with a intellesense config issue.

My best guess is that the c_cpp_properties.json file might missing or messed up for some reason.
The VEX Extension doesn’t handle intellesense. It does generate a template file that Microsoft’s C/C++ extension uses to configure the include paths for intellesense.

You can submit feedback by:

  1. Click VEX sidebar icon:
    image

  2. You should see the feedback webview appear in the bottom most panel. It should look like this:

Make sure diagnostic and usage data is checked so that your project gets attached when you submit feedback. Then I can I take a look your project and determine what’s going on with intellesense.

3 Likes

I think I did it, do I need to include a link to this forum post in the comment part or somewhere else?

I sent an updated version of the project back to you earlier, as well as a few recommendations,

  • I would disable the clangd extension.
  • I removed both launch.json and tasks.json files
  • I removed a few workspace settings from the settings.json file that prevented your includes from resolving properly.

The launch.json file is not needed since debugging(setting break points and stepping through code) your source code on your local computer is not supported.

Let me know if you have any other questions or run into any other issues!

2 Likes

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