intersystems / intersystems/git-source-control

MapEverywhere() misses %zpkg package

Offen
#772 6 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @isc-pbarton Auf GitHub ansehen
Vorherrschende Sprache
ObjectScript
Sterne
22
Forks
14
Ø Merge
1 T. 9 Std.
Gemergte PRs (30 T.)
5

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.