From af74cc6aaa620236fa4c73e4d5c85ccffc0e590a Mon Sep 17 00:00:00 2001 From: Anant Thazhemadam Date: Thu, 28 Sep 2023 15:04:24 +0530 Subject: [PATCH] fix: add check for `nothing` as manifest file in active_project_watcher Since `manifest_file()` can return `nothing` as well, add a check/guard for when it's `nothing` in `active_project_watcher`. --- src/pkgs.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkgs.jl b/src/pkgs.jl index 14587f2a..3b52ddc3 100644 --- a/src/pkgs.jl +++ b/src/pkgs.jl @@ -493,7 +493,7 @@ end function active_project_watcher() mfile = manifest_file() - if mfile ∉ watched_manifests + if !isnothing(mfile) && mfile ∉ watched_manifests push!(watched_manifests, mfile) wmthunk = TaskThunk(watch_manifest, (mfile,)) schedule(Task(wmthunk))