observer proper session hierarchy (according to build_graph): thus exported artifacts are always valid;
authorwenzelm
Fri, 05 Nov 2021 19:53:35 +0100
changeset 74703 9d7f95c43584
parent 74702 531bb10a288c
child 74704 dff89ef81c21
observer proper session hierarchy (according to build_graph): thus exported artifacts are always valid;
src/Pure/Thy/presentation.scala
--- a/src/Pure/Thy/presentation.scala	Fri Nov 05 19:15:18 2021 +0100
+++ b/src/Pure/Thy/presentation.scala	Fri Nov 05 19:53:35 2021 +0100
@@ -389,6 +389,7 @@
     elements: Elements,
     presentation: Context): Unit =
   {
+    val hierarchy = deps.sessions_structure.hierarchy(session)
     val info = deps.sessions_structure(session)
     val options = info.options
     val base = deps(session)
@@ -438,16 +439,9 @@
           else {
             html_context.cache_theory(thy_name,
               {
-                val qualifier = deps(session).theory_qualifier(thy_name)
                 val provider =
-                  Export.Provider.database_context(db_context, List(qualifier), thy_name)
-                if (Export_Theory.read_theory_parents(provider, thy_name).isDefined) {
-                  Export_Theory.read_theory(provider, qualifier, thy_name)
-                }
-                else {
-                  progress.echo_warning("No theory exports for " + quote(thy_name))
-                  Export_Theory.no_theory
-                }
+                  Export.Provider.database_context(db_context, hierarchy, thy_name)
+                Export_Theory.read_theory(provider, session, thy_name)
               })
         }
         thy_name -> theory