kevmoens / Ellabit

The interactive C# coding app to learn/practice coding.
MIT License
55 stars 21 forks source link

User creates code that produces an infinite loop #25

Open kevmoens opened 1 year ago

kevmoens commented 1 year ago

When a user creates code that produces an infinite loop the app crashes or hangs forever.
Find a way to handle this gracefully. Could use SyntaxTree to put counters in loops and we could check for the count to see if we can throw an error.

wolf-361 commented 1 year ago

You could execute the user code with a time limit, I think it will be simpler

kevmoens commented 1 year ago

Give it a shot.

DerrickSims commented 1 year ago

is this issue still up for grabs?

kevmoens commented 1 year ago

YesSent from my iPhoneOn Dec 12, 2022, at 8:54 PM, DerrickSims @.***> wrote: is this issue still up for grabs?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

DerrickSims commented 1 year ago

alright then, I'll be working on it this week to try and come up with a solution

kevmoens commented 1 year ago

Awesome I’m excited to see your solution.Sent from my iPhoneOn Dec 12, 2022, at 9:15 PM, DerrickSims @.***> wrote: alright then, I'll be working on it this week to try and come up with a solution

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>