blickly / closure-compiler-issues

0 stars 0 forks source link

goog.require() statements inside comment blocks #83

Open blickly opened 9 years ago

blickly commented 9 years ago
Steps to reproduce the bug:

1. write one or more goog.require() statement
2. wrap them whit a comment block (/* */)
3. compile

Description:

the compiler should skip the statements since they are just comments, instead it will
load and 
compile files

Version:

I'm using the last version on a Mac OS X Snow Leopard (Java version: 
1.6.0_17)

Original issue reported on code.google.com by davidezanotti on 2009-12-30 14:46:44

blickly commented 9 years ago
hmmmm...Can you give more details on how you invoked the compiler? I'm pretty sure that

closure compiler does not have any way to find files unless you explicitly pass them

in. Any chance you're using calcdeps.py that ships with the closure library?

thanks

Original issue reported on code.google.com by Nicholas.J.Santos on 2009-12-31 18:50:01

blickly commented 9 years ago
Yes, I'm using an Ant build file which invoke calcsdeps.py and then the compiler.jar,
this is how I call it:

<exec error="${logPath}" output="${outputPath}" executable="${closurePath}/bin/calcdeps.py">
    <arg line="-i ${filesToCompile} -p ${closurePath} -o compiled -c ${compilerPath}
-f '--compilation_level=${compilation}'" />
 </exec>

Original issue reported on code.google.com by davidezanotti on 2010-01-01 13:00:37

blickly commented 9 years ago
You'll want to file this issue against the Library: http://code.google.com/p/closure-
library/issues/list

Original issue reported on code.google.com by concavelenz on 2010-01-02 06:35:17

blickly commented 9 years ago
Openned as http://code.google.com/p/closure-library/issues/detail?id=100

Original issue reported on code.google.com by concavelenz on 2010-01-08 00:10:28