Fixed bug that occured when pausing during early startup.

This commit is contained in:
Andrew Hamilton 2016-01-27 17:23:12 +00:00
parent bc5296ad0d
commit 95070853ac
2 changed files with 2 additions and 3 deletions

2
BUGS
View file

@ -1,7 +1,6 @@
Current Current
- Scrolling in the help screen doesn't work with the arrow keys. - Scrolling in the help screen doesn't work with the arrow keys.
- Within the sandbox sudo is not working for tools. - Within the sandbox sudo is not working for tools.
- Tracebacks occur if you pause during early startup.
Current (tool related) Current (tool related)
@ -210,6 +209,7 @@ Fixed
the project directory is failing. the project directory is failing.
- Some jobs are always recalculated when restarting vigil. - Some jobs are always recalculated when restarting vigil.
e.g. vigil.py pylint, BUGS metadata, BUGS _pygments e.g. vigil.py pylint, BUGS metadata, BUGS _pygments
- Tracebacks occur if you pause during early startup.
Won't fix Won't fix

3
vigil
View file

@ -922,7 +922,7 @@ def main(root_path, is_being_tested=False):
appearance_changed_event.set() appearance_changed_event.set()
watch_manager_fd = add_watch_manager_to_mainloop( watch_manager_fd = add_watch_manager_to_mainloop(
root_path, loop, on_filesystem_change, is_path_excluded) root_path, loop, on_filesystem_change, is_path_excluded)
runners = [] screen.runners = runners = []
sandbox_temp_dir = tempfile.mkdtemp() sandbox_temp_dir = tempfile.mkdtemp()
sandbox = sandbox_fs.SandboxFs(sandbox_temp_dir) sandbox = sandbox_fs.SandboxFs(sandbox_temp_dir)
@ -934,7 +934,6 @@ def main(root_path, is_being_tested=False):
worker_total = multiprocessing.cpu_count() * 2 worker_total = multiprocessing.cpu_count() * 2
for index in range(worker_total): for index in range(worker_total):
runners.append(Runner(sandbox, screen._is_paused, is_being_tested)) runners.append(Runner(sandbox, screen._is_paused, is_being_tested))
screen.runners = runners
log.log_message("Workers started. (%s)" % worker_total) log.log_message("Workers started. (%s)" % worker_total)
for runner in runners: for runner in runners:
args = (summary, log, jobs_added_event, appearance_changed_event) args = (summary, log, jobs_added_event, appearance_changed_event)