UI functionality questions

Use this forum to ask questions after your subscription maintenance expires or before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
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.
This topic is 6 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
danabrash
Posts: 11
Last visit: Wed Sep 25, 2019 2:17 pm

Re: UI functionality questions

Post by danabrash »

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.
PreReImport.png
PreReImport.png (13.24 KiB) Viewed 11121 times
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:
PostImport.png
PostImport.png (16.25 KiB) Viewed 11121 times


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
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: UI functionality questions

Post by davidc »

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.
David
SAPIEN Technologies, Inc.
This topic is 6 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.