Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • 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
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
I can't compile (Read 205 times)
Livio
Junior Member
**
Offline



Posts: 54
Italy
I can't compile
Jan 31st, 2021 at 11:16pm
 
I am really very demoralized, I am trying to use Visual Micro, first with Microchip Studio then with Visual Studio now again with Microchip Studio, but I have problems.

I have an example I compiled with arduino IDE, I'm trying to bring it into Microchip Studio.

I can import it, but when I try to compile it it gives me an error: File name or extension too long.

In the attached file there is the interminable output of Micro Build, at the end there is the error, it is written in Italian because the PC is set in Italian.

In Visual Studio I haven't this error, but the program crash frequently.

Thank you for help
Livio
Back to top
 
livio.rivolta.3  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline



Posts: 10935
United Kingdom
Re: I can't compile
Reply #1 - Jan 31st, 2021 at 11:51pm
 
Hi

Please follow the guide in the yellow box near the top of this page so that we can help.

Thank you
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
Livio
Junior Member
**
Offline



Posts: 54
Italy
Re: I can't compile
Reply #2 - Feb 1st, 2021 at 1:45am
 
I had attached the file, but it is not seen in the post.

Ok, now is here.
Back to top
« Last Edit: Feb 1st, 2021 at 1:46am by Livio »  

Please Register or Login to the Forum to see File Attachments
livio.rivolta.3  
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 698
Re: I can't compile
Reply #3 - Feb 1st, 2021 at 11:38am
 
Thanks for the detail.

This has gone over the 32k character limit for command lines, hence the error about it being too long.

Would it be possible to upgrade Visual Micro to the latest version available from the top of the below board, and try a Clean Build?
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
Back to top
 
 
IP Logged
 
Livio
Junior Member
**
Offline



Posts: 54
Italy
Re: I can't compile
Reply #4 - Feb 1st, 2021 at 9:34pm
 
Ok, I have downloaded the file: Visual.Micro.Microchip.Studio_21_01_06_2_v2Installer.zip I changed the extension in .vsix and double click on it.
(Correct? Otherwise I don't know how install)
The installation was ok.

How can I see the number of version of Visual Micro installed? Just to check.

Microchip Studio - Build - Clean Solution  (no Clean from vMicro submenu?)

Microchip Studio - vMicro - Build

Now the error is different: Error linking for board Arduino MKR WiFi 1010

If I open the same file, ProvaEth.ino with Arduino IDE I can compile without errors.
Back to top
 

Please Register or Login to the Forum to see File Attachments
livio.rivolta.3  
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 698
Re: I can't compile
Reply #5 - Feb 1st, 2021 at 9:58pm
 
Thanks for the logs.

This is from the Arduino App Store IDE I believe, which uses separate packages.

Do you have the Desktop Arduino IDE installed, and configured in Visual Micro?

Back to top
 
 
IP Logged
 
Livio
Junior Member
**
Offline



Posts: 54
Italy
Re: I can't compile
Reply #6 - Feb 1st, 2021 at 10:47pm
 
I use the version of Arduino IDE installed on my PC, not on the web.

Arduino IDE was installed before Visual Studio, so I think Visual Studio found it, as you can check in the picture attached.
Back to top
 

Please Register or Login to the Forum to see File Attachments
livio.rivolta.3  
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 698
Re: I can't compile
Reply #7 - Feb 4th, 2021 at 11:43am
 
Can you attach the Arduino IDE Output (Desktop IDE which vMicro is set to) for the same sketch, with the Preferences > Show Versbose Output during Compilation checked?
Back to top
 
 
IP Logged
 
Livio
Junior Member
**
Offline



Posts: 54
Italy
Re: I can't compile
Reply #8 - Feb 5th, 2021 at 7:54am
 
I uninstalled everything and started over.

Visual Studio: vs_Community.exe, at the beginning of installation there are many optional workloads, I choose only "Desktop development with C++", correct? And the english pack because the default is italian. Only these?

Arduino IDE: arduino-1.8.13-windows.exe, downloaded from https://www.arduino.cc/en/software, link DOWNLOAD OPTIONS: Windows Win 7 and newer

I open Visual Studio - Extensions - Manage Extensions - Online - Arduino IDE for Visual Studio (Visual Micro) - Download - and proceed with installation.

Now the Visual Studio System Info is attached here.


I'm sorry, I hadn't seen the note "NOTE - The the Windows Store App Arduino application is NOT supported." and didn't imagine there were different versions of Arduino IDE and from the official Arduino page I had unintentionally arrived in the Windows Store.

Hope now is ready and ok.

Now to complete the installation I need to have Atmel-ICE working.


Thank you
Livio

Back to top
« Last Edit: Feb 5th, 2021 at 2:52pm by Livio »  

Please Register or Login to the Forum to see File Attachments
livio.rivolta.3  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline



Posts: 10935
United Kingdom
Re: I can't compile
Reply #9 - Feb 5th, 2021 at 7:06pm
 
Great, the windows store version is the same BUT the install location is surrounded by permissions that prevents Visual Micro from acessing the folder (cores and libraries during auto discovery).

Now that you are setup properly, please start a new thread for any issues.

Thanks
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print