julia-vscode / StaticLint.jl

Static Code Analysis for Julia
Other
145 stars 28 forks source link

False positives in PROBLEMS tab in VSCode #351

Open Soldalma opened 2 years ago

Soldalma commented 2 years ago

I updated to Julia 1.8.1 and noticed that now I have thousands of items in the Visual Studio Code PROBLEMS tab. Clicking on the PROBLEMS button I see that most of them are not due to problems in my code and some are false positive in my code. My program runs without any glitches.

These problems are in Manifest.toml:

Missing reference: git Julia [Ln 779, Col 1]
Missing reference: tree Julia [Ln 779, Col 5]

Clicking on one of these I get

[[deps.ATK_jll]]
deps = ["Artifacts", "Glib_jll", "JLLWrappers", "Libdl", "Pkg"]
git-tree-sha1 = "58c36d8a1beeb12d63921bcfaa674baf30a1140e"
uuid = "7b86fcea-f67b-53e1-809c-8f1719c154e8"
version = "2.36.1+0"

I also get problem reports related to my code every time I use the package Chain. The underscores are flagged as problems:

Missing reference: _ Julia [Ln 1718, Col 43]

In this case clicking on it does not have any effect.

xgdgsc commented 1 year ago

It also reports deps in Manifest.toml and Project.toml