Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Re: S Editor doesn't resolve include paths correctly for Shared projects (Read 453 times)
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: S Editor doesn't resolve include paths correctly for Shared projects
Jan 28th, 2020 at 1:36pm
Print Post  
To make the intellisense and the build work I suggest using the project path as a base. The project path is always set as a compiler include path and for intellisense the same applies to shared projects.

This means that at any point in your code you could use:-

#include "src/SharedTest1/myClass1.h"


Building Arduino has to be performed in a hidden temp folder so that the .ino code can be combined to cpp. That does add a layer or complexity v's a standard c++ shared project. The solution above will work but if you can think if any other "include" paths we could add just for intellisense then please let us know. It would be nicer if intellisense would be same as compile which, as you say, allows better relative #include "SharedTest1/myClass1.h" syntax.

« Last Edit: Jan 28th, 2020 at 1:58pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Re: S Editor doesn't resolve include paths correctly for Shared projects
Reply #1 - Apr 6th, 2020 at 2:58pm
Print Post  
This Topic was moved here from Visual Studio 2017, 2019 [move by] Visual Micro.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint