C# C# Basics (Retired) Perform if / else

Matthew Keys
Matthew Keys
1,922 Points

Unhandled Exception when saying quit

When typing quit i get the following error:

{
// This build system will build your cs file to exe file and will run it "cmd": ["del ${file/\.cs/\.exe/} 2>NUL", "& csc /nologo /out:${file/\.cs/\.exe/} $file", "& ${file/\.cs/\.exe/}"], "file_regex": "^(...?)[(]([0-9]*),([0-9])[)]", // By default csc is not in your PATH, so add it to your path // or uncomment "path" and check that it has correct value //"path": "C:/Windows/Microsoft.NET/Framework64/v4.0.30319/", "shell": true, // Without this sublime has hard times to parse "&" in out command line "selector": "source.cs" }

2 Answers

Steven Parker
Steven Parker
173,904 Points

This error seems unrelated to your program.

It seems to be about the run-time system. Perhaps your program responded to "quit" just fine, but when it exited something else caused this error.

Perhaps you had something on the command line you used to start the program that was not interpreted until after it completed?

Matthew Keys
Matthew Keys
1,922 Points

I figured it out, thanks for the response though.

I ran into this issue after compiling and executing the code without saving the latest changes. Leaving this comment for others as a reminder.

Steven Parker
Steven Parker
173,904 Points

I know folks often forget to save in the workspace. I didn't know there was a similar issue using Sublime.