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) Getting build errors in VS 2015 (Read 12227 times)
TonyS
Junior Member
**
Offline


Posts: 13
Location: Portland, Maine
Joined: Jul 4th, 2016
Getting build errors in VS 2015
Jul 4th, 2016 at 5:31pm
Print Post  
I installed the Visual Micro program for VS.
I was using VS update 2 and got build errors.
I updated to VS update 3 and still got the errors.
I created a new Arduino project and got build errors on a simple Blink sketch.
Please see the attached screen dump.
Can you make sense of them?
Thanks.
  

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: Getting build errors in VS 2015
Reply #1 - Jul 4th, 2016 at 6:25pm
Print Post  
Hi,

Please post the build output as a .txt file (or email it) after switching on vMicro>Compiler>Verbose

The output window is the best place to see the reason for errors. The Error List isn't helpful for config issues because it just shows the end result.

edit: Most likely a problem with the location of the arduino ide setting in Visual Micro or invalid custom hardware in "mydocuments\arduino\hardware"

Thanks
« Last Edit: Jul 4th, 2016 at 6:27pm by Tim@Visual Micro »  
Back to top
IP Logged
 
TonyS
Junior Member
**
Offline


Posts: 13
Location: Portland, Maine
Joined: Jul 4th, 2016
Re: Getting build errors in VS 2015
Reply #2 - Jul 4th, 2016 at 7:05pm
Print Post  
OK, did that.
Attached is the text file.

Thanks.
  

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: Getting build errors in VS 2015
Reply #3 - Jul 4th, 2016 at 7:15pm
Print Post  
That is a strange one. The debug compile is showing the error with missing code. 

You can try the uninstall and reinstall. You can uninstall and reinstall without restarting the ide between the two but you need to restart the ide after reinstall.

If that doesn't fix it then pleases also switch on "vMicro>compiler>show build properties" then build and post the output again

Thanks
  
Back to top
IP Logged
 
TonyS
Junior Member
**
Offline


Posts: 13
Location: Portland, Maine
Joined: Jul 4th, 2016
Re: Getting build errors in VS 2015
Reply #4 - Jul 4th, 2016 at 7:43pm
Print Post  
I think I'm going to have to re-install Arduino. The build re-compiled the Arduino libraries first, then went through the build and it got the same errors.
I think one of the libraries got messed up somehow.
See you after the re-install.
Thanks.
  
Back to top
 
IP Logged
 
TonyS
Junior Member
**
Offline


Posts: 13
Location: Portland, Maine
Joined: Jul 4th, 2016
Re: Getting build errors in VS 2015
Reply #5 - Jul 4th, 2016 at 8:28pm
Print Post  
Well that didn't work.
I uninstalled Arduino.
Re-booted
Did a registry clean.
Uninstalled and re-installed Arduino IDE for VS.
Created a new Arduino project.
Built it; got errors. Arduino Build Errors3.txt
Built it again with properties on.
Maybe you can make some sense to it.
Thanks.
  

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: Getting build errors in VS 2015
Reply #6 - Jul 4th, 2016 at 8:51pm
Print Post  
Did you reinstall visual micro?

Please confirm it builds okay with the tool bar set to Release instead of Debug

Thanks
  
Back to top
IP Logged
 
TonyS
Junior Member
**
Offline


Posts: 13
Location: Portland, Maine
Joined: Jul 4th, 2016
Re: Getting build errors in VS 2015
Reply #7 - Jul 5th, 2016 at 2:55pm
Print Post  
Now is the next day for me. It's 11:00 EST.
Yes, I re-installed everything except Visual Studio, but I updated it to 3.
I tried to build a simple sketch with visual micro on my laptop last night and got no errors that I could tell. I'm going to connect an Arduino to it later today to see if it downloads correctly.
My operating system is the latest windows 10.

Can you tell me where visual micro puts it's properties?
I thought that I got rid of all traces of it, but when I re-installed it, it didn't ask where Arduino was located, and it had all the setting I had set for it, so an uninstall doesn't get rid of everything.

Thanks.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Getting build errors in VS 2015
Reply #8 - Jul 5th, 2016 at 3:01pm
Print Post  
Arduino is easy. You can use the zip files from arduino.cc and put them in any folder you like. Then tell visualmicro where to look. 

If you use their installer it can remember where stuff is as you found.

Project specific visual micro properties are stored in the __vm folder below each project and global properties in the registry but don't worry about them it sounds fine.
  
Back to top
IP Logged
 
TonyS
Junior Member
**
Offline


Posts: 13
Location: Portland, Maine
Joined: Jul 4th, 2016
Re: Getting build errors in VS 2015
Reply #9 - Jul 5th, 2016 at 4:16pm
Print Post  
OK, the problem happening is about debugging.
I opened a blink project.
I set the IDE to Release. I got the project to download to the Arduino.
When I set it to Debug, I get the build errors.
I need to debug another project so how do I get debugging to work?
Thanks.
  
Back to top
 
IP Logged
 
TonyS
Junior Member
**
Offline


Posts: 13
Location: Portland, Maine
Joined: Jul 4th, 2016
Re: Getting build errors in VS 2015
Reply #10 - Jul 5th, 2016 at 5:27pm
Print Post  
Do I need to buy the Pro version to do debugging?

Thanks.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Getting build errors in VS 2015
Reply #11 - Jul 5th, 2016 at 6:49pm
Print Post  
If it's trying to debug then you have the trial activated and it should work fine. It's not related to activation.

Is the error exactly the same as your first report?
  
Back to top
IP Logged
 
TonyS
Junior Member
**
Offline


Posts: 13
Location: Portland, Maine
Joined: Jul 4th, 2016
Re: Getting build errors in VS 2015
Reply #12 - Jul 6th, 2016 at 3:06pm
Print Post  
I paid for the Hobby license. Don't know if that means anything. I think it got registered.

And yes, the error's are the same when I try to build in Debug mode.

I'm going to uninstall Arduino again and put it where I used to have it, at the root of my C: drive instead of in Program Files (x86). It seems that the code is getting messed up somewhere. Maybe the long directory name has something to do with it.

Thanks.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Getting build errors in VS 2015
Reply #13 - Jul 6th, 2016 at 3:10pm
Print Post  
There are lots of people using arduino from program files and the build output looks okay

Can you confirm this same thing happens with a new empty project that just has setup() and loop()?

Thanks
  
Back to top
IP Logged
 
TonyS
Junior Member
**
Offline


Posts: 13
Location: Portland, Maine
Joined: Jul 4th, 2016
Re: Getting build errors in VS 2015
Reply #14 - Jul 6th, 2016 at 3:19pm
Print Post  
I created an empty project, and still getting build errors.

See attached text file.

Thanks.
  

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: Getting build errors in VS 2015
Reply #15 - Jul 6th, 2016 at 3:29pm
Print Post  
Thanks, I can see what is going wrong but need to look into why it is happening.

For some reason it isn't compiling the arduino core which is strange because nothing will work without that.

Can you switch to "release" mode, build and then post the output so I can see a clean compile with the properties switched on

Hopefully that gives the solution.

  
Back to top
IP Logged
 
TonyS
Junior Member
**
Offline


Posts: 13
Location: Portland, Maine
Joined: Jul 4th, 2016
Re: Getting build errors in VS 2015
Reply #16 - Jul 6th, 2016 at 3:53pm
Print Post  
Is this what you're looking for?
I put Verbose on.
I'm also using Arduino version 1.6.9.

See attached.
  

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: Getting build errors in VS 2015
Reply #17 - Jul 6th, 2016 at 6:23pm
Print Post  
Yes that's missing the core but no code uses it so you don;t see an error.

I think there might be a tools>options>visual micro setting that has been changed and needs further testing.

If you are comfortable using regedit.exe then delete the HKEY_CURRENT_USER\Software\Visual Micro key and restart the ide.

Then post the output again thanks.

Also email your debugger license key to info[at]visualmicro.com because it will need resetting so the debugger can be activated again. (as side effect of deleting the reg key will zap the debugger license)

After restarting the ide it will ask you for the arduino ide location again.
  
Back to top
IP Logged
 
TonyS
Junior Member
**
Offline


Posts: 13
Location: Portland, Maine
Joined: Jul 4th, 2016
Re: Getting build errors in VS 2015
Reply #18 - Jul 7th, 2016 at 2:51pm
Print Post  
That was it. 
Did what you said and no more errors.
Attached is the current output after the build.

And how do we mark this problem as solved?

Thanks so much. Now I can start debugging for real.
  

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: Getting build errors in VS 2015
Reply #19 - Jul 7th, 2016 at 2:58pm
Print Post  
Great thanks. I think you might have changed a compiler, compatibility or cache option so I will retest them all for the next release.

Sorry about the hassle. Don't forget that the debugger might now be in free trial mode which means that after 45 days it might stop.

You can see the license status in "Tools>Options>Visual Micro>Application Features>License Status". If registered with your paid key it will show REGISTERED otherwise is will show "Days Remaining"

If it doesn't show REGISTERED then enter your key. If you see a message that says "Activation limit exceeded" then email your key to me and I will reset it info[at]visualmicro.com or email the key and I will reset anyway

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