Our "favourite" eCompile errors.
Posted: Tue Apr 24, 2018 8:45 pm
This thread is intended for posting those cryptic or hard to understand eCompile errors. I invite everyone to post errors you have received from eCompile that just did not make sense or did not do a reasonable job of communicating the nature of the error. Please try to avoid posting duplicate errors. Hopefully this list can be used by the Core developers to improve eCompile's error reporting.
When posting your errors please do your best to explain in detail what caused this error, assuming you were able to correct it.
I will start us off with my favourite error:
This error is caused if you have two or more functions with the same name. The functions can either be in the same file, one in the src file and one in an include or in multiple include files.
When posting your errors please do your best to explain in detail what caused this error, assuming you were able to correct it.
I will start us off with my favourite error:
Code: Select all
EScript Compiler v1.13
Copyright (C) 1993-2018 Eric N. Swanson
Compiling: D:\GitHub\DistroDev\pkg\commands\test\target.src
Expected an identifier, got User Function TruncateArticle instead.
Near: function TruncateArticle(x)
File: D:/GitHub/DistroDev/pkg/commands/include/string.inc, Line 6
File: D:/GitHub/DistroDev/pkg/commands/include/string.inc, Line 6
Error reading function
File: D:/GitHub/DistroDev/pkg/commands/include/string.inc, Line 6
Compilation failed.
Execution aborted due to: Error compiling file
>Exit code: 1