Auto-complete fails for dot sourced variables in collection project

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
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.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
Posts: 30
Last visit: Tue May 04, 2021 1:49 pm

Auto-complete fails for dot sourced variables in collection project

Post by WSUsoftware »

Product, version and build: SAPIEN Powershell Studio 2019 v5.6.162
32 or 64 bit version of product: 64-bit
Operating system: Windows 10 v1809
32 or 64 bit OS: 64-bit

I'm currently trying to organize a project that has several different forms that share variables and functions that I currently have to update in every file each time I want to change one. I'm working on placing all of these into a Global.ps1 file, but when I dot source this file I want to be able to use auto-completion (I believe it's called PrimalSense in PS Studio?) when referencing the variables and functions. A multiform project will not work for this situation, as the previous form must be closed after the next one is called. I'm currently using a collection project, and that allows the functions to show up in auto-completion when dot sourcing, but not the variables--even after setting the Shared property on Globals.ps1 to true. Is this intended behavior?

User avatar
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 1 time

Re: Auto-complete fails for dot sourced variables in collection project

Post by davidc »

Yes, we use the term PrimalSense. At this time, our dot sourcing PrimalSense does not collect the variable information. I highly recommend submitting a feature request here:
SAPIEN Technologies, Inc.