PSS 2017 - Tab Completion of Sub Variables

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
DO NOT POST LICENSE NUMBERS, ACTIVATION 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.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 6 years and 8 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
joshua.staley
Posts: 19
Last visit: Thu Dec 05, 2019 1:46 pm

PSS 2017 - Tab Completion of Sub Variables

Post by joshua.staley »

Product, version and build: PowerShell Studio 2017 5.4.136
32 or 64 bit version of product: 64bit
Operating system: Windows 10
32 or 64 bit OS: 64bit
PowerShell Version:

Name Value
---- -----
PSVersion 5.1.14393.1358
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.1358
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1


Tab expansion of sub-variables works in console but not in the Script Editor. Easiest example is using a ForEach Loop. This works fine in PowerShell_ISE.

Example:

$users = get-aduser -Filter * -SearchBase "OU=ENDUSERS,DC=DOMAIN,DC=LOCAL" -SearchScope 2

foreach ($user in $users)
{

}

I can expand $user and get both tab completion (console,ISE) or drop down list (ISE Only) but using PSS I do not get tab completion.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: PSS 2017 - Tab Completion of Sub Variables

Post by davidc »

The PowerShell session is running in a separate process that is not preserved. This is why it isn't able to provide the properties.

On our TODO list is the option to preserve this information to provide PrimalSense, but I can't provide any estimates as to when this will be implemented.
David
SAPIEN Technologies, Inc.
This topic is 6 years and 8 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.