intersystems / intersystems/git-source-control

MapEverywhere() misses %zpkg package

Open
#772 6 comments 0 reactions 1 assignee Claimed by @isc-pbarton View on GitHub
Dominant language
ObjectScript
Stars
22
Forks
14
Avg merge
1d 9h
Merged PRs (30d)
5

Description

I ran `##class(SourceControl.Git.API).MapEverywhere()` to make the module available in all the namespaces in my instance. When I went to edit an interop production, I received this exception popup:

![Image](https://github.com/user-attachments/assets/b91e5209-c056-4ae0-85b9-7e83d6761b87)

I went back to my terminal session to dump the session variables and noticed this:

```ObjectScript
%objlasterror="0 S¥ PackageSourceControl.Git%ALL$%SYS(e^Exists+5^Config.CommonMapMethods.1^
2+e^ClassMapping+4^
%Installer.Installer.1^1Dd^
RunMapEverywhere+26^|"ENSGLOBAL"|SourceControl.Git.Installer.1^1@e^
MapEverywhere+8^|"ENSGLOBAL"|SourceControl.Git.Installer.1^1:e^
MapEverywhere+1^|"ENSGLOBAL"|SourceControl.Git.API.1^1e^^^0"
```

While this method did map the `SourceControl.*` package to my other namespaces, maybe it also needs to map `%zpkg.isc.*`?

```
$zv: IRIS for Windows (x86-64) 2023.1.5 (Build 697U) Thu Oct 3 2024 13:47:51 EDT
```

---

Additionally, the `MapEverywhere()` definitions should really be annotated with `As %Status`. It is inconsistent that they don't have this.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.