Code-Inspect / flowr

A program slicer and dataflow analyzer for the R programming language.
https://github.com/Code-Inspect/flowr/wiki
GNU General Public License v3.0
14 stars 2 forks source link

[Bug]: Incorrect analysis of named function arguments #761

Closed ManuelHentschel closed 1 month ago

ManuelHentschel commented 2 months ago

What happened?

In the example below, the slice of print(x) seems to be identified incorrectly, but for print(y) it works.

image

What version of R do you have installed?

4.3.3

What version of flowR did you use?

1.2.0 (npm install)

Related input code

x <- 100
list(123, x = 200, 234)
print(x)

y <- 300
list(123, y = 400)
print(y)

Relevant log output

No response

Meta Information

EagleoutIce commented 2 months ago

Thank you very much for noting this regression caused by me wrongly handling named arguments (actually treating them like parameters). I have integrated the patch as part of the complete dataflow overhaul (tracked in #526), the issue should be resolved automatically once i merge it (scheduled tomorrow).

EagleoutIce commented 1 month ago

This issue has been resolved in v2.0.0 (see Release v2.0.0 (Dataflow v2)).