kaelri / enigma

A featured "suite" for the Windows system monitoring application, Rainmeter.
https://www.kaelri.com/project/enigma/
272 stars 93 forks source link

Calendar: breaks on events file. #11

Closed kaelri closed 12 years ago

kaelri commented 12 years ago

This fix is available in the latest release.

Script: Calendar.lua:194: attempt to perform arithmetic on global 'iStartDay' (a nil value)

It appears that all users are affected.

6:25pm EDT: I think it's related to the call to Vars() on 122. The call on 120 does not fail. I have verified this with a successful print() message on 121.

6:33pm EDT: The event.day being passed on 122 may be invalid. print(event.day) gives me {FirstMon} in the log.

6:47pm EDT: The issue is definitely related to the event file system. Showing any month with a non-numeric day tag - e.g. {SecondMon} or {FourthThu} - fails. Disabling "Show Events" eliminates the error. We probably didn't notice this before releasing v4 because the last such event in the default calendar was in June.

(I'll update this post as I go.)