Closed LottaMe closed 5 months ago
Not looking for file modification after it has already been modified. It does go to the next exercise if file is checked for # I AM NOT DONE comment.
In runner these lines
try:
filechangehandler.process.start()
filechangehandler.process.join()
Finish when the process is terminated by on_modified. It doesn’t matter if result is successful or not, it treats the exercise as completed. The reason it is not continuing, is because of these lines in exercise.run method:
while self.check_wait():
time.sleep(1)
continue
Now, it is continuously checking check_wait. We have two possibilities here:
Just copying the while loop from exercise does not really work, because: <bound method Exercise.check_wait of <exercise.Exercise object at 0x103438160>>
Maybe we can return check_wait from the process and restart it if check_wait is True?
Loop iteration is ending before the on modified is joined…
When is the process finished???
Keep opening new processes, then close and join all of them in the end (--> how many can this support??
Current Problem: Reacts to first on_modified If result is successful, you can remove the I am done comment If result again fails, modifying doesn’t work If you save again without removing I am done comment it doesn’t re-execute, but you can still remove I am done comment to continue