You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The use case would be a possibly niche case, but would allow developers to more quickly realize the mistake they made before compiling and loading Acumatica.
See the below example code :
// Acumatica's graph.publicclassAPPaymentEntry:PXGraph<APPaymentEntry>{}// Arbitrary extension 1.publicclassAPPaymentEntryExtension1:PXGraphExtension<APPaymentEntry>{publicvirtualvoidDoSomething(){}}// 2nd extension that I accidentally made extend itself due to lazily relying on VS autocomplete.publicclassAPPaymentEntryExtension2:PXGraphExtension<APPaymentEntryExtension2,APPaymentEntry>{}
As you can see, I accidentally made APPaymentEntryExtension2 extend itself instead of APPaymentEntryExtension1. I'm not really sure how often this happens to others, but when you're pumping out code and using autocomplete, sometimes mistakes happen.
Eventually, you may either run into a PXOverride signature mismatch error like stated here, however, if you're not writing PXOverrides you might not, and would then make it to compilation, and loading Acumatica.
When Acumatica reloads, you'll get this error which should set you on the right path, although it mentions cache which might lead you to look at your DAC Extensions :
w3wp.exe will then crash, and VS will ask if you want to open the Just-In-Time Debugger.
However, I believe that adding a diagnostic to Acuminator will speed up the resolution of the bug not only because you won't have to wait for Acumatica to reload, but it'll also just tell you exactly where you made the mistake.
I would imagine that such a check would also be useful for DAC Extensions, although I haven't tested what happens when you make the same mistake in one, so I don't have a screenshot of the error you'd get when Acumatica loads.
The text was updated successfully, but these errors were encountered:
The use case would be a possibly niche case, but would allow developers to more quickly realize the mistake they made before compiling and loading Acumatica.
See the below example code :
As you can see, I accidentally made APPaymentEntryExtension2 extend itself instead of APPaymentEntryExtension1. I'm not really sure how often this happens to others, but when you're pumping out code and using autocomplete, sometimes mistakes happen.
Eventually, you may either run into a PXOverride signature mismatch error like stated here, however, if you're not writing PXOverrides you might not, and would then make it to compilation, and loading Acumatica.
When Acumatica reloads, you'll get this error which should set you on the right path, although it mentions
cache
which might lead you to look at your DAC Extensions :w3wp.exe will then crash, and VS will ask if you want to open the Just-In-Time Debugger.
However, I believe that adding a diagnostic to Acuminator will speed up the resolution of the bug not only because you won't have to wait for Acumatica to reload, but it'll also just tell you exactly where you made the mistake.
I would imagine that such a check would also be useful for DAC Extensions, although I haven't tested what happens when you make the same mistake in one, so I don't have a screenshot of the error you'd get when Acumatica loads.
The text was updated successfully, but these errors were encountered: