Compiler error: Argument Out Of Range Exception
- Dominant language
- C#
- Stars
- 4.9k
- Forks
- 540
- PR merge metrics
- No merged PRs in 30d
Description
While I admit I'm still trying to get used to this language and system, I can't seem to isolate where the problem is in this program, here's the diagnostic info from the crash:
`Sorry, the ink compiler crashed ☹
Here is some diagnostic information:
Unhandled Exception:
Ink compiler had an unexpected error ☹
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.Collections.Generic.List`1.get_Item(Int32 index)
at Ink.Parsed.FunctionCall.GenerateIntoContainer(Container container)
at Ink.Parsed.BinaryExpression.GenerateIntoContainer(Container container)
at Ink.Parsed.BinaryExpression.GenerateIntoContainer(Container container)
at Ink.Parsed.BinaryExpression.GenerateIntoContainer(Container container)
at Ink.Parsed.BinaryExpression.GenerateIntoContainer(Container container)
at Ink.Parsed.Expression.GenerateRuntimeObject()
at Ink.Parsed.Object.get_runtimeObject()
at Ink.Parsed.VariableAssignment.GenerateRuntimeObject()
at Ink.Parsed.Object.get_runtimeObject()
at Ink.Parsed.ContentList.GenerateRuntimeObject()
at Ink.Parsed.Object.get_runtimeObject()
at Ink.Parsed.Weave.GenerateRuntimeObject()
at Ink.Parsed.Object.get_runtimeObject()
at Ink.Parsed.FlowBase.GenerateRuntimeObject()
at Ink.Parsed.Object.get_runtimeObject()
at Ink.Parsed.FlowBase.GenerateRuntimeObject()
at Ink.Parsed.Object.get_runtimeObject()
at Ink.Parsed.Story.ExportRuntime(ErrorHandler errorHandler)
at Ink.Compiler.Compile()
at Ink.CommandLineTool..ctor(String[] args)
at Ink.CommandLineTool.Main(String[] args)`
[inky.txt](https://github.com/inkle/ink/files/2806720/inky.txt)
this text file contains all the code of the game I was working on
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.