@@ -1162,7 +1162,7 @@ with
raise (Completion c)
| _ ->
error ctx ("Could not load module " ^ (Ast.s_type_path (p,c))) Ast.null_pos)
- | e when (try Sys.getenv "OCAMLRUNPARAM" <> "b" with _ -> true) ->
+ | e when (try Sys.getenv "OCAMLRUNPARAM" <> "b" || !global_cache <> None with _ -> true) ->
error ctx (Printexc.to_string e) Ast.null_pos
;;