Julia-vscode: Spurious "Incorrect number of arguments" warnings

Created on 20 Jun 2019  路  14Comments  路  Source: julia-vscode/julia-vscode

For example,

range(1, 10; length=5)

results in the warning. I've also seen this on my own functions, though I haven't been able to produce a minimal standalone code example.

area-ls-linter bug

All 14 comments

Another case, where it's more obvious what's going wrong, is typeof(3), which most likely fails because typeof is not a generic function.

Same here. The minimal example is

println(1, 2, 3)

Any println with more than two arguments triggers the warning.

Yep noted. I've disabled this on StaticLint while I think about how to handle these issues

@ZacLN does this mean we can take it off the the v0.12.0 milestone because we have a temporary fix? I guess then it should go to the backlog?

Same here. Example:

julia> x = "12231/2131"
"12231/2131"

julia> split(x, '/'; keepempty=false)
2-element Array{SubString{String},1}:
 "12231"
 "2131" 

warning

Using VSCode 1.36.1, extension 0.12.0-beta, Julia 1.1.1, and macOS 10.14.5.

I have this for DataFrame(a = a, b = b) in julia 1.1 and version 0.13.1.

This is definitely fixed on LanguageServer#master so will be addressed in the next release

Ok, then I'm closing this issue :)

This still seems to be a problem for some functions. Not sure if I should open another issue. Example:

using DelimitedFiles

readdlm("my_file.txt", ',', String, '\n', header=true)

readdlm("my_file.txt", ',', String, '\n'; header=true)

Both of these show the warning.

Here's a link to the documentation of the function.

And a link to the source code.

Are you seeing these problems on master or in the currently shipping version?

Currently shipping version, 0.13.1.

Oh, I see, it's going to be fixed in coming releases.

@davidanthoff should we add a 'fixed pending release' tag to things like this and only close the actual issues on julia-vsxode releases?

Yeah, that might be a good idea!

VSC extension 0.13.1. "An incorrect number of function arguments" is always detected when functions passed as arguments are invoked.

function runme(callback)
    callback("Hello, world!")
end

As a general rule, tt would be nice to know which version this bug fix will be shipped with when it's closed.

EDIT: confirm fixed in 14.0-beta. Thanks!

https://github.com/julia-vscode/julia-vscode/releases/tag/v0.14.0-beta.3

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gdkrmr picture gdkrmr  路  36Comments

torkar picture torkar  路  36Comments

fplk picture fplk  路  17Comments

ssfrr picture ssfrr  路  52Comments

davidanthoff picture davidanthoff  路  28Comments