@@ -46,6 +46,13 @@ function check_varrefs(env, m=nothing)
4646 for x in values (m. vals)
4747 if x isa SymbolServer. VarRef && x. parent != = nothing
4848 x0 = SymbolServer. _lookup (x. parent, env, true )
49+
50+ if x0 === nothing && x. parent != = nothing && x. parent. name === :Pidfile
51+ # these are dynamically put into Base when loading FileWatching, so we
52+ # don't need to error out when not finding them from the root env
53+ continue
54+ end
55+
4956 @test x0 != = nothing
5057 @test x0 != = m
5158 elseif x isa SymbolServer. ModuleStore
9097 end
9198
9299 mktempdir () do path
93- cp (joinpath (@__DIR__ , " testenv" , " Project.toml" ), joinpath (path, " Project.toml" ))
94- cp (joinpath (@__DIR__ , " testenv" , " Manifest.toml" ), joinpath (path, " Manifest.toml" ))
100+ cp (joinpath (@__DIR__ , " testenv" ), path; force= true )
95101
96102 store_path = joinpath (path, " store" )
97103 mkpath (store_path)
98104
99105 jl_cmd = joinpath (Sys. BINDIR, Base. julia_exename ())
100- run (` $jl_cmd --project=$path --startup-file=no -e 'using Pkg; Pkg.instantiate()'` )
106+ withenv (" JULIA_PKG_PRECOMPILE_AUTO" => 0 ) do
107+ run (` $jl_cmd --project=$path --startup-file=no -e 'using Pkg; Pkg.instantiate()'` )
108+ end
101109
102110 ssi = SymbolServerInstance (" " , store_path)
103111
108116 end
109117
110118 # We sleep for a second here to make sure the async task we started
111- # previously gets run first
119+ # previously gets started first
112120 sleep (1 )
113121
122+ # this will cancel the previous getstore request
114123 ret_status2, store2 = getstore (ssi, path, download = false )
115124
116125 if ret_status2 == :failure
0 commit comments