Unexpected MissingEndParenthesisInMethodCall
See original GitHub issueMethod call parsing fails when it should not
Steps to reproduce
PS /Users/vors/dev/ZLocation> $response.Send($service.Get() | ConvertTo-Json)
At line:1 char:30
+ $response.Send($service.Get() | ConvertTo-Json)
+ ~
Missing ')' in method call.
At line:1 char:47
+ $response.Send($service.Get() | ConvertTo-Json)
+ ~
Unexpected token ')' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingEndParenthesisInMethodCall
Expected behavior
parses fine
Actual behavior
parsing error
Environment data
> $PSVersionTable
Name Value
---- -----
PSVersion 6.0.0-beta
PSEdition Core
GitCommitId v6.0.0-beta.5
OS Darwin 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu...
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
MissingEndParenthesisInMethod...
MissingEndParenthesisInMethodCall - checking if an environment ... web_1 | Unexpected token 'env:UPDATE_FROM_GITHUB' in expression or ...
Read more >[SOLVED] Dealing with brackets in property names
+ ~ Unexpected token ')' in expression or statement. At line:1 char:122 + . ... + FullyQualifiedErrorId : MissingEndParenthesisInMethodCall.
Read more >Windows PowerShell forum - RSSing.com
+ FullyQualifiedErrorId : MissingEndParenthesisInMethodCall ... Unexpected token '', '' in expression or statement. At C:\build\MakeProfile.ps1:47 char:53
Read more >UTF-8 strings work as direct console input, but not when ...
I'm trying to write a script that contains eastern characters in a string. When I type the code directly into PowerShell, everything works ......
Read more >1175759 – Checksum validation in PowerShell is wrong
At line:1 char:116 + ... tes($PWD\$image))) + ~ Unexpected token ')' in expression ... + FullyQualifiedErrorId : MissingEndParenthesisInMethodCall Expected ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Can we write more clear error message in the case?
Ah I see. I think it’s worth to go an extra mile to write a special case error message as @iSazonov suggested.