Questions tagged [precompile]

All questions regarding the precompile process should be tagged here

469 questions
0
votes
2 answers

Rails ActionView::Template::Error (google_analytics.js isn't precompiled)

I've decided to use javascript_inlcude_tag 'google_analytics.js' in my templates, avoiding many of the gems that would get it done for me in favor of testing the new Google Analytics "Universal" features. Thing is that Google Analytics provided code…
Alvaro Lourenço
  • 1,321
  • 1
  • 10
  • 21
0
votes
1 answer

Rails assets precompilation removes functions from global scope (TypeError: object is not a function). How to get them back?

I have such a js code: function Global(params) { ... } var g = { onDocLoad: function() { // on DOM load I instantiate the Global function-constructor // which is above this line, so it is already in scope var global = new…
Green
  • 28,742
  • 61
  • 158
  • 247
0
votes
2 answers

Keep running into asset precompile error in my css...not sure why

I keep getting errors like so when precompiling assets: Invalid CSS after "...margin-left:1px": expected "{", was ";line-height:16..." so I found an error in the css, which was it said "1margin-left:1px"...so i fixed that. now i'm running into…
Matthew Berman
  • 8,481
  • 10
  • 49
  • 98
0
votes
1 answer

image folder - heroku precompile

When I run the following command: heroku run rake assets:precompile My css, javascripts and anything in the root of my public folder is precompiled...however, my image folder (which is in the public folder) is not precompiled. How can I ensure that…
user749798
  • 5,210
  • 10
  • 51
  • 85
0
votes
2 answers

Jetty: Precompile JSPs using ant

I am trying to precompile my JSP files with Jetty, so I do not have to ship a compiler with my Jetty project. I am using Ant to achieve this, but there appears an error and I don't know how to solve it. taglibs.jsp(4,62) PWC6188: The absolute uri: …
user2255297
  • 188
  • 1
  • 2
  • 10
0
votes
1 answer

handlebars precompiled template issue

we use handlebars precompiled templates in a web app. one of our elements broke recently - incorrect HTML was being used in a certain location. When looking at the precompiled js, I can see that elements are missing. the HTML that is precompiled is…
Brett
  • 5,690
  • 6
  • 36
  • 63
0
votes
1 answer

Using PrecompiledMvcEngine FindView throws InvalidOperationException and looks for View cshtml files

I got an InvalidOperationException when the MVC controller tried to FindView while using the PrecompiledMvcEngine. Using on a machine that has VS2012, MVC4 and deployed to IIS
Zasz
  • 12,330
  • 9
  • 43
  • 63
0
votes
0 answers

How to compile a section in Prefix.pch of a Xcode project once?

The Prefix.pch as below. #ifdef __OBJC__ #import #define BUNDLE_NAME XXXBundle #define LOADER_CLASS XXXBundleLoader extern NSBundle *BUNDLE_NAME; #undef NSLocalizedString #define NSLocalizedString(key, comment)…
cxa
  • 4,238
  • 26
  • 40
0
votes
2 answers

Rails precompiling error (invalid UTF-8 byte sequence)

I accidentally put a js file in assets/images and now heroku won't let me precompile my assets even after I deleted the js file. Here's the error message I got AssetSync: YAML file found /tmp/build_326asn5xl82tm/config/asset_sync.yml settings will…
otchkcom
  • 287
  • 6
  • 13
0
votes
1 answer

rake assets:precompile fails after ruby 1.9.2 -> 1.9.3 upgrade

I'm trying to precompile my app assets locally. When I run bundle exec rake assets:precompile --trace I get a stack level too deep error: ** Invoke assets:precompile (first_time) ** Execute…
Kori John Roys
  • 2,621
  • 1
  • 19
  • 27
0
votes
4 answers

How to make the C++ precompiler do a "loop"

I want to simplify the following code: switch (index) { case 1: output = function1(); break; case 2: output = function2(); break; case 3: output = function3(); break; .... Where…
Martin Drozdik
  • 12,742
  • 22
  • 81
  • 146
0
votes
1 answer

Rails nested_form file error in assets precompile

Rails tells me, that I've got some errors in application.js $ rake assets:precompile /usr/bin/ruby1.8 /usr/local/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets rake aborted! Unexpected token: operator (*=) (line: 12013, col:…
medy75
  • 652
  • 11
  • 33
0
votes
1 answer

heroku run rake assets:precompile aborted because a file has a invalid UTF-8 byte sequence

Here's the exact message I got when I run git push heroku master ** Execute assets:precompile:primary rake aborted! /app/app/assets/images/images/index_solid.js has a invalid UTF-8 byte…
otchkcom
  • 287
  • 6
  • 13
0
votes
1 answer

How can I precompile all css files in a particular folder?

To precompile all css files in a project I could add this to production.rb: config.assets.precompile << '*.css' But how can I add only css files in a particular folder?
Undistraction
  • 42,754
  • 56
  • 195
  • 331
0
votes
1 answer

Rails 3.2 assets:precompile Permission denied 123

I'm trying to precompile my rails app but get this weird error that I don't know how to follow? rake assets:precompile --trace ** Invoke assets:precompile:all (first_time) ** Execute assets:precompile:all ** Invoke assets:precompile:primary…
Philip
  • 6,827
  • 13
  • 75
  • 104