# VSCode showing "Possible method call error" for working code

**URL:** https://discourse.julialang.org/t/vscode-showing-possible-method-call-error-for-working-code/43219
**Category:** VS Code
**Created:** [July 17, 2020, 8:35am UTC](https://discourse.julialang.org/t/vscode-showing-possible-method-call-error-for-working-code/43219 "2020-07-17T08:35:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![danielw2904](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/danielw2904/32/10890_2.png) [@danielw2904](https://discourse.julialang.org/u/danielw2904)
#### Post date: [July 17, 2020, 8:35am UTC](https://discourse.julialang.org/t/vscode-showing-possible-method-call-error-for-working-code/43219/1 "2020-07-17T08:35:25Z")

</div>

Hi,  
I’m in the process of writing a package for scraping a particular API ([see here](https://github.com/danielw2904/ChartmetricScraper.jl)) and I am getting “Possible method call error” for two types of calls.

The first is when calling `parse` from the `JSON` package (the API response is always a JSON object). Possibly related: If I hover the mouse over `parse` I get the help for the `Base.parse` function.

```julia
function parseresponse(response::HTTP.Messages.Response)
    bod = response.body
    ret_dict = JSON.parse(String(bod)) # <- Possible method call error
    return ret_dict
end

```

The second type is when I quote a request and then try to `eval` it. I do this because I want to run the request, get the response and then based on the response code do something (i.e. wait until the next minute if the rate limit is hit) and then retry the same request:

```julia
function eval_example(url, header)
    req = :(HTTP.request("GET",
                $url, $header, status_exception = false))
    resp = eval(req) # <- Possible method call error
    return resp
end

```

Any ideas how I could resolve those?

Thanks!

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [July 17, 2020, 9:10am UTC](https://discourse.julialang.org/t/vscode-showing-possible-method-call-error-for-working-code/43219/2 "2020-07-17T09:10:05Z")

</div>

Confirmed (latest VSCode 1.47.2 and Julia extension 0.17.6, Julia 1.4.2). Could be a bug/missing feature in [Language Server](https://github.com/julia-vscode/LanguageServer.jl) @davidanthoff ?

---

<div class="post-metadata">

### Author: ![danielw2904](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/danielw2904/32/10890_2.png) [@danielw2904](https://discourse.julialang.org/u/danielw2904)
#### Post date: [July 17, 2020, 9:20am UTC](https://discourse.julialang.org/t/vscode-showing-possible-method-call-error-for-working-code/43219/3 "2020-07-17T09:20:38Z")

</div>

Yes sorry here is my `versioninfo()`

```julia
julia> Julia Version 1.4.2
Commit 44fa15b150* (2020-05-23 18:35 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Xeon(R) W-2145 CPU @ 3.70GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
Environment:
  JULIA_NUM_THREADS = 8
  JULIA_EDITOR = "/usr/share/code/code"

```

VSCode extension 0.17.6 (tested with both “Julia” and “Julia Insider”)

VSCode:

```julia
Version: 1.47.1
Commit: 485c41f9460bdb830c4da12c102daff275415b53
Date: 2020-07-14T00:13:57.513Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.4.0-39-generic

```

Edit: Also tested with “Insider” version of extension
