From 3e5107bb9074116b543074dba07be7ca36ec5af1 Mon Sep 17 00:00:00 2001 From: Graham Nelson Date: Mon, 12 Apr 2021 22:30:39 +0100 Subject: [PATCH] Fixed bug making pipelines and languages invisible in Materials folder --- inbuild/supervisor-module/Chapter 4/Pipeline Manager.w | 1 + inbuild/supervisor-module/Chapter 5/Project Services.w | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/inbuild/supervisor-module/Chapter 4/Pipeline Manager.w b/inbuild/supervisor-module/Chapter 4/Pipeline Manager.w index 63b21a2aa..961b63171 100644 --- a/inbuild/supervisor-module/Chapter 4/Pipeline Manager.w +++ b/inbuild/supervisor-module/Chapter 4/Pipeline Manager.w @@ -86,6 +86,7 @@ void PipelineManager::search_nest_for(inbuild_genre *gen, inbuild_nest *N, inbuild_requirement *req, linked_list *search_results) { if ((req->work->genre) && (req->work->genre != pipeline_genre)) return; pathname *P = PipelineManager::path_within_nest(N); +LOG("Looking in %p\n", P); scan_directory *D = Directories::open(P); if (D) { TEMPORARY_TEXT(LEAFNAME) diff --git a/inbuild/supervisor-module/Chapter 5/Project Services.w b/inbuild/supervisor-module/Chapter 5/Project Services.w index ca926527f..d2c88c03e 100644 --- a/inbuild/supervisor-module/Chapter 5/Project Services.w +++ b/inbuild/supervisor-module/Chapter 5/Project Services.w @@ -61,8 +61,9 @@ void Projects::scan(inbuild_copy *C) { else M = Projects::materialise_pathname( P, Filenames::get_leafname(proj->as_copy->location_if_file)); - proj->materials_nest = Nests::new(M); - Nests::set_tag(proj->materials_nest, MATERIALS_NEST_TAG); + proj->materials_nest = Supervisor::add_nest(M, MATERIALS_NEST_TAG); +// proj->materials_nest = Nests::new(M); +// Nests::set_tag(proj->materials_nest, MATERIALS_NEST_TAG); proj->search_list = NEW_LINKED_LIST(inbuild_nest); proj->primary_source = NULL; proj->extensions_included = NEW_LINKED_LIST(inform_extension);