autocompletion

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 2 years and 3 weeks 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
yves22
Posts: 23
Last visit: Tue Jan 02, 2024 4:12 am
Been upvoted: 1 time

autocompletion

Post by yves22 »

ScreenShots.zip
(145.81 KiB) Downloaded 156 times
To help you better we need some information from you.

*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***

Product, version and build: Sapien Powershell Studio 2022 / 5.8.200
Operating system: windows 10 / windows 2022 datacenter
PowerShell version(s): 5.1.19041.1320 / 5.1.20348.320

*** Please add details and screenshots as needed below. ***

DO NOT POST LICENSES, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM

Hello,

I upgrade my Sapien Powershell Studio 2022 in version 5.8.200 this day.
Since the autocompletion work fine on the psf file. But when a psf file is exported I do not have autocompletion on object.

For example :
- If I type "$button_re" it retrieve me well all button, but when I type "$button_refresh." it do not show me the differents possibilities I get : enabled, disabled, visible and so on.


best regards
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 7:24 am
Answers: 39
Been upvoted: 30 times

Re: autocompletion

Post by brittneyr »

Based off the information and images provided, it sounds like it is showing you the properties of your button named $Button_Refresh.
The intellisense is triggered after 4 characters is typed or when a 'special character' is typed like '$', '.', or '-'.

When a file is exported, it is possible that form controls are no longer known by the editor as the control, but rather just a variable.
Brittney
SAPIEN Technologies, Inc.
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 7:24 am
Answers: 39
Been upvoted: 30 times

Re: autocompletion

Post by brittneyr »

The way you can tell is if you hover over your control variable. Does it say the type of control or just variable on the tool tip on hover?
Brittney
SAPIEN Technologies, Inc.
User avatar
yves22
Posts: 23
Last visit: Tue Jan 02, 2024 4:12 am
Been upvoted: 1 time

Re: autocompletion

Post by yves22 »

Hello,

I work last monday on this same script with the version 5.8.199 of Powershell Studio 2022 and the autocompletion work fine on both psf and ps1 file. I do not remember have that problem in the past.

The only thing I do is upgraded Powershell Studio 2022 in version 5.8.200 on my two environments (on a Windows 10 and a Windows 2022 datacenter).
Is the last version more sensible on control and variable ?

Best Regards
User avatar
yves22
Posts: 23
Last visit: Tue Jan 02, 2024 4:12 am
Been upvoted: 1 time

Re: autocompletion

Post by yves22 »

Hello,

I forget answer you question : when I hover over a control variable in the ps1 file it say me it was a variable only.
On the psf file it return a variable and a control.

Best regards,
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 7:24 am
Answers: 39
Been upvoted: 30 times

Re: autocompletion

Post by brittneyr »

I will look into this behavior and get back to you when I have more information.
Brittney
SAPIEN Technologies, Inc.
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 7:24 am
Answers: 39
Been upvoted: 30 times

Re: autocompletion

Post by brittneyr »

I have found the issue and have filed a bug report with the developer. This fix will be released in a future service release.
Brittney
SAPIEN Technologies, Inc.
User avatar
yves22
Posts: 23
Last visit: Tue Jan 02, 2024 4:12 am
Been upvoted: 1 time

Re: autocompletion

Post by yves22 »

Hello,

Thanks for all and I wait the next Powershell Studio release impatiently 😉

Best Regards
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 7:24 am
Answers: 39
Been upvoted: 30 times

Re: autocompletion

Post by brittneyr »

Please try service build 5.8.201 and let me know if this issue is resolved.
Brittney
SAPIEN Technologies, Inc.
User avatar
yves22
Posts: 23
Last visit: Tue Jan 02, 2024 4:12 am
Been upvoted: 1 time

Re: autocompletion

Post by yves22 »

Hi,

Sorry for this later answer, but I was not at work. I try the last build and give you a feedback next tuesday.

Best regard.
This topic is 2 years and 3 weeks 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.