equal
deleted
inserted
replaced
200 val import_names = |
200 val import_names = |
201 theories.map(thy => |
201 theories.map(thy => |
202 resources.import_name(qualifier, master_directory(master_dir), thy) -> Position.none) |
202 resources.import_name(qualifier, master_directory(master_dir), thy) -> Position.none) |
203 resources.dependencies(import_names, progress = progress).check_errors.theories |
203 resources.dependencies(import_names, progress = progress).check_errors.theories |
204 } |
204 } |
205 val dep_theories_set = dep_theories.toSet |
|
206 |
205 |
207 val use_theories_state = Synchronized(Use_Theories_State()) |
206 val use_theories_state = Synchronized(Use_Theories_State()) |
208 |
207 |
209 def check_result(beyond_limit: Boolean = false) |
208 def check_result(beyond_limit: Boolean = false) |
210 { |
209 { |
240 val delay_commit_clean = |
239 val delay_commit_clean = |
241 Standard_Thread.delay_first(commit_clean_delay max Time.zero) { |
240 Standard_Thread.delay_first(commit_clean_delay max Time.zero) { |
242 val clean = use_theories_state.value.already_committed.keySet |
241 val clean = use_theories_state.value.already_committed.keySet |
243 resources.clean_theories(session, id, clean) |
242 resources.clean_theories(session, id, clean) |
244 } |
243 } |
|
244 |
|
245 val dep_theories_set = dep_theories.toSet |
245 |
246 |
246 Session.Consumer[Session.Commands_Changed](getClass.getName) { |
247 Session.Consumer[Session.Commands_Changed](getClass.getName) { |
247 case changed => |
248 case changed => |
248 if (changed.nodes.exists(dep_theories_set)) { |
249 if (changed.nodes.exists(dep_theories_set)) { |
249 val snapshot = session.snapshot() |
250 val snapshot = session.snapshot() |