Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMatthew Keys
1,922 PointsUnhandled 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
231,269 PointsThis 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?
Young Kim
Courses Plus Student 416 PointsI 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
231,269 PointsI know folks often forget to save in the workspace. I didn't know there was a similar issue using Sublime.
Matthew Keys
1,922 PointsMatthew Keys
1,922 PointsI figured it out, thanks for the response though.
Steven Parker
231,269 PointsSteven Parker
231,269 PointsSo was that it?