sfpowerkit icon indicating copy to clipboard operation
sfpowerkit copied to clipboard

sfpowerkit gives unknown/standard error in diff command when XML is invalid

Open satishpersonal opened this issue 2 years ago • 3 comments

When there is a Invalid XML the diff command gives a unknown/standard error rather than giving the exact error of Invalid XML [Filename]

To Reproduce Generate a Invalid XML in any component When the Diff Command runs it will give you a standard error instead of letting us know the exact error (Invalid XML/Component)

  1. sfdx sfpowerkit:project:diff -d delta -r HEAD~ -t HEAD --json --loglevel debug

Expected behavior It should exact error mentioning invalid XML and File Name.

Screenshots sfpowerkit error

  • OS: [e.g. Windows]

satishpersonal avatar Oct 29 '21 07:10 satishpersonal

Thanks @satishpersonal for raising this. While we are looking to address it better, I would recommend running xmlint before doing a diff as a workaround

azlam-abdulsalam avatar Nov 03 '21 09:11 azlam-abdulsalam

Hi @satishpersonal Is this issue has been resolved?

henry88lay avatar Dec 01 '21 00:12 henry88lay

Hi Team,

As mentioned earlier, I'm using xmllint to resolve such kinds of issues.

On Wed, Dec 1, 2021 at 1:41 AM Henry @.***> wrote:

Hi @satishpersonal https://github.com/satishpersonal Is this issue has been resolved?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Accenture/sfpowerkit/issues/591#issuecomment-983168532, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQNMLOXEXC5NPYOO5GBDDSTUOVVMTANCNFSM5G6TNV6A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Best Regards, Satish Inuganti, +32-476174436

satishpersonal avatar Dec 01 '21 07:12 satishpersonal

Closing this as there is no activity

azlam-abdulsalam avatar Aug 15 '22 00:08 azlam-abdulsalam