@@ -3,10 +3,13 @@ module SymbolServer
3
3
export SymbolServerInstance, getstore
4
4
5
5
using Pkg, SHA
6
- using Pkg. Registry: PkgEntry
7
6
using Base: UUID, Process
8
7
import Sockets, UUIDs
9
8
9
+ @static if VERSION >= v " 1.7-"
10
+ using Pkg. Registry: PkgEntry
11
+ end
12
+
10
13
# this is required to get parsedocs to work on Julia 1.11 and newer, since the implementation
11
14
# moved there
12
15
using REPL
@@ -38,7 +41,7 @@ const GENERAL_REGISTRY_UUID = UUID("23338594-aafe-5451-b93e-139f81909106")
38
41
function get_general_pkgs ()
39
42
dp_before = copy (Base. DEPOT_PATH )
40
43
try
41
- # because the env var JULIA_DEPOT_PATH is overritten this is probably the best
44
+ # because the env var JULIA_DEPOT_PATH is overwritten this is probably the best
42
45
# guess depot location
43
46
push! (empty! (Base. DEPOT_PATH ), joinpath (homedir (), " .julia" ))
44
47
@static if VERSION >= v " 1.7-"
@@ -52,7 +55,7 @@ function get_general_pkgs()
52
55
reg = Pkg. Types. read_registry (joinpath (r. path, " Registry.toml" ))
53
56
return reg[" packages" ]
54
57
end
55
- return Dict {UUID, PkgEntry } ()
58
+ return Dict {String, Any } ()
56
59
end
57
60
finally
58
61
append! (empty! (Base. DEPOT_PATH ), dp_before)
0 commit comments