# False warning in VSCode

**URL:** <https://discourse.julialang.org/t/false-warning-in-vscode/112638>\
**Category:** VS Code\
**Tags:** linter\
**Created:** [April 7, 2024, 10:13am UTC](https://discourse.julialang.org/t/false-warning-in-vscode/112638 "2024-04-07T10:13:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [April 7, 2024, 10:13am UTC](https://discourse.julialang.org/t/false-warning-in-vscode/112638/1 "2024-04-07T10:13:23Z")

</div>

I have the following code:

```julia
mutable struct KiteObserver
    length::Vector{Float64}
    elevation::Vector{Float64}
end
function KiteObserver()
    KiteObserver(Float64[], Float64[])
end

```

I get the warning:

```julia
Possible method call error.Julia(IncorrectCallArgs)
Float64(x [, mode::RoundingMode])

```

Any idea why? Is it a bug? Is there a workaround?

---

<div class="post-metadata">

**Author:** ![Sushrut\_Deshpande](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sushrut_deshpande/32/52754_2.png) [@Sushrut\_Deshpande](https://discourse.julialang.org/u/Sushrut_Deshpande)\
**Post date:** [April 7, 2024, 11:36am UTC](https://discourse.julialang.org/t/false-warning-in-vscode/112638/2 "2024-04-07T11:36:43Z")

</div>

Hello,  
I cannot recreate this warning. Can it be something with the Julia version? The version I am using is 1.10.2.

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [April 7, 2024, 12:20pm UTC](https://discourse.julialang.org/t/false-warning-in-vscode/112638/3 "2024-04-07T12:20:16Z")

</div>

I also have problems to replicate with an MWE. It happens in this code:

> <https://github.com/aenarete/KiteControllers.jl/blob/fc6d3268827b7de5a07ad2abeb3c557c46165edf/examples/autopilot.jl#L13C1-L22C4>

I checked it on two computers, so it is not a problem with my specific VSCode installation.

Output of versioninfo():

```julia
julia> versioninfo()
Julia Version 1.10.2
Commit bd47eca2c8a (2024-03-01 10:14 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 32 × AMD Ryzen 9 7950X 16-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, znver3)
Threads: 15 default, 1 interactive, 16 GC (on 32 virtual cores)
Environment:
  LD_LIBRARY_PATH = /lib:/usr/lib:/usr/local/lib

```

Using the latest stable version of the VSCode Julia extension, `v1.75.2` .

---

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [April 7, 2024, 12:47pm UTC](https://discourse.julialang.org/t/false-warning-in-vscode/112638/4 "2024-04-07T12:47:21Z")

</div>

I also have some wrong warnings like that. I think I have at some point disabled the method call warnings (not sure how). It is a bug, certainly. Sometimes hard to reproduce.
