Questions tagged [precompile]

All questions regarding the precompile process should be tagged here

469 questions
5
votes
2 answers

When does BEGIN actually start (or is run)?

This is related to this issue in the Perl 6 documentation repo It's not too clear the phase in which BEGIN blocks are actually run. Documentation says "compile time", but Perl is precompiled, so that might actually be precompile time. As a matter…
jjmerelo
  • 22,578
  • 8
  • 40
  • 86
5
votes
2 answers

How do I tell rails not to precompile/cache a .js.erb file in my app?

I have a messages.js.erb file in my app/assets/javascripts/channels folder that should generate code to take each chatroom from the database and create channel subscriptions for that chatroom. Here is my messages.js.erb…
5
votes
1 answer

Is it possible to precompile jsp into eclipse?

The title is pretty straightforward. I would like to know if there is any possibility of seeing the compiled jsp (the servlet generated) directly into eclipse. Without deploying onto any server.
David
  • 910
  • 1
  • 12
  • 22
5
votes
1 answer

What is pre-compiled SQL statement?

PreparedStatement is a precompiled statement so it will increase jdbc performance at runtime but still confused about What is precompiled SQL Statement? What it does? Why precompiled statement is faster than usual SQL Statement?
Sasikumar Murugesan
  • 4,412
  • 10
  • 51
  • 74
5
votes
3 answers

A better understanding of javascript precompile

var foo=1; function bar(){ foo=10; return; function foo(){} } bar(); alert(foo); I am currently learning on how javascript is actually running in the machine and this is a piece of code I see in the example. I got no idea why the…
Rico
  • 53
  • 2
5
votes
2 answers

How to debug asset prompiling syntax errors?

I'm trying to push to Heroku after some Frontend touching, but I have several errors when precompiling (I think syntax errors). The thing is, I get the line number of the precompiled assets, not the original ones, so I don't know how to debug it.! …
Gibson
  • 2,055
  • 2
  • 23
  • 48
5
votes
1 answer

precompile coffeescript files ( Rails 4 )

In my Rails 4 app I have a users.js.coffee file in app/assets/javascripts. It compiles and works fine in development. But when I deploy to heroku it's not working. According to Railsguides: The matcher (and other members of the precompile array; see…
5
votes
2 answers

precompile angular js template to speed up application startup

I have a big angular application with 5 templates included in the main page using
Quentin
  • 3,150
  • 4
  • 24
  • 34
5
votes
2 answers

'Android Pre Compiler' error 'Path must include project and resource name'

I'm trying to compile the Android project SGTPuzzles, and am running into problems that I need help understanding. The error is: Errors occurred during the build. Errors running builder 'Android Pre Compiler' on project 'SGTPuzzles'. Path must…
Michael Repucci
  • 1,633
  • 2
  • 19
  • 35
5
votes
3 answers

Playframework 2.1 precompiling ember handlebars

I'm trying to write an SBT plugin for PlayFramework 2.1 which would precompile handlebars templates located in app/assets/templates. I will of course share this plugin when it is complete. I found this howto…
user510159
  • 1,379
  • 14
  • 26
5
votes
3 answers

How to use ASP.NET MVC view precompilation with App_Code helpers?

I am trying to enable view compilation to have my ASP.NET MVC3 web site load faster. My web site is hosted on AppHarbor. However, my views make use of MVC3 view helpers, defined in the App_Code folder. When I try to load my web-site, I get: "The…
Sam
  • 770
  • 4
  • 15
5
votes
2 answers

Why would rake assets:precompile take forever?

Our RoR app uses quite a few assets that need to be precompiled. It usually took several minutes for assets:precompile to run. However recently something very strange happened: simple rake assets:precompile never ends (waited few hours). I've found…
madutis
  • 51
  • 3
5
votes
1 answer

ActionView::Template::Error (rails.png isn't precompiled)

I am getting the page "We're sorry, but something went wrong, when I try to load my rails application. When I run tail -f log/production.log I get ActionView::Template::Error (rails.png isn't precompiled) I have run RAILS_ENV=production rake…
SilverNightaFall
  • 4,100
  • 10
  • 34
  • 46
4
votes
2 answers

How do I speed up asset precompiling in Rails 3+?

Every time I pull code into my repository after making changes to JS or CSS files, I run the following commands: rake assets:clean rake assets:precompile I've got quite a bit of assets, so this process always takes at least a minute. Is there any…
NudeCanalTroll
  • 2,266
  • 2
  • 19
  • 43
4
votes
2 answers

How to make "assets:precompile" NOT load the database? (Rails)

I'm deploying my Rails app on Heroku (Cedar), and there were 3 options about precompiling my assets I could choose from, and I chose the option where Heroku precompiles my assets on deployment. When I pushed, I got an error that it cannot access my…
Janko
  • 8,985
  • 7
  • 34
  • 51