Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • 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
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Intellisense error when using megaTinyCore (Read 272 times)
pwesty
Newbies
*
Offline



Posts: 3
Intellisense error when using megaTinyCore
Aug 20th, 2020 at 4:17pm
 
Intellisense does not work when I select any board provided by Spence Konde's megaTinyCore (e.g. ATtiny1614/1604...).  As soon as I select the board I get the errror message :

E0992      command-line error: invalid macro definition: __MEGAAVR_attiny{build.attiny}__

The project compiles and uploads fine, as it does in the Arduino IDE.  Boards selected from the earlier ATtinyCore (e.g. ATtiny24/44/84...) have no problems with Intellisense.  I have attached vsarduino.h which defines the offending macro near the top, and the build output for an empty project.
I am using VS 2019, vMicro 2020.708.7, megaTinyCore v2.0.5
Can you help please?
Back to top
 

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



Posts: 502
Re: Intellisense error when using megaTinyCore
Reply #1 - Aug 21st, 2020 at 5:43pm
 
Thanks for the report. We have replicated the issue and will let you know when a fix is available.
Back to top
 
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 502
Re: Intellisense error when using megaTinyCore
Reply #2 - Aug 26th, 2020 at 5:31pm
 
We have released a fix for this to the forum (20.07.08.10), which can be downloaded from the top of the board below:-

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

Let us know if you encounter any issues around this.
Back to top
 
 
IP Logged
 
pwesty
Newbies
*
Offline



Posts: 3
Re: Intellisense error when using megaTinyCore
Reply #3 - Aug 27th, 2020 at 6:06pm
 
The fix seems to have broken the paths used by #include, as none of the headers in the avr/ folder can be reached e.g. 'cannot open source file "avr/common.h"'.  Still no intellisense of course.
This occurs with new and old projects using megaTiny boards.
Projects using older attiny boards are still OK.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10893
United Kingdom
Re: Intellisense error when using megaTinyCore
Reply #4 - Aug 27th, 2020 at 7:28pm
 
Thanks for the update. It is working for us so it would be useful to have the build output with verbose + properties so we can replicate.

Thanks
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10893
United Kingdom
Re: Intellisense error when using megaTinyCore
Reply #5 - Aug 28th, 2020 at 9:55pm
 
Thanks for sending the information.

After all the confusion there were two additions needed for the megaavr core. The 1st gave you standard intellisense such as Serial. but as you said the underlying avr core was not available to intellisense.

This is now resolved in the latest forum release https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

Thanks for the report.
Back to top
« Last Edit: Aug 28th, 2020 at 9:56pm by Visual Micro »  

Tim Leek
home
WWW  
IP Logged
 
pwesty
Newbies
*
Offline



Posts: 3
Re: Intellisense error when using megaTinyCore
Reply #6 - Aug 28th, 2020 at 10:20pm
 
Excellent!
I now have Intellisense for my ATTiny 0/1 series chips.
Thankyou - I might even consider taking out a subscription to vMicro now!
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10893
United Kingdom
Re: Intellisense error when using megaTinyCore
Reply #7 - Aug 29th, 2020 at 1:32pm
 
Good, thanks again.
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print