VS Arduino
Visual Micro >> Installation & Troubleshooting >> Intellisense error when using megaTinyCore
https://www.visualmicro.com/forums/YaBB.pl?num=1597936651

Message started by pwesty on Aug 20th, 2020 at 3:17pm

Title: Intellisense error when using megaTinyCore
Post by pwesty on Aug 20th, 2020 at 3: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?
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=_Checkout_latest_AVR_MCUs_vsarduino.h ( 2 KB | 3 Downloads )
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=ATTiny1604_build_output.txt ( 77 KB | 6 Downloads )

Title: Re: Intellisense error when using megaTinyCore
Post by Simon Hopkinson on Aug 21st, 2020 at 4:43pm
Thanks for the report. We have replicated the issue and will let you know when a fix is available.

Title: Re: Intellisense error when using megaTinyCore
Post by Simon Hopkinson on Aug 26th, 2020 at 4: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.

Title: Re: Intellisense error when using megaTinyCore
Post by pwesty on Aug 27th, 2020 at 5: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.

Title: Re: Intellisense error when using megaTinyCore
Post by Visual Micro on Aug 27th, 2020 at 6: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

Title: Re: Intellisense error when using megaTinyCore
Post by Visual Micro on Aug 28th, 2020 at 8: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.

Title: Re: Intellisense error when using megaTinyCore
Post by pwesty on Aug 28th, 2020 at 9: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!

Title: Re: Intellisense error when using megaTinyCore
Post by Visual Micro on Aug 29th, 2020 at 12:32pm
Good, thanks again.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.