-
-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Possible Method Call Error #4824
Comments
You really should report this in the vscode extension repository |
But this message only appears on the |
Having a 0 method function to be extended by other modules is not too uncommon in the julia ecosystem, but I can see that its hard to check by static analysis. Either way this is a false positive of the linter and not something we can do about in Plots.jl. |
I'll ignore it then. The code ran fine despite the messages. For what it's worth, I can't see the messages this morning because I can't establish a connection to the language server. So I guess I'll chase that down and then pop over to the VS Code extension as you suggested. |
@BeastyBlacksmith, it looks like you were right about the 0 method error not being uncommon: e.g. julia-vscode/julia-vscode#1218 (comment). I'm sorry for not doing more thorough research. I did resolve my language server issue, and I still get the 0 method error on the |
To repeat the OP, the following screenshot demonstrates that the 0 method error still exists even using Julia v1.9.4 and the v1.65.2 of the VS Code extension. However, what is exciting is that the next screenshot no longer shows the 0 method error with Julia v1.10.0! So it seems that the issue has been resolved because moving to v1.10.0 brought with it a new language parser. The versions of the Plots package and GR backend have not changed from the OP. |
Details
When editing a Julia script in VS Code, IntelliSense keeps complaining about a method call error on all
plot
andplot!
commands throughout the script. Below is a simple example.Which does successfully run and outputs a plot:
But why is IntelliSense complaining about the
RecipesBase.plot
function when all I did wasusing Plots; gr()
?Backends
This bug occurs on ( insert
x
below )Versions
Plots.jl version: Plots v1.39.0
Backend version (
]st -m <backend(s)>
): GR v0.72.8Output of
versioninfo()
:The text was updated successfully, but these errors were encountered: