more robust, e.g. for "isabelle build_doc system";
--- a/src/Pure/Thy/sessions.scala Wed Nov 18 08:10:40 2020 +0100
+++ b/src/Pure/Thy/sessions.scala Wed Nov 18 13:14:01 2020 +0100
@@ -254,7 +254,11 @@
info.document_theories.flatMap(
{
case (thy, pos) =>
- val parent_sessions = sessions_structure.build_requirements(List(session_name))
+ val parent_sessions =
+ if (sessions_structure.build_graph.defined(session_name)) {
+ sessions_structure.build_requirements(List(session_name))
+ }
+ else Nil
def err(msg: String): Option[String] =
Some(msg + " " + quote(thy) + Position.here(pos))