Page 1 of 1

(solved) VS Code not seeing symbol definition

Posted: Sat Nov 13, 2021 12:01 am
by mzimmers
Hi all -

My main cmake file looks like this:

Code: Select all

cmake_minimum_required(VERSION 3.13.0)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
add_definitions(-DESP_PORT)
project(myProject)
It builds fine, but the VS editor doesn't seem to see the definition of "ESP_PORT," and shows errors.

What do I do in order to make this definition visible to the editor?

Thanks...

Re: VS Code not seeing symbol definition

Posted: Sat Nov 13, 2021 12:57 am
by boarchuz
See the "defines" item in this example config: https://code.visualstudio.com/docs/cpp/ ... e#_example

Re: (solved) VS Code not seeing symbol definition

Posted: Thu Nov 18, 2021 8:06 pm
by mzimmers
Thanks, boarchuz.