Fubu Assets combine

40 views
Skip to first unread message

Kaleb Sturgill

unread,
May 21, 2012, 6:39:41 PM5/21/12
to fubumv...@googlegroups.com
I am trying to get the asset pipeline working on our new project and everything works except when I try to do a combine of assets.

*.asset.config file:

ordered set css-set is
common.css
rbox/rbox.css
ssawebtheme/jquery-ui-1.8.20.custom.css

jquery is lib/jquery.js
jquery-ui is lib/jquery-ui.js

jquery-ui requires jquery

combine jquery,jquery-ui as jquery-combination

Application.cshtml:
@{ 
    this.Asset("css-set");
    this.Asset("jquery-combination");    
}

<!DOCTYPE html>
<html>
    <head>
        <title>@ViewBag.Title</title> 
        @this.WriteCssTags()
        @this.WriteScriptTags()
    </head>
    <body>
       test
    </body>
</html>

My Error:

System.ArgumentNullException was unhandled by user code
  Message=Value cannot be null.
Parameter name: key
  Source=mscorlib
  ParamName=key
  StackTrace:
       at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
       at System.Collections.Generic.Dictionary`2.ContainsKey(TKey key)
       at FubuCore.Util.Cache`2.Fill(TKey key, Func`2 onMissing) in c:\BuildAgent\work\4a2c4b02595de142\src\FubuCore\Util\Cache.cs:line 123
       at FubuCore.Util.Cache`2.FillDefault(TKey key) in c:\BuildAgent\work\4a2c4b02595de142\src\FubuCore\Util\Cache.cs:line 118
       at FubuCore.Util.Cache`2.get_Item(TKey key) in c:\BuildAgent\work\4a2c4b02595de142\src\FubuCore\Util\Cache.cs:line 83
       at FubuMVC.Core.Assets.Combination.AssetCombinationCache.AddFilesToCandidate(MimeType mimeType, String name, IEnumerable`1 files) in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\Assets\Combination\AssetCombinationCache.cs:line 30
       at FubuMVC.Core.Assets.AssetCombinationBuildingActivator.<Activate>b__1(String name, IList`1 assetNames) in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\Assets\AssetCombinationBuildingActivator.cs:line 50
       at FubuCore.Util.Cache`2.Each(Action`2 action) in c:\BuildAgent\work\4a2c4b02595de142\src\FubuCore\Util\Cache.cs:line 160
       at FubuMVC.Core.Assets.AssetGraph.ForCombinations(Action`2 combinations) in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\Assets\AssetGraph.cs:line 145
       at FubuMVC.Core.Assets.AssetCombinationBuildingActivator.Activate(IEnumerable`1 packages, IPackageLog log) in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\Assets\AssetCombinationBuildingActivator.cs:line 47
       at Bottles.PackagingRuntimeGraph.<>c__DisplayClass1.<activatePackages>b__0(IActivator activator, IPackageLog log)
       at Bottles.Diagnostics.PackagingDiagnosticsExtensions.<>c__DisplayClass2`1.<>c__DisplayClass4.<LogExecutionOnEach>b__1()
       at Bottles.Diagnostics.PackageLog.Execute(Action continuation)
  InnerException: 

Without the combine line in the assets.config file it works great but with it I get the above error.

Any ideas?

Thanks!

Ryan Rauh

unread,
May 21, 2012, 7:03:49 PM5/21/12
to fubumv...@googlegroups.com
I recall a different post stating that Combination are currently unaware of aliases. 

Try changing 

combine jquery,jquery-ui as jquery-combination

to

combine lib/jquery.jslib/jquery-ui.js as jquery-combination

-Ryan 


--
You received this message because you are subscribed to the Google Groups "FubuMVC Development Group" group.
To view this discussion on the web visit https://groups.google.com/d/msg/fubumvc-devel/-/M2F_zg3Pc1YJ.
To post to this group, send email to fubumv...@googlegroups.com.
To unsubscribe from this group, send email to fubumvc-deve...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fubumvc-devel?hl=en.

Kaleb Sturgill

unread,
May 22, 2012, 10:12:47 AM5/22/12
to fubumv...@googlegroups.com
Thanks for the response...

I tried changing to use the filenames and not the alias and now no error is thrown but the script tags are never written to the head element. See below

<!DOCTYPE html>
<html>
    <head>
        <title>SSA Portal</title> 
        <link href="/_content/styles/common.css" rel="stylesheet" type="text/css" />
        <link href="/_content/styles/rbox/rbox.css" rel="stylesheet" type="text/css" />
        <link href="/_content/styles/ssawebtheme/jquery-ui-1.8.20.custom.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
       test
    </body>

On Monday, May 21, 2012 4:03:49 PM UTC-7, rauh.ryan wrote:
I recall a different post stating that Combination are currently unaware of aliases. 

Try changing 

combine jquery,jquery-ui as jquery-combination

to

combine lib/jquery.jslib/jquery-ui.js as jquery-combination

-Ryan 
To unsubscribe from this group, send email to fubumvc-devel+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages