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.
User avatar
joshua.staley
Posts: 19
Joined: Mon May 16, 2011 3:03 am

PSS 2017 - Tab Completion of Sub Variables

Post by joshua.staley » Wed Jul 05, 2017 8:54 am

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
Joined: Thu Aug 18, 2011 4:56 am

Re: PSS 2017 - Tab Completion of Sub Variables

Post by davidc » Thu Jul 06, 2017 7:37 am

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.