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 1307.31 Cannot find core headers... (Read 4905 times)
bonz
Junior Member
**
Offline


Posts: 10
Joined: May 25th, 2013
1307.31 Cannot find core headers...
Aug 3rd, 2013 at 8:13pm
Print Post  
Using a Due with 1.5.2 Beta and VM 1307.31 beta since I was having trouble with 1305.21 not finding some Due specific headers (Wire). Everything worked great on a test project but when I try to build my main app I get the following error as it can't find Arduino.h. Tried copying the sam headers to the "arduinoIde\libraries" but didn't help.

I greatly appreciate your help and great work.

System.Exception: Unable to locate the #included library named 'Arduino.h'
   at processing.app.SketchBuilder.preprocess(String buildPath, PdePreprocessor preprocessor)
   at processing.app.SketchBuilder.preprocess(String buildPath)
   at processing.app.SketchBuilder.build(String lbuildPath, Boolean verbose)
   at processing.app.SketchBuilder.build(Boolean verbose)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.CompileDo(Project oProject, Boolean IsDebugStartCommand)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.OnBeforeCommandEvent(String sGuid, Int32 ID, Object CustomIn, Object CustomOut, Boolean& CancelDefault)
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: 1307.31 Cannot find core headers...
Reply #1 - Aug 3rd, 2013 at 10:07pm
Print Post  
Thanks for the note. 

I will remove the check for valid libs in the next release due over the next day or so. It can be left to the compiler to decide if something is missing. 

However I think it is only happening because you have manually #included "arduino.h" in your .ino sketch code? Is there a reason for that? Normally it would be added automatically during the compile process.
  
Back to top
WWW  
IP Logged
 
bonz
Junior Member
**
Offline


Posts: 10
Joined: May 25th, 2013
Re: 1307.31 Cannot find core headers...
Reply #2 - Aug 4th, 2013 at 2:57am
Print Post  
Yes, #include <arduino.h> was left over from older code. However, when I remove it it still gives me errors for other #includes. I'll be looking for the new release.

Thanks again for the great work you do...makes our lives so much more pleasant  Smiley
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: 1307.31 Cannot find core headers...
Reply #3 - Aug 4th, 2013 at 2:19pm
Print Post  
Yes you are right. Vm was trying toooo hard to validate the #includes in  1307.31.

Thanks very much for taking time to report.
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: 1307.31 Cannot find core headers...
Reply #4 - Aug 18th, 2013 at 10:24pm
Print Post  
Fixed in 1308.18
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint