testmycode / tmc-intellij

*BETA* TestMyCode plugin for IntelliJ IDEA
MIT License
24 stars 13 forks source link

Use full course name in CourseAndExerciseManager.isCourseInDatabase, not the Course Title. #143

Open rlmhermans opened 6 years ago

rlmhermans commented 6 years ago

When I'm in the teacher role for a certain course with Advanced Unlock Conditions set, the TMC plugin behaves unexpectedly. I can log in just fine, and the plugin shows the full exercise download list, although I can see the exercises of week 8 onwards are locked. They do not actually download, and when I open the first exercise I get an empty exercise list, and the upload exercise command does not work.

When I'm in the same course on a different account without the teacher role, it works as expected.

rlmhermans commented 6 years ago

I removed the unlock conditions and the problem persists. Additionally, I am also the course creator.

rlmhermans commented 6 years ago

Solved: the course title was the exact same course title as the one I used last year. I submitted exercises for that on the account I am using. There probably was a conflict because of this for the plugin. I suggest using the full course name in fi.helsinki.cs.tmc.intellij.services.exercises.CourseAndExerciseManager.isCourseInDatabase.