Menu

#83 Spaces in C++ File Names Cause Suspended Assignments

open
5
2012-12-09
2011-03-11
No

Students that submit a C++ with spaces in the file name are suspended by the grader with an unhelpful error message. It seems that the file name is not being escaped when it is passed to perl. The grader should either provided a more useful error message telling the students to remove the spaces from the file names or handle the file names correctly (and possibly provide a warning about spaces in the file name).

Below are the error messages for the student and the instructor.

An internal error occured while the Grader was processing your submission. The administrator and your instructor have been notifed of the error. An e-mail message will be sent to you at noone@college.edu once the results for this submission are available.

An error occurred stderr output was produced by (1): BasicCppMainPlugin

Grading of this submission has been suspended.

1-stderr.txt

Argument "" isn't numeric in int at C:\www\tomcat5\webapps\Web-CAT\WEB-INF\Web-CAT.woa\Contents\Frameworks\Library\Frameworks\PerlForPlugins.framework\Resources\lib/Web_CAT/CLOC.pm line 126.
Argument "" isn't numeric in int at C:\www\tomcat5\webapps\Web-CAT\WEB-INF\Web-CAT.woa\Contents\Frameworks\Library\Frameworks\PerlForPlugins.framework\Resources\lib/Web_CAT/CLOC.pm line 126.
Argument "" isn't numeric in int at C:\www\tomcat5\webapps\Web-CAT\WEB-INF\Web-CAT.woa\Contents\Frameworks\Library\Frameworks\PerlForPlugins.framework\Resources\lib/Web_CAT/CLOC.pm line 126.
Argument "" isn't numeric in int at C:\www\tomcat5\webapps\Web-CAT\WEB-INF\Web-CAT.woa\Contents\Frameworks\Library\Frameworks\PerlForPlugins.framework\Resources\lib/Web_CAT/CLOC.pm line 126.
Argument "" isn't numeric in int at C:\www\tomcat5\webapps\Web-CAT\WEB-INF\Web-CAT.woa\Contents\Frameworks\Library\Frameworks\PerlForPlugins.framework\Resources\lib/Web_CAT/CLOC.pm line 126.
Argument "" isn't numeric in int at C:\www\tomcat5\webapps\Web-CAT\WEB-INF\Web-CAT.woa\Contents\Frameworks\Library\Frameworks\PerlForPlugins.framework\Resources\lib/Web_CAT/CLOC.pm line 126.

Discussion