2008 Renegade 800 won’t idle

I have a 2008 can am renegade 800, bought second hand that has given me issues since I bought it. Originally It was having battery issues when I was driving & would shut off and turn back on. I brought it to a mechanic because it had no compression, changed the pistons & rings, compression is good, & since then it hasn’t been able to idle. I brought it into the dealership for them to diagnose it because I couldn’t figure it out. I replaced the battery, voltage regulator, & stator. Checked all the electrical. I went through 2 voltage regulators, & the dealership said when they put theirs on it doesn’t blow. I’m not getting any power from my stator to my battery so it’s not charging my battery but even then it should idle until my battery dies I though. They put a new ECU on & it still didn’t change anything. I am paying the dealership hundreds now & they still can’t tell me what’s wrong unless I "authorize more time " was just wondering if anyone had any suggestions. I have only used it 3 times & it’s been broken since I bought it now.