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
Regression; loss of some names in --debug output #3772
Comments
This is a known regression. We recently switched the disambiguate properties implementation. It would be helpful to us if you can describe why the change is problematic for you as this would help us determine if we should try to address this. |
I assume I'm using debug in a relatively standard way? Which is to identify code back to its original source after the optimisation steps. In the case above I can see code is compiled from the 'Tracer', 'Plug' and 'Door' definitions. That's especially useful if I am debugging a problem which only occurs when ADVANCED optimisation is used. But there's no information with the new revision of the compiler which idenfies that, and so the debug functionlity becomes not very useful if it only gives the 'leaf' name as these sorts of names are often re-used source code. |
Another reason this regression is bad; it causes variation in compiled names. Diffing of compiled code was previously possible (and useful), but is no longer practical as there are many false positives with diffs looking like this:
In this example, I added an 'async' keyword to a self-contained function, but it has presumably changed the assignment of these numbers. Frankly, I think this known regression makes the debug functionality so much less useful that this should be considered a major issue. When you say "if we should try and address this" -- yes. Because it calls into question the entire existence of |
This issue is a duplicate of internal issue http://b/179420668 Unfortunately because of the way GitHub issues get pulled into our internal system we cannot actually link them together the way I'd like to do. Here are highlights from the internal issue:
|
Since upgrading between the most recent releases (
closure-compiler-v20210106.jar
toclosure-compiler-v20210202.jar
) I notice a regression and a loss of useful information in the naming out of some--debug
output.Here's an example diff:
I spent a few minutes trying to make a minimal test case, but time got the better of me as it was hard to stop the optimiser intervening to remove the code(!) Are these examples enough?
The compile flags are:
The text was updated successfully, but these errors were encountered: