New to Arduino: error: buffered memory access not suppported

Hi, im using an Arduino Leonardo with a trellis board, getting this error when i try uploading code. The code im using is from this tutorial

Binary sketch size: 7,352 bytes (of a 28,672 byte maximum) Found programmer: Id = "B×u"; type = Software Version = . ; Hardware Version= . avrdude: error: buffered memory access not supported. Maybe it isn'ta butterfly/AVR109 but a AVR910 device?

Not sure what this means, is there a way that i can shorten this sketch to be able to upload?