Section explaining common error messages and fixes?
-
Hi!
Sometimes I find that the error messages are very cryptic (for example, 'unrecognized type: 4'), and don't actually tell the user what's gone wrong, or what can be done to fix it.
I know that it would be impossible to create an exhaustive list of bugs and fixes, because there are so many ways that a person could create a bug!
It would still be useful if there was a section explaining:
- What each error message means,
- The common reasons for the error,
- The way to fix these common problems.
For instance, if you write this:
1 square = [ 2 .x = 1, 3 .y = 2 4 .width = 3, 5 .height = 4 6 ] 7 8 coords = {80, 10}
... you get the error:
LINE: 8 FUNCTION: N/A Invalid variable access. (Object must be a struct, vector or sprite)
What's happened here is that the programmer forgot to put a comma at the end of line 3. However, the error message doesn't explain that this is the problem, and confuses the programmer even more by saying that the error occurs on line 8!
I worked out how to fix this error after encountering it lots of times and using trial and error, but it would be nice if there was a file containing a common list of errors, what has gone wrong, and how to fix it (e.g. in the 'Help' section).
-
Yes I agree this would be very useful. I will look into it