Skip to content

Commit

Permalink
Fix #21
Browse files Browse the repository at this point in the history
  • Loading branch information
disberd committed Aug 24, 2023
1 parent f385ea9 commit edbdc8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/frompackage/code_parsing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ modify_extension_using!(x, args...) = true
function modify_extension_using!(ex::Expr, loc, package_dict::Dict, eval_module::Module)
Meta.isexpr(ex, (:using, :import)) || return true
has_extensions(package_dict) || return true
loaded_exts = package_dict["loaded extensions"]
loaded_exts = get!(package_dict, "loaded extensions", Set{Symbol}())
package_name = Symbol(package_dict["name"])
nameof(eval_module) in loaded_exts || return true
package, _ = extract_import_args(ex)
Expand Down
1 change: 1 addition & 0 deletions src/frompackage/helpers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ function get_package_data(packagepath::AbstractString)
# Check for extensions
if has_extensions(package_data)
package_data["extension data"] = data_from_weakdeps(package_data)
package_data["loaded extensions"] = Set{Symbol}()
end

# We extract the PkgInfo for all packages in this environment
Expand Down

0 comments on commit edbdc8e

Please sign in to comment.