Syntax Check bug.

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 8 years and 3 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
Latupho
Posts: 11
Last visit: Sun Apr 02, 2017 2:32 am

Syntax Check bug.

Post by Latupho »

Product, version and build: Powershell Studio 2015 - 4.2.99
32 or 64 bit version of product: 32 bit
Operating system: Windows 7 Enterprice
32 or 64 bit OS: 64 bit

If you look at attached image below, you can see that PS don't catch this syntax error.
2015-12-16 11_06_54-SAPIEN PowerShell Studio 2015.png
2015-12-16 11_06_54-SAPIEN PowerShell Studio 2015.png (18.42 KiB) Viewed 2092 times
This is not a big issue, but I didn't catch it after an hour scratshing my head :-) Run this code in System Center, so I don't get the executsion error when it run.

The script I use is from Github[dot]com, search for PSAppDeployToolkit(Can't link here, you say "You can't have off-site URLs in your posts until you have posted a few times.") and from the file named "Deploy-Application.ps1".
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Syntax Check bug.

Post by davidc »

There is no syntax error because this is valid code in PowerShell.

Note: The PowerShell engine reports the syntax errors.

David
David
SAPIEN Technologies, Inc.
This topic is 8 years and 3 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.