Hi David,
test notes:
I made changes to a function (added a parameter).
Afterwards, debugging works fine using the new parameter, but the change didn't show up in the Primal Sense.
I tried Reloading, rebuilding, and re-importing from Edit Cache, but no results. I was finally able to open Edit Cache, remove the module, close Edit Cache, re-open Edit Cache, and re-import the module and rebuild the cache. That seemed to do the trick:
Without all these contortions at least the debugger works and sees the changes fine, which is great. So the running code picks up on the change in functionality, I can step in to functions, and all that. I interpret that as this being a Primal Sense issue since 'everything else' seems to be working OK. It's almost like Primal Sense doesn't pick up on structural/schema/metadata changes to a function object until the whole module is completely reloaded.
Not sure if it makes a difference to the cache or not, but I'm importing a .psd1 that references a .psm1 that imports a bunch of other .psm1 modules, then the .psd1 is exporting the functions. Should be standard, but thought I'd mention it. I haven't noticed different behavior when I import a target .psm1 directly.
Seems like a lot of contortions to jump through to get Primal Sense to work when I change a function structure. At least I have a magik chicken foot now, and a better understanding when to use it.
Thanks,
Dana
UI functionality questions
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Re: UI functionality questions
It possible it didn't rebuild because the module version did not change. I will bring up these points with the team and see what we can do to make this easier.
As for importing the psd1, as long as PowerShell detects the exported functions, the cache will pick them up as well.
As for importing the psd1, as long as PowerShell detects the exported functions, the cache will pick them up as well.
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.