Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminal breaks when something is typed that extends beyond the terminal window #3100

Open
sug44 opened this issue Feb 23, 2024 · 0 comments
Milestone

Comments

@sug44
Copy link

sug44 commented Feb 23, 2024

This line typed in the terminal would throw argument out of range exception and break kos until a scene change:

(anything that when typed would extend beyond terminal window)

Also this line:

{ // any braket (could be a function, if statement etc.)
  (anything that when typed would extend beyond terminal window)
}

It wouldn't break if typed like this:

1.(new line) // any charachter followed by a new line charachter 
{ // any braket (could be a function, if statement etc.)`
  (anything that when typed would extend beyond terminal window)
}(new line)

Exception:

[EXC 18:41:22.857] ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
	System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <9577ac7a62ef43179789031239ba8798>:0)
	System.Collections.Generic.List`1[T].InsertRange (System.Int32 index, System.Collections.Generic.IEnumerable`1[T] collection) (at <9577ac7a62ef43179789031239ba8798>:0)
	kOS.Safe.Screen.ScreenBuffer.GetBuffer () (at <44fd6c0ba1d84aeaa0b357d09ee83648>:0)
	kOS.Safe.Screen.ScreenSnapShot..ctor (kOS.Safe.Screen.IScreenBuffer fromScreen) (at <44fd6c0ba1d84aeaa0b357d09ee83648>:0)
	kOS.Screen.TermWindow.GetNewestBuffer () (at <9fa997c5aa004eb39812ee63ed646e12>:0)
	kOS.Screen.TermWindow.Update () (at <9fa997c5aa004eb39812ee63ed646e12>:0)
	UnityEngine.DebugLogHandler:LogException(Exception, Object)
	ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
	UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)
@JonnyOThan JonnyOThan added this to the 1.5.0.0 milestone Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants