Gradescope can sometimes not provide useful compilation messages when it fails to execute. Here are some things to check, which came up a lot in previous semesters.
Note: You are responsible for ensuring your submission goes through before the deadline. We encourage everyone to submit early to avoid/resolve any issues. The TAs will do their best to respond to last minute compilation issues on Piazza, but cannot make any promises.
The autograder failed to execute correctly. Please ensure that your submission is valid. Contact your course staff for help in debugging this issue. Make sure to include a link to this page so that they can help you most effectively.
Getting this message upon submission? Please check the following before posting on Piazza or going to office hours for help:
Did you submit ALL the required files listed at the “Files to Submit”
section of the assignment? This includes checking that you submitted
files and not
.class files. Please do not submit extra files.
Check the files you submitted to Gradescope. Do the names of the files appear
folder/filename.java? If so, please drag the files individually so that
they appear only as
filename.java. Do not submit a zip of files contained
inside a folder.
Are you in the default package? That means checking the top of all files to
make sure there is no statement like
package src;. Remove all these
statements and resubmit.
Are you getting a Jacoco Error? This means you are failing one of your own test cases, or one of your test cases is running in an infinite loop. Try fixing the test case you are failing, and if you can’t fix it by the deadline then just remove it and resubmit.
Do you have print statements? Make sure to delete these before submitting, especially if they are inside of a loop.
Did you accidentally modify any of our class or method headers? Undo those changes and resubmit.
Do your files compile locally? Files that don’t compile locally will most definitely not compile on Gradescope. Worth double-checking :)
Tried all the above and nothing worked? Please post your submission URL on Piazza as a private post, and a TA will get back to you. Alternatively, you can come to office hours for help.
Please post your submission URL on Piazza as a private post, and a TA will get back to you. This is most likely due to one of two reasons:
You had an infinite loop somewhere in your code which caused the autograder to time out.
You had an infinite loop somewhere in your code that caused you to use up too much memory (more common).
In both of these cases, you will be allowed to submit a regrade request without a 20% penalty, since this is an issue with Gradescope (your code has a bug, but not deserving of a 0). A TA will then run your code locally and update your grade accordingly.
Sometimes, the issue is not caused by Gradescope. In this case, if it is a 1-2 line fix, you can follow the usual regrade request policy, and a 20% penalty will be applied.
.javafiles, but the deadline has passed
Unfortunately, we have no way of grading your assignment as one cannot go from
.class -> .java. Showing timestamps of last modified files on your computer
will not work either as those can be easily manipulated. If you find yourself
in a more particular situation (e.g., you submitted all files normally but
accidentally submitted one
.class file), please reach out to the Head TAs.
This means that your test case took too long to run. Sometimes, this can mean
your code is inefficient or got stuck in an infinite loop. Other times, it can
be caused by an issue with Gradescope being unable to handle running 200+
student submissions at once. You can come to Office Hours and a TA will re-run
your test suite on Gradescope. If the
TestTimedOutException still does not go
away, then there is an issue with your code.
Gradescope, like most other websites, occasionally goes down for maintenance or system updates. During this time, you will see a message on their home page. Please wait a couple minutes (or however long it says to wait), and try again.
If the issue persists and is preventing you from submitting by the deadline, please alert the course staff by posting to Piazza. We will extend the homework deadline if necessary.