Closure Compiler - {SyntheticVarsDeclar}: WARNING - Modified Variable

I use the Closure compiler with --warning_level=VERBOSE and --compilation_level ADVANCED_OPTIMIZATIONS

It outputs:

 {SyntheticVarsDeclar}: WARNING - Redeclared variable: i 0 error(s), 1 warning(s) 

Is there a way to find out more information about where this variable i declared?

// Update

I skipped every i variable in all files, and there aren't any that have been updated.

Here is a list of flags used:

--jscomp_off=externsValidation

--summary_detail_level=3

--warning_level=VERBOSE

--externs

--compilation_level ADVANCED_OPTIMIZATIONS

--output_wrapper

--source_map_format

--js_output_file

// Update 2

I use the latest Closure compiler: http://dl.google.com/closure-compiler/compiler-latest.zip

When I add "var i" to the beginning of the first file, the compiler returns with:

 firstFile.js:1: WARNING - Redeclared variable: i var i; ^ 

and there is no previous warning {SyntheticVarsDeclar}.

+2
source share
1 answer

Make sure the --third_party flag is not used. Nothing should be added as {SyntheticVarsDeclar} if there is no declaration. The --third_party flag causes the declaration of declared global variables in "{SyntheticVarsDeclar}".

+1
source

All Articles