On Sep 20, 2011, at 10:04 AM, ext Iversen Sverre wrote: > Hi, version 2.7.2 worked but with warnings - warnings are related to > OpenLayers code I guess.
Yep. These are expected warnings from closure. (There is some movement towards actually getting full closure support out of the library, but we haven't made it a priority yet.) -- Chris > ... > Total files merged: 269 > Compressing using closure > c:\docume~1\iverse~1\locals~1\temp\tmpwix5wc:13540: WARNING - Suspicious > code. T > his code lacks side-effects. Is there a bug? > if (styleUrl && key == "highlight") { > ^ > > c:\docume~1\iverse~1\locals~1\temp\tmpwix5wc:33724: WARNING - variables, > functio > ns, and arguments cannot be deleted in ES5 strict mode > delete child; > ^ > > c:\docume~1\iverse~1\locals~1\temp\tmpwix5wc:69679: WARNING - variables, > functio > ns, and arguments cannot be deleted in ES5 strict mode > delete iFrame; > ^ > > c:\docume~1\iverse~1\locals~1\temp\tmpwix5wc:69699: WARNING - variables, > functio > ns, and arguments cannot be deleted in ES5 strict mode > delete form; > ^ > > 0 error(s), 4 warning(s) > Adding license file. > Writing to OpenLayers-closure.js. > Done. > > BR > Sverre Iversen - thanks! > > -----Opprinnelig melding----- > Fra: christopher.schm...@nokia.com > [mailto:christopher.schm...@nokia.com] > Sendt: 20. september 2011 15:49 > Til: Iversen Sverre > Emne: Re: SV: [OpenLayers-Dev] Command line Closure compiler and Windows > > > On Sep 20, 2011, at 9:20 AM, ext Iversen Sverre wrote: > >> Hi Christopher and thanks for quick response >> >> I had the former version 2.5 so I installed version 3.2.2 but got a >> different error message: > > Python 3 and Python 2 are two different programming languages; you can't > run Python 2.x scripts on Python 3.x, and build.py has not been ported > to > Python 3. > > Grab the latest 2.x branch Python and try again. > > -- Chris > >> >> File "C:\My Documents\Web\openlayers\OpenLayers-2.11\build\build.py", >> line 14 >> print "No jsmin" >> ^ >> SyntaxError: invalid syntax >> >> Any clues? - familiar with the build.py script? >> >> BR >> Sverre >> >> -----Opprinnelig melding----- >> Fra: christopher.schm...@nokia.com >> [mailto:christopher.schm...@nokia.com] >> Sendt: 20. september 2011 14:27 >> Til: Iversen Sverre >> Kopi: openlayers-dev@lists.osgeo.org >> Emne: Re: [OpenLayers-Dev] Command line Closure compiler and Windows >> >> You need to use a more modern version of Python to build with the >> closure >> compiler (2.6+, I believe.) >> >> -- Chris >> >> On Sep 20, 2011, at 7:58 AM, ext Iversen Sverre wrote: >> >>> Hi, I downloaded Openlayers 2.11 Sep. 14. 2011 >>> >>> Tried to use the closure compiler, but it returns an error from > script >> (build.py -c closure full OpenLayers-closure.js): >>> ... >>> Total files merged: 268 >>> Compressing using closure >>> Traceback (most recent call last): >>> File "C:\My >> Documents\Web\openlayers\OpenLayers-2.11\build\build.py", line 80, in >> <module> build(args[0], args[1], options=options) >>> File "C:\My >> Documents\Web\openlayers\OpenLayers-2.11\build\build.py", line 60, in >> build minimized = closure.minimize(merged) >>> File "../tools\closure.py", line 10, in minimize ntf = >> tempfile.NamedTemporaryFile(delete=False) TypeError: >> NamedTemporaryFile() got an unexpected keyword argument 'delete' >>> >>> Question: >>> Is it any workaround? - and if any, I need a prescription on how to >> run it - not only references to alternative tools. I have used the >> manual way up to now (paste via web), but will prefer the command line >> method. >>> >>> Best Regards >>> Sverre Iversen >>> _______________________________________________ >>> Dev mailing list >>> d...@lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/openlayers-dev >> > _______________________________________________ Dev mailing list d...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-dev