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 Visual Studio, Arduino, Duplicate Project (Read 1337 times)
Steve_Gould_Ramsdell
Newbies
*
Offline


Posts: 3
Joined: May 13th, 2021
Visual Studio, Arduino, Duplicate Project
Jul 10th, 2022 at 12:46pm
Print Post  
Can you add a "duplicate project with new name"?

Every time I attempt to create a branch of my project (Visual Studio/Visual Micro) the file locations, particularly that of the libraries (user installed) gets screwed up.

At the moment all the #includes in my .ino files are "red underlined" as location missing, although they are all in the c:Ardunio libraries folder, I ca get around the problem by adding the required header files into the file explorer list. 

Can anyone suggest what I have done to prevent, or what I can do to re-enable my User Installed libraries?

Thanks for you help
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Studio, Arduino, Duplicate Project
Reply #1 - Jul 10th, 2022 at 12:54pm
Print Post  
Please dont add any headers in attempty to resolve. That will just cause confusion. It works same as arduino ide. 

Arduino uses something called a sketch book folder. Normally that is mydocuments\arduino. It uses a sub folder below the sketch book called "libraries" for user installed libraries. That is where your user installed libraries should be.

In Visual Micro you are using the Arduino2 application type. Arduino2 does not come with IDE libraries. 

You mention "c:\arduino\libraries". Can you confirm if c:\arduino is sketchbook or an ide location?

If it is the sketchbook location then ensure it is the sketchbook location in the Visual Micro IDE locations.

Alternatively, follow the guide in yellow above and we won't have to ask so many questions and guess your config.
  
Back to top
IP Logged
 
Steve_Gould_Ramsdell
Newbies
*
Offline


Posts: 3
Joined: May 13th, 2021
Re: Visual Studio, Arduino, Duplicate Project
Reply #2 - Jul 11th, 2022 at 10:21am
Print Post  
Tim, Thanks for reply and help.
Before the build I removed all the .h files I had added to the Header Files list in Solution Explorer. Interestingly the red underlining in the .ino file did not reappear. I have sent the build log text file under separate cover as instructed,
Please ignore the reference to .changed in the Bounce library, I have resolved that.
There is still no content listed in the User Installed when I attempt to add a library.
I note your comment regarding "Arduino2", I had noticed this previously and changed it to "Arduino 1.6" etc, setting it back to Arduino2 does caused the red under linings to reappear. Not sure where the Arduino2 entry came from, perhaps it was the default when I loaded the new version of Visual Micro. Perhaps compiling this (somehow) before changing to Arduino1.6 has caused some change in the Add Library User Installed configuration.
Is there a way I can determine/confirm the path of the libraries I have included in my .ino, right hand clicking on the file name does not offer me the "go to location".
Regards
Steve
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Studio, Arduino, Duplicate Project
Reply #3 - Jul 11th, 2022 at 3:10pm
Print Post  
Now that you have resolved the compile error please switch the tool bar config from Debug to Release. Then send the output again.

Based on your configuration user installed libraries should be in :-C:/Users/Stephen/Documents/Arduino/Libraries

If you used the Arduino2 app in Visual Micro it would be correct that you see a lot of red squiggles. This is because you are using some of the libraries that are installed with the Arduino 1.x IDE. 

With Arduino2, you are expected to download all libraries via Library Manager but that has gives a less  functional solution than the 1x IDE.

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