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 Shared code behavior (Read 1139 times)
Ward101
Newbies
*
Offline


Posts: 8
Joined: Feb 14th, 2024
Shared code behavior
Mar 11th, 2024 at 3:55pm
Print Post  
I´m trying to create shared code following the documentation (https://www.youtube.com/watch?v=01B0G1dXOBg), but I´m getting a different behavior with VS2022 and 2024.223.2200 Visual Micro package.
I tested on 2019 and Micro 2021.1108.1913 and behaves like the video.

Once I create the shared project, I click on it and try to add a new item (Add -> New Item)
It only allows me to add INO files (and other regular c++, like cpp o h files). But not the Arduino CPP and H option.

If I click on the shared project, and click Add -> Add Empty Adruino CPP and Header, they are being created on the Startup Project and not on the shared (as shown on the youtube video).

What am I doing wrong?

Thanks!
Eduardo
« Last Edit: Mar 11th, 2024 at 4:14pm by Ward101 »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2709
Joined: Feb 13th, 2019
Re: Shared code behavior
Reply #1 - Mar 11th, 2024 at 5:32pm
Print Post  
Thanks for the report, we will look into why the CPP and Header Template is not available in this scenario.

If you add the files to the startup project, they can then be moved to the Shared Project in windows explorer, and afterwards they can be included in the Shared Project by using the Add > Existing Item from the Shared Project.

  
Back to top
IP Logged
 
Ward101
Newbies
*
Offline


Posts: 8
Joined: Feb 14th, 2024
Re: Shared code behavior
Reply #2 - Mar 11th, 2024 at 5:47pm
Print Post  
Thanks for your help.
That´s what I´ve been doing by now.

I hope it can be fixed soon (if it´s a bug)

Eduardo
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2709
Joined: Feb 13th, 2019
Re: Shared code behavior
Reply #3 - Mar 13th, 2024 at 4:42pm
Print Post  
Can you try installing the latest release (24.0313.00) from the top of the board below, this should resolve the templates displaying correctly:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
IP Logged
 
Ward101
Newbies
*
Offline


Posts: 8
Joined: Feb 14th, 2024
Re: Shared code behavior
Reply #4 - Mar 14th, 2024 at 10:25pm
Print Post  
Thank you very much!
Issue solved.

Eduardo
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint