question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unexpected MissingEndParenthesisInMethodCall

See original GitHub issue

Method 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:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
iSazonovcommented, Oct 23, 2017

Can we write more clear error message in the case?

0reactions
vorscommented, Oct 23, 2017

Ah I see. I think it’s worth to go an extra mile to write a special case error message as @iSazonov suggested.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found