To Our Amazing Educators Everywhere,
Happy Teacher Appreciation Week!
Found this content helpful? Log in or sign up to leave a like!
The attached picture is from my speed grader view. The file being viewed is a C++ program text file that was submitted. The file downloads and views fine in a regular editor (plus it compiles and runs). Over the last 8-9 years of using Canvas with C++ files, I have never seen this event happening. I am just curious if anyone else has ever noticed this effect? If so, any ideas on what caused it? I will get in touch with the student and see what editor they used.
the picture is cropped, but from the first line of the file to the point where the single line cross out starts is all header comments. The crossed out part then continues all the way to the end of the program
Thanks,
Ron
Solved! Go to Solution.
I have had this happen to me due to a single quote. When the reader hits a single quote it goes into strikeout mode. It has happened to me when I have students submit sql files and they copy the questions over from a word doc. I do not have this issue in my c++ classes or python classes even though they also have single quotes nor are there issues on with a single quote in sql that was written within the editor - only those copied over, so I think it must be a smart quote.
Now if I can just figure out why the latest version of canvas (2/14) won't allow me to make annotations to cpp, sql or py files - which is why I am here :).
I have had this happen to me due to a single quote. When the reader hits a single quote it goes into strikeout mode. It has happened to me when I have students submit sql files and they copy the questions over from a word doc. I do not have this issue in my c++ classes or python classes even though they also have single quotes nor are there issues on with a single quote in sql that was written within the editor - only those copied over, so I think it must be a smart quote.
Now if I can just figure out why the latest version of canvas (2/14) won't allow me to make annotations to cpp, sql or py files - which is why I am here :).
Thanks for the information. That looks like it will be the problem with that file. and it may actually be a 2 character combination causing it. the student had *'s where the issue started. I would check it out with my dummy student, but for some reason after I posted my question, speed grader is no longer showing me the preview of .cpp files. Off to solve another issue.
edit: Thanks for the help @TrischPrice . I looked at what the student had in their comments and it was a list of the instructions for my project that they copied from a pdf file into their source code file. I know that single and double quotes do not copy over correctly and will cause compile errors. In this case what looks like a single quote is not a single quote and it is not the execute single quote - it is some other asci character. I looked at the file in vim and it had <92> where the single quote should be. that is some special quote mark and so that must be interpreted to go into strikeout mode on the rendering in speed grader.
So once again, I need to tell students that copying from a pdf file into the editors results in bad copies of single quotes, double quotes and hypens.
Ron.
To participate in the Instructure Community, you need to sign up or log in:
Sign In