question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compiler does not work properly after v20201102

See original GitHub issue

I use https://github.com/jackmoore/colorbox and my project includes jquery.colorbox.js (as example) In the past I use a compiler from 2015 with

java -jar compiler.2015.jar --language_out=ECMASCRIPT6 --compilation_level SIMPLE_OPTIMIZATIONS --js jquery.colorbox.js --js_output_file output1.js

Now I updated to compiler version v20210907

java -jar closure-compiler-v20210907.jar --language_out=ECMASCRIPT_2015 --compilation_level SIMPLE --js jquery.colorbox.js --js_output_file output2.js

EDIT: With closure-compiler-v20201102.jar its working

I get no warnings or errors in console, but the demo not working with “output2” but working fine with “output1”. Something the compiler is doing is optimizing incorrectly. I get the overlay and box, but no image is included.

output1 image

output2 image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
lauraharkercommented, Nov 11, 2021

@Daijobou this should be fixed as of yesterday’s release v20211107

1reaction
concavelenzcommented, Nov 4, 2021

https://github.com/google/closure-compiler/commit/158b9d8dd6b9d61dd92c698d640c82b3095a3e8c

This will be part of the next release and should address this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node - Javadoc.io
Modifier and Type Method Description void addChildAfter​(Node newChild, Node node) Add 'newChild' after 'nod... void addChildBefore​(Node newChild, Node node) Add 'child' before 'node'. void addChildrenAfter​(Node children,...
Read more >
Closure Compiler v20201102 released! - Google Groups
In some cases the compiler would incorrectly remove assignments annotated as @abstract. We've restricted it to removing assignments of the ...
Read more >
java: You aren't using a compiler supported by lombok, so ...
Using lombok 1.18.16 did not work for me. I added the argument below in the build process VM options in -Djps.track.ap.dependencies=false.
Read more >
Source not compiling after upgrade to Ventura - ROOT Forum
I am installing from master on Ventura and I have no problem. ACLiC does not work properly even with the master branch.
Read more >
com.google.javascript » closure-compiler » v20201102
Closure Compiler is a JavaScript optimizing compiler. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found