Editor not allowing tests to run after code is commented out

When I comment out some of the code in the online editor and try to run the tests it says “Error: No files you submitted have changed since your last submission.”
The code hasn’t even passed all the tests yet for me to be able to submit it, so the error makes even less sense.
It seems to only happen if I comment out code, but not un-comment or otherwise edit the code.

Are you sure you didn’t already run the tests after making that edit? The run button is greyed out if there are no changes since the tests were last run. Commenting out code would be a change just like uncommenting code. As far as I know, there’s no special handling of comments outside of syntax highlighting.

1 Like

Huh. For me, the button wasn’t grayed out because I commented out two lines, but when I went to run the code it gave me that error displayed left of the button.

What error did you get?

If you change the code again, can you rerun the tests?

I already fixed the actual error in my code, this is about the online editor showing “Error: No files you submitted have changed since your last submission” to the left of the “Run Tests” button. The tests didn’t even get to run.