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) BUG: Fresh install of everything, build fails (Read 2439 times)
Grilmaster
Newbies
*
Offline


Posts: 7
Joined: Mar 17th, 2020
BUG: Fresh install of everything, build fails
Mar 17th, 2020 at 3:13pm
Print Post  
Hello,

I'm using the VS2017 with latest Arduino IDE (1.8.12) and latest Visual Micro (20_03_01_6.vsix)

When I try to build a new project - with NO code but the boiler plate - I get this:

Compiling 'GasGrillController' for 'Arduino Uno'
Error running GCC-E during prototype extraction

Compile attempt will be prototypes discovered using regex. tip: Switch off Generate Prototypes in the vMicro>Project Properties and report this error. Adding missing prototypes to the code will avoid need for prototype generation.
Program size: 444 bytes (used 1% of a 32’256 byte maximum) (0.32 secs)
Minimum Memory Usage: 9 bytes (0% of a 2048 byte maximum)
 
Any idea?

Thank you
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: BUG: Fresh install of everything, build fails
Reply #1 - Mar 17th, 2020 at 3:26pm
Print Post  
Thanks for the report, and we will continue to look into this.

This functionality can be disabled as shown in the output message, and will require all prototypes to be manually defined.

Would it be possible to send the code which shows this issue, just so we are sure we have replicated the same issue?

« Last Edit: Mar 17th, 2020 at 5:07pm by Simon@Visual Micro »  
Back to top
 
IP Logged
 
Grilmaster
Newbies
*
Offline


Posts: 7
Joined: Mar 17th, 2020
Re: BUG: Fresh install of everything, build fails
Reply #2 - Mar 17th, 2020 at 7:01pm
Print Post  
Super, thank you! I've sent you the log-files and the solution as well by email.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: BUG: Fresh install of everything, build fails
Reply #3 - Mar 17th, 2020 at 7:47pm
Print Post  
  
Back to top
WWW  
IP Logged
 
Grilmaster
Newbies
*
Offline


Posts: 7
Joined: Mar 17th, 2020
Re: BUG: Fresh install of everything, build fails
Reply #4 - Mar 18th, 2020 at 5:44am
Print Post  
Thank you, that really helped, now I can build an empty project at least  Roll Eyes

But I still cannot build a real project: when I add an "user installed lib" from the menu, it gets compiled (I can see it in the build-log), but the #include <U8g2lib.h> can't be located.

I can probably put somewhere the path to the system-wide libs/headers, but please:
1. Where?
2. Why? When I already added the lib and it compiled and even put two of #include-s into my source-file: why oh why can't it set that path itself???

It's pretty strange there is NO smooth working IDE for Arduino - I've tried CLion, VisualCode + different plugins, PlatformIO etc. etc. - everywhere problems and mess.

The only coming close option for "normal" development experience as I'm used from front/backend programming, would be your VisualMicro extension Cheesy. Unfortunately, installing it fresh and trying to compile doesn't work  Undecided. So I hope you can fix-it somehow Huh

Thank you!
« Last Edit: Mar 18th, 2020 at 5:44am by Grilmaster »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: BUG: Fresh install of everything, build fails
Reply #5 - Mar 18th, 2020 at 9:34am
Print Post  
To help us investigate further, can you attach the build output please, as shown in the yellow box at the top of the page?

  
Back to top
 
IP Logged
 
Grilmaster
Newbies
*
Offline


Posts: 7
Joined: Mar 17th, 2020
Re: BUG: Fresh install of everything, build fails
Reply #6 - Mar 18th, 2020 at 10:02am
Print Post  
Here is the log, thank you
  

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


Posts: 2145
Joined: Feb 13th, 2019
Re: BUG: Fresh install of everything, build fails
Reply #7 - Mar 18th, 2020 at 10:29am
Print Post  
Thanks for the logs, would it be possible to send the updated INO file so we can replicate?

When adding libraries manually they can put into the search path for the project (see Search Path for User Libraries on this Page).  Installing them through the Manage Libraries tab of the Visual Micro Explorer also does this, and can be searched to easily locate and install the library needed.

  
Back to top
 
IP Logged
 
Grilmaster
Newbies
*
Offline


Posts: 7
Joined: Mar 17th, 2020
Re: BUG: Fresh install of everything, build fails
Reply #8 - Mar 18th, 2020 at 10:38am
Print Post  
See the attached solution please
  

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


Posts: 2145
Joined: Feb 13th, 2019
Re: BUG: Fresh install of everything, build fails
Reply #9 - Mar 18th, 2020 at 11:14am
Print Post  
Thanks for the code, and while we investigate the root cause further, a workaround is to remove the inline comments from the u8g2 instantiation:-

Was:
Code
Select All
U8G2_PCD8544_84X48_F_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 7, /* data=*/ 6, /* cs=*/ 3, /* dc=*/ 5, /* reset=*/ 4);  // Nokia 5110 Display 



Try:
Code
Select All
U8G2_PCD8544_84X48_F_4W_SW_SPI u8g2(U8G2_R0, 7,  6, 3, 5, 4);  // Nokia 5110 Display 



Again this is related to the prototype generation, and this can be disabled by:-
1) Right Click Project > Add > Local Board.txt
2) Add the below Line to the file, save and re-compile.
Code
Select All
vm.ctags=false 



We will update when there is a resolution to this, and let us know if you encounter any further issues.
« Last Edit: Mar 18th, 2020 at 11:56am by Simon@Visual Micro »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: BUG: Fresh install of everything, build fails
Reply #10 - Mar 18th, 2020 at 1:43pm
Print Post  
Off-Topic replies have been moved to this Topic.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: BUG: Fresh install of everything, build fails
Reply #11 - Mar 22nd, 2020 at 12:23am
Print Post  
This is resolved in 20.03.21

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

Thanks for the report



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