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 Error when PDE and INO mix (Read 6040 times)
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Error when PDE and INO mix
Oct 29th, 2012 at 5:54am
Print Post  
I just discovered a strange issue. My project was created with .pde files and worked well with Arduino 1.0 . Now when I create a new Arduino item in VM, it uses the .ino extension on the files. When I try to compile I get an error that whatever is used in the .ino file is not "declared in this scope". I rename the files to .pde and all is well.

Any ideas?
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error when PDE and INO mix
Reply #1 - Oct 29th, 2012 at 6:01pm
Print Post  
Are you using arduino 1.0 or 1.0.1?
  
Back to top
WWW  
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Error when PDE and INO mix
Reply #2 - Oct 29th, 2012 at 6:47pm
Print Post  
Arduino 1.0. I have not started the Arduino IDE in such a long time that I probably missed and upgrade or two by now. I will check it out.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error when PDE and INO mix
Reply #3 - Oct 29th, 2012 at 7:29pm
Print Post  
I think there might be a wrong check in vm somewhere for the arduino version.

Try simply replacing the 100 in arduino/libs/version.txt with 1.0.1 and re-starting vs. Arduino doesn't use the version.txt file so it won't break anything. Saves an upgrade.
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error when PDE and INO mix
Reply #4 - Oct 29th, 2012 at 8:20pm
Print Post  
If you still get the problem please try to give step by step guide so that I can reproduce. I've just been renaming between pde and ino without error
  
Back to top
WWW  
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Error when PDE and INO mix
Reply #5 - Oct 29th, 2012 at 8:27pm
Print Post  
I have upgraded so somewhere in this project that I am busy with I will create a new file and test.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error when PDE and INO mix
Reply #6 - Oct 29th, 2012 at 8:28pm
Print Post  
Ok whenever you get a mo
  
Back to top
WWW  
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Error when PDE and INO mix
Reply #7 - Oct 30th, 2012 at 5:46am
Print Post  
I added some new Arduino items that created new .ino files mixed with the .pde files and all compiled correctly. So it was an issue with Arduino.

The magic just gets better Smiley
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint