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
Hot Topic (More than 8 Replies) I can't compile (Read 1668 times)
Livio
Junior Member
**
Offline


Posts: 55
Location: Italy
Joined: Jan 10th, 2018
I can't compile
Jan 31st, 2021 at 11:16pm
Print Post  
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
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: I can't compile
Reply #1 - Jan 31st, 2021 at 11:51pm
Print Post  
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
IP Logged
 
Livio
Junior Member
**
Offline


Posts: 55
Location: Italy
Joined: Jan 10th, 2018
Re: I can't compile
Reply #2 - Feb 1st, 2021 at 1:45am
Print Post  
I had attached the file, but it is not seen in the post.

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

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


Posts: 2704
Joined: Feb 13th, 2019
Re: I can't compile
Reply #3 - Feb 1st, 2021 at 11:38am
Print Post  
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: 55
Location: Italy
Joined: Jan 10th, 2018
Re: I can't compile
Reply #4 - Feb 1st, 2021 at 9:34pm
Print Post  
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.
  

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


Posts: 2704
Joined: Feb 13th, 2019
Re: I can't compile
Reply #5 - Feb 1st, 2021 at 9:58pm
Print Post  
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: 55
Location: Italy
Joined: Jan 10th, 2018
Re: I can't compile
Reply #6 - Feb 1st, 2021 at 10:47pm
Print Post  
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.
  

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


Posts: 2704
Joined: Feb 13th, 2019
Re: I can't compile
Reply #7 - Feb 4th, 2021 at 11:43am
Print Post  
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: 55
Location: Italy
Joined: Jan 10th, 2018
Re: I can't compile
Reply #8 - Feb 5th, 2021 at 7:54am
Print Post  
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

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

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: I can't compile
Reply #9 - Feb 5th, 2021 at 7:06pm
Print Post  
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
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: I can't compile
Reply #10 - Mar 6th, 2021 at 2:42am
Print Post  
This Topic was moved here from Atmel Studio 7.0 [move by] Tim@Visual Micro.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint