Skip to content

Fix: Export All better handles missing items. #825

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cambot
Copy link
Contributor

@cambot cambot commented Aug 1, 2025


I think this is good enough @isc-pbarton , but I'm open to changes if there are other things I didn't consider.

…, remove internal tracking (intersystems#821)

- Allows "Export all" to proceed and complete correctly.
@@ -1720,7 +1721,11 @@ ClassMethod ExportItem(InternalName As %String, expand As %Boolean = 1, force As
write !, "Production decomposition enabled, skipping export of production class"
set filename = ""
} else {
$$$QuitOnError($system.OBJ.ExportUDL(InternalName, filename,"-d/diff"))
set tSC = $SYSTEM.OBJ.ExportUDL(InternalName, filename,"-d/diff")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There may be other errors from ExportUDL that we actually do want to fail on. I'd suggest a slight change:

if '##class(%RoutineMgr).Exists(InternalName) {
    // do the clean up here
} else {
    // call ExportUDL with ThrowOnError
}

@isc-pbarton isc-pbarton linked an issue Aug 6, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Export All" fails early on classes that no longer exist.
2 participants