Product: PrimalScript (64 Bit)
Build: v8.0.168
OS: Windows 10 Pro (64 Bit)
Build: v10.0.19044
This code shows the problem:
function TestFold
{
$hash = @{ }
$hash.Add("Item 1", '-')
}
The @ seems to hide the opening { so the accompanying } ends the function leaving the rest of the code as 'orphaned'.
powershell syntax @{} confuses code folding
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE 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.
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE 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.
- Alexander Riedel
- Posts: 8479
- Last visit: Thu Mar 28, 2024 9:29 am
- Been upvoted: 37 times
Re: powershell syntax @{} confuses code folding
Thank you for letting us know.
I'll get that to QA to line it up to get fixed.
I'll get that to QA to line it up to get fixed.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- Alexander Riedel
- Posts: 8479
- Last visit: Thu Mar 28, 2024 9:29 am
- Been upvoted: 37 times
Re: powershell syntax @{} confuses code folding
The issue has been resolved and is in QA for testing. It should be fixed in the next service build.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: powershell syntax @{} confuses code folding
Alexander,
I just installed 8.0.169. Most instances of this bug are fixed, but there is one case left unresolved.
The highlighted clause in line 66 in the attached file causes the problem. If the entire line is removed, the code folds correctly.
I just installed 8.0.169. Most instances of this bug are fixed, but there is one case left unresolved.
The highlighted clause in line 66 in the attached file causes the problem. If the entire line is removed, the code folds correctly.
Thanks,
Gerry
Gerry
Re: powershell syntax @{} confuses code folding
I take that back. Removing line 66 gets it close, but it's still one curly bracket away from being right:
Thanks,
Gerry
Gerry
- Alexander Riedel
- Posts: 8479
- Last visit: Thu Mar 28, 2024 9:29 am
- Been upvoted: 37 times
Re: powershell syntax @{} confuses code folding
Thanks, I will look into it.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.