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 Intellisense error when using megaTinyCore (Read 1851 times)
pwesty
Newbies
*
Offline


Posts: 4
Joined: Aug 20th, 2020
Intellisense error when using megaTinyCore
Aug 20th, 2020 at 3:17pm
Print Post  
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?
  

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


Posts: 2143
Joined: Feb 13th, 2019
Re: Intellisense error when using megaTinyCore
Reply #1 - Aug 21st, 2020 at 4:43pm
Print Post  
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: 2143
Joined: Feb 13th, 2019
Re: Intellisense error when using megaTinyCore
Reply #2 - Aug 26th, 2020 at 4:31pm
Print Post  
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: 4
Joined: Aug 20th, 2020
Re: Intellisense error when using megaTinyCore
Reply #3 - Aug 27th, 2020 at 5:06pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense error when using megaTinyCore
Reply #4 - Aug 27th, 2020 at 6:28pm
Print Post  
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
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense error when using megaTinyCore
Reply #5 - Aug 28th, 2020 at 8:55pm
Print Post  
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.
« Last Edit: Aug 28th, 2020 at 8:56pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
pwesty
Newbies
*
Offline


Posts: 4
Joined: Aug 20th, 2020
Re: Intellisense error when using megaTinyCore
Reply #6 - Aug 28th, 2020 at 9:20pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense error when using megaTinyCore
Reply #7 - Aug 29th, 2020 at 12:32pm
Print Post  
Good, thanks again.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint