Chirpy doesn't work anymore for generating debug file

Jan 3, 2012 at 8:09 AM
Edited Jan 3, 2012 at 10:35 AM

I'm having a strange problem with chirpy, suddenly it is generating invalid javascript inside my javascript debug file. Even a single javascript file isn't working anymore... . Is someone having the same problem or does someone know a solution for the problem i'm having?

A few weeks ago everything worked fine, but suddenly it doesn't work anymore...

For example:

javascript.chirp.config:

<root
  xmlns="urn:ChirpyConfig"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="urn:ChirpyConfig http://www.weirdlover.com/chirpy/chirp.xsd">
    <FileGroup Name="scripts.js" Debug="True">
        <File Path="jquery.validate.js" />
    </FileGroup>
</root>

So i'm generating 2 files a minified one and a debug version. The problem is in the debug version that gets generated by chirpy. It does strange things with inline comments inside javascript objects. For example some incorrect javascript it generates:

... some code inside jquery.validate.js...
            defaultMessage: function(element, method) {
                return this.findDefined(
                this.customMessage(element.name, method), this.customMetaMessage(element, method),
                // title is never undefined, so handle empty string as undefined!this.settings.ignoreTitle && element.title || undefined, $.validator.messages[method], "<strong>Warning: No message defined for " + element.name + "</strong>");
            },
...some code inside jquery.validate.js...

The original code was:

... some code inside jquery.validate.js...            
defaultMessage: function (element, method) {
                return this.findDefined(
				this.customMessage(element.name, method),
				this.customMetaMessage(element, method),
                // title is never undefined, so handle empty string as undefined
				!this.settings.ignoreTitle && element.title || undefined,
				$.validator.messages[method],
				"<strong>Warning: No message defined for " + element.name + "</strong>"
			);
            },
... some code inside jquery.validate.js...    

The correct syntax syntax should be:

 

... some code inside jquery.validate.js...
defaultMessage: function(element, method) {
                return this.findDefined(
                this.customMessage(element.name, method), this.customMetaMessage(element, method),
                // title is never undefined, so handle empty string as undefined
                !this.settings.ignoreTitle && element.title || undefined, 
$.validator.messages[method], "<strong>Warning: No message defined for " + element.name + "</strong>"); }, ... some code inside jquery.validate.js...
Developer
Jan 3, 2012 at 3:40 PM

Change your defaut minifier engine or test with Chirpy new version ver 2.03.

Sample config file : 

<root>
  <FileGroup Name="scripts.js"  Minify="False">
    <File Path="jquery.validate.js" Minify="True" MinifyWith="msAjax" />
  </FileGroup>
</root>
Jan 4, 2012 at 6:58 AM

After I upgraded chirpy, I tried it again with my original configuration file, but I didn't work. Trying it with the configuration you mentioned did the trick. But I still don't understand how it suddenly stopped working, I had been using that configuration for more than 1 year and never had an issue with it...

Developer
Jan 4, 2012 at 4:58 PM

You have entry "Chirpy minifier file" in context-menu ?

This item run manually chirpy engine.