Skip to content

<CLASS DOES NOT EXIST> error in zn command when IPM is not enabled in target namespace #993

Description

@AshokThangavel

Using the zn command within the IPM shell causes a crash if the target namespace lacks IPM mappings. The error <CLASS DOES NOT EXIST> is thrown because the shell tries to access internal IPM configuration classes that are not present in the non-enabled namespace."

zpm:USER>zn

 1. %SYS> 
 2. USER> zpm                           0.10.5-SNAPSHOT
          vscode-per-namespace-settings 1.0.0
          testcoverage                  4.1.2
          objectscript-math             0.0.5
          web-fslog                     1.0.2
          testify                       1.0.1

Enter number or name where to go: %SYS



        write !,$Select($Case(##class(%IPM.Repo.UniversalSettings).GetValue("Col
                ^
orScheme"),"none":0,:1):$Char(27)_"["_31_"m"_ "ERROR!"_$Char(27)_"["_0_"m",1: "E
RROR!")
<CLASS DOES NOT EXIST>DisplayError+2^%IPM.Main.1 *%IPM.Repo.UniversalSettings

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions