[PSS 2018][Bug] Aliases not detected

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 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.
Bosparan
Posts: 290
Last visit: Fri Oct 08, 2021 11:59 am

[PSS 2018][Bug] Aliases not detected

Post by Bosparan »

PSS Version: 2018 5.5.149 x64
OS Version: Windows 10 x64 1709
WMF Version: 5.1

Impact: High

Symptoms:
PowerShell Studio fails to detect any aliases from all of my modules.
The default aliases are recognized and work, but the modules I wrote export aliases - as is declared in their manifest - but they are not detected by PowerShell Studio.

Reproducibility:
Run the following command to install one of those modules:
  1. Install-Module PSUtil
Then run the following line in your console:
  1. Get-Command new
As you can see, the alias new is available and properly detected.
Now open PowerShell Studio, rebuild the cache just in case.
Then in the editor type new and see ... no alias detection. It stays gray.

Notes
  • I have tried rebuilding the cache. Repeatedly
  • I have tried reinstalling PowerShell Studio. Twice.
This is of high relevance to me, since I have optimized my efficiency using a dedicated module that exports dozens of aliases for the most commonly used commands of mine, because it significantly increases my coding speed to be able to just type <n><e><w><TAB>. Losing the ability to do so has been a very significant speedbump for my coding.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: [PSS 2018][Bug] Aliases not detected

Post by davidc »

We are investigating and will get back to you.
David
SAPIEN Technologies, Inc.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: [PSS 2018][Bug] Aliases not detected

Post by davidc »

This issue will be resolved in the next service release. In the meantime, copy the following file (unzipped):
PSUtil.1.1.1.10.zip
(407 Bytes) Downloaded 165 times
into:

C:\ProgramData\SAPIEN\PresetCache 2018\ModuleCacheV5

Then rebuild the cache in PowerShell Studio.
David
SAPIEN Technologies, Inc.
Bosparan
Posts: 290
Last visit: Fri Oct 08, 2021 11:59 am

Re: [PSS 2018][Bug] Aliases not detected

Post by Bosparan »

Heya David,

thank you as always for your swift resolutions :)

Cheers,
Fred
This topic is 6 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.