VSCode showing "Possible method call error" for working code

I’m in the process of writing a package for scraping a particular API (see here) 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.

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

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:

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

Any ideas how I could resolve those?


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 @davidanthoff ?

Yes sorry here is my versioninfo()

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
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
  JULIA_EDITOR = "/usr/share/code/code"

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


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
OS: Linux x64 5.4.0-39-generic

Edit: Also tested with “Insider” version of extension