intersystems / intersystems/git-source-control

MapEverywhere() misses %zpkg package

Aperta
#772 6 commenti 0 reazioni 1 assegnatario Rivendicata da @isc-pbarton Vedi su GitHub
Lingua principale
ObjectScript
Stelle
22
Fork
14
Merge medio
1g 9h
PR unite (30g)
5

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.