Function requires open ( to appear

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 7 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
owinsloe
Posts: 161
Last visit: Tue Mar 26, 2024 8:14 pm
Been upvoted: 1 time

Function requires open ( to appear

Post by owinsloe »

If your function has parameters, then the function name will not appear in the function list if the open parentheses is not on the same line as the function name.

eg.
Function Log
( [string]$text )
{
#wont publish function log
}
Function Log (
[string]$text )
{
#will publish function log
}

I'm running the latest powershell studio 2017. I did also notice this in 2016 and earlier also.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Function requires open ( to appear

Post by davidc »

Thank you for reporting the issue.
This is probably a holdover from the V2 days, where it had to be on the same line. The issue will be resolved in the next service release.
David
SAPIEN Technologies, Inc.
This topic is 6 years and 7 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.