A warning that doesn't seem reasonable: `Possible method call error`

When I try to manipulate a DataFrame in Julia, blue wavy lines often appear, such as the following

warning1

and

warning2

The code works fine except for the odd warning from the editor. My version of Julia is 1.8.5, and package status is

  [a93c6f00] DataFrames v1.5.0
  [1313f7d8] DataFramesMeta v0.13.0
  [f7bf1975] Impute v0.6.10
  [194296ae] LibPQ v1.15.1
  [39abe10b] MySQL v1.4.3
  [92933f4c] ProgressMeter v1.7.2
  [b0e4dd01] RollingFunctions v0.7.0
  [37e2e46d] LinearAlgebra

I think this is due to Julia’s own ecology rather than package conflicts, because in an environment where only DataFrames.jl is installed, the warning persists.

I’d like to know how to avoid this warning, or if I’ve made some easy to overlook syntax mistakes. thanks in advance!

1 Like

vscode produces a lot of wrong warnings. Currently there are 49 open linter related bugs: Issues · julia-vscode/julia-vscode · GitHub

Just try to turn these kind of warnings off or ignore them.

1 Like

Thank you very much! And I finally find that add "julia.lint.call": false to setting.json can disable the warning message. I hope vscode (or maybe be due to Julia) could fix it soon~

2 Likes