ComputerCraft Forums

ComputerCraft => Programs => APIs and Utilities => Topic started by: SquidDev on Aug 19, 2018, 05:52 pm

Title: ErrorFix - avoid those pesky nils!
Post by: SquidDev on Aug 19, 2018, 05:52 pm
Are you fed up of irritating "attempt to index nil" errors? Have you lost all motivation after seeing just another "attempt to perform arithmetic on a nil value"? Well, we have a solution:

ErrorFixFixes errors, so you don't have to
ErrorFix utilises the latest advances in language development in order to detect when nil-related errors occur and magically resolve them.

To get started, simply run wget https://raw.githubusercontent.com/SquidDev-CC/random-programs/master/error-fix.lua startup/10-errorfix.lua in your CraftOS shell. After that, enjoy your nil-related-error* free experience!

Changelog

*Note, this does not imply bug-free experience. I am not responsible for any damage this may cause, though happily take responsibility for loss of sanity.
Title: ErrorFix - avoid those pesky nils!
Post by: osmarks on Aug 22, 2018, 12:46 pm
Wonderful. My debugging is going to get much easier now that there are no errors!