Cppcheck, Intellisense and Multi Project Workspace #230
Replies: 3 comments 1 reply
-
Sorry i'm late.
I'm not sure what you mean The plugin will provide the configuration for each file, please check the log, please point out the incorrect place, and the behavior you expect |
Beta Was this translation helpful? Give feedback.
-
CustomConfigurationProvider is run one time only upon VS Code startup. If I switch my Active project, then Include paths, Defines etc are not updated as per newly activated project. See attached screenshot - define (see red marks) there can't be resolved by pressing F12, and other defines that are project specific (e.g. Firmware in a different include path per project) - these are resolved as per 'first active project'. |
Beta Was this translation helpful? Give feedback.
-
This is a bug I have published a preview version: |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I have set up a multiproject as described in https://em-ide.com/docs/advance/multi_prj_workspace
I have Common code and 2 different target cpu code - 3 folders in total.
I also have Debug and Release config set up for each target cpu.
I can set Active Project as required (green dot in EIDE Projects pane) - all works as expected.
Now, there are Preprocessor Defines which are different for each target, and my Common code uses these Defines to compile correctly for each target.
The problem is with viewing the source files only - Intellisense with default settings (i.e. without setting up c_cpp_properties.json file because it is not recommended) is not aware of Preprocessor Defines and dims the code that's actually used for the Project set as Active.
Is there a way to have a specific Define set that will be passed to Intellisense based on which project is Active?
Beta Was this translation helpful? Give feedback.
All reactions