Why don't work?

Jan 3, 2012 at 11:19 PM
Edited Jan 3, 2012 at 11:21 PM

Dear All,

I find this really great addin for visual studio, but I'm not able to get it work.

I install the latest version 2.0.3, but in my vs2008 nothing happend. I try to create a simple.yui.js file, but the codebehind does't appair.

I follow the documentation in first page of codeplex.

Can you help me?

Is Crirpy for only vs2010?

Thanks

Claudio

Developer
Jan 4, 2012 at 12:24 AM

Copy file in C:\Users\<user name>\Documents\Visual Studio 2008\AddIns

Change in file *.Addin version number 10.0 to 9.0

Sample :

<HostApplication>
<Name>Microsoft Visual Studio Macros</Name>
<Version>9.0</Version>
</HostApplication>
<HostApplication>
<Name>Microsoft Visual Studio</Name>
<Version>9.0</Version>
</HostApplication>

Watch in menu tools > add-in Manager ...
Chirpy is probably in list after copy/change.

Same request for vs 2011 : http://chirpy.codeplex.com/discussions/284633

Jan 4, 2012 at 10:08 AM
Edited Jan 4, 2012 at 10:32 AM

[Problem 1 solved - Install AjaxMinifier to use this function]

I install http://aspnet.codeplex.com/releases/view/40584 this and with .msajax.js extension now work.

[Problem 2]

Dear All,
I try some combination, but I don't achieve my target...
Before use Chirpy I use http://www.minifyjs.com/javascript-compressor/ with normal compression
For example:

 

function AddHandler() {

    $('.boxItem').mousedown(function() {
        //alert('Handler for .click() called.');
        $(LastBoxMod).removeClass("selectedBox");
        $(this).addClass("selectedBox");
        SyncInformation(this);
        ShowPnlEdit();
    });

}

 

and the minified version is

 

eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('1 4(){$(\'.5\').3(1(){$(a).6("0");$(2).8("0");7(2);9()})}',11,11,'selectedBox|function|this|mousedown|AddHandler|boxItem|removeClass|SyncInformation|addClass|ShowPnlEdit|LastBoxMod'.split('|'),0,{}))

How can have a similar minified (with eval at begin and all the strings at the end?)

[Problem 3]
When I publish my website appair both js file, minized and "source". Is there an option for publish only the minify version?

Developer
Jan 4, 2012 at 5:52 PM

[Problem 1]

The Microsoft Ajax Minifier 4.0 is merge with ILMerge in main dll.

ILMerge /out:"Chirpy.dll" "TempChirpy.dll" "EcmaScript.NET.modified.dll" "Yahoo.YUI.Compressor.dll" "dotless.Core.dll" "AjaxMin.dll" "Jurassic.dll" /targetplatform:v4,C:\Windows\Microsoft.NET\Framework\v4.0.30319

[Problem 2]

Test (http://www.minifyjs.com/javascript-compressor/) and no output with eval begin.

Normally minified file don't content extra javascript.

[Problem 3]

Create new feature request.

http://chirpy.codeplex.com/workitem/113

Jan 8, 2012 at 1:23 PM

Dear All,
thanks for your reply, but I don't understand your reply about my "problem 2"
Before I foud Chirpy I manually create my minified with http://www.minifyjs.com/javascript-compressor/
In the Advanced Option I use fast decode e normal encoding. My source example and my output was in the previous post.
This minified works great for my poupose, but I connot find and equivalent settings in Chirpy.

Can I have a similar minified js with Chirpy?

Developer
Jan 8, 2012 at 4:15 PM
Edited Jan 8, 2012 at 4:24 PM

No.

Your normal file -> length : 280

Your minified version -> length : 483

With google closure compiler (simple) ->169

Normaly the minified version is small.

Your file is packed not minified (http://stackoverflow.com/questions/3158869/javascript-packer-versus-minifier)

Jan 12, 2012 at 9:41 AM

Ok, so I need a Packer instead a minifier?
Chirpy is a great vs add on, there is a way to add a Packer in his features?

Developer
Jan 14, 2012 at 12:37 AM

Request add in issue tracker:

http://chirpy.codeplex.com/workitem/115

Developer
Jan 15, 2012 at 1:20 AM

Add javascript packer

Change set : http://chirpy.codeplex.com/SourceControl/changeset/changes/bec84bb7f37f