-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Bad variable rename on large project #149
Comments
actually.. looking later in the file
it also seems a bit suspicious that its the only line thats screwed up whitespace. Is it possible that the newline character and _ character have been removed somewhere as part of the transformation? |
after manually adjusting and running the tests I've found a couple more programming errors which I fixed and pushed but they haven't had any effect on this (line numbers unchanged) |
I've reproduced the issue.
It's odd that only that line appears to be affected... |
adding
in deconflict gives
which is correct.. so something is going wrong with the actual rename. investigating further... |
Can you give me any hints as to where the rename actually occurs? I see that just because it found it in modifierStatements, doesn't mean it will be used in the rename |
This now builds successfully with the contingency-plan branch – there's a test here |
@Rich-Harris I've worked out a test case now, in the middle of tracking the problem and I'm not sure that test case is exactly the same issue. |
@lukeapage That makes sense – I think both branches had an issue preventing less.js from building, but they were completely unrelated. |
PR here - #161 |
Thanks @lukeapage – FWIW the test passes on contingency-plan, I've just released 0.17.1 from that branch. |
there is now a fix in #161 |
I found another issue with my changes in less.js and after that the main browser tests pass with 0.17.3 or 0.16.3 with my fix |
I'm going to close this issue since less.js appears to build successfully as of 0.18.2 – @lukeapage correct me if that's not the case! |
yep this is fixed |
I'm trying rollup out on less.js and found a bad rename. I cannot reproduce simply for now, so at the moment my test case is the less.js repo
this creates a file
tmp/less.js
You could also run rollup directly on it, I'm using
umd
and the entry file islib/less-browser/bootstrap.js
on line 6242
on line 6259
from the original sources
so it has renamed the export default, but not the prototype function.
I've gone from commonjs to es6 modules, so there could be a mistake somewhere in the modules, but even if there is, it shouldn't cause this side effect..
The text was updated successfully, but these errors were encountered: