-
Notifications
You must be signed in to change notification settings - Fork 187
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
Incorrect "no visible binding for global variable" #666
Comments
Confirmed. The problem lies somewhere in the way |
I think the problem lies in the Here's the line that produces the bad result:
I think it needs a predicate saying that |
@dmurdoch Thanks for the hint.
The |
Fixes #666 Makes sure foo$bar$duh <- 42L returns "foo" as the only used (global) symbol.
That appears to miss complex assignments like |
Hmm I see. Maybe a better Idea would be to check that the parent expression is no DOLLAR-OP... |
The same bug occured in #445 (which I have closed to remove duplicate issues) |
Sure. I'm not an XPath expert by any means. I can compare object-usage over some packages before/after your changes if that's helpful. |
That would be very useful indeed. |
* only extract the first symbol for equal and left assignments Fixes #666 Makes sure foo$bar$duh <- 42L returns "foo" as the only used (global) symbol. * add tests and update NEWS * add another test with different assignments fix weird test file indentation * add test with dollar-assignment; make XPath only return top-level symbols
This example code
lints with this error:
The error disappears when you take away the
foo$bar <- 1
:The text was updated successfully, but these errors were encountered: