emberjs / ember.js

Ember.js - A JavaScript framework for creating ambitious web applications
https://emberjs.com
MIT License
22.46k stars 4.21k forks source link

Rake abort on master: TypeError #1735

Closed RSSchermer closed 11 years ago

RSSchermer commented 11 years ago

I've been getting the following error after running rake dist on master. I can't find any solutions on here or via google, so i hope it's ok to post it as an issue here. Running rake clean before doesnt change anything, nor does running bundle exec rake dist:

C:\Users\Roland\Documents\GitHub\ember.js [master +0 ~1 -0]> rake dist
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/rake_module.rb:25: 
warning: redundant nested repeat operator
Building Ember...
rake aborted!
TypeError: Object doesn't support this property or method
<internal:prelude>:10:in `synchronize'
<internal:prelude>:10:in `synchronize'
C:/Users/Roland/Documents/GitHub/ember.js/Rakefile:43:in `block in <top (require
d)>'
Tasks: TOP => C:/Users/Roland/Documents/GitHub/ember.js/tmp/rake-pipeline-d48915
21d3ffad8c160a82884f13a6acfe6428c9/rake-pipeline-3-tmp-7/ember-runtime.min.js
(See full trace by running task with --trace)

With --trace:

C:\Users\Roland\Documents\GitHub\ember.js [master +0 ~1 -0]> rake dist --trace
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/rake_mo
dule.rb:25: warning: redundant nested repeat operator
** Invoke dist (first_time)
** Execute dist
Building Ember...
rake aborted!
TypeError: Object doesn't support this property or method
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/lib/execjs/ext
ernal_runtime.rb:68:in `extract_result'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/lib/execjs/ext
ernal_runtime.rb:28:in `block in exec'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/lib/execjs/ext
ernal_runtime.rb:41:in `compile_to_tempfile'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/lib/execjs/ext
ernal_runtime.rb:27:in `exec'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/uglifier-2f6c31a67d
6d/lib/uglifier.rb:137:in `really_compile'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/uglifier-2f6c31a67d
6d/lib/uglifier.rb:74:in `compile'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/uglifier-2f6c31a67d
6d/lib/uglifier.rb:47:in `compile'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/rake-pipeline-web-f
ilters-1a6dc173776b/lib/rake-pipeline-web-filters/uglify_filter.rb:62:in `block
in generate_output'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/rake-pipeline-web-f
ilters-1a6dc173776b/lib/rake-pipeline-web-filters/uglify_filter.rb:58:in `each'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/rake-pipeline-web-f
ilters-1a6dc173776b/lib/rake-pipeline-web-filters/uglify_filter.rb:58:in `genera
te_output'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/rake-pipeline-50b8d
77b703c/lib/rake-pipeline/filter.rb:218:in `block (3 levels) in generate_rake_ta
sks'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/rake-pipeline-50b8d
77b703c/lib/rake-pipeline/file_wrapper.rb:135:in `create'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/rake-pipeline-50b8d
77b703c/lib/rake-pipeline/filter.rb:218:in `block (2 levels) in generate_rake_ta
sks'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/task.rb
:228:in `call'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/task.rb
:228:in `block in execute'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/task.rb
:223:in `each'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/task.rb
:223:in `execute'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/task.rb
:166:in `block in invoke_with_call_chain'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/task.rb
:159:in `invoke_with_call_chain'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/rake-pipeline-50b8d
77b703c/lib/rake-pipeline/dynamic_file_task.rb:154:in `invoke_with_call_chain'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/task.rb
:152:in `invoke'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/rake-pipeline-50b8d
77b703c/lib/rake-pipeline/dynamic_file_task.rb:60:in `invoke'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/rake-pipeline-50b8d
77b703c/lib/rake-pipeline.rb:328:in `block (2 levels) in invoke'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/rake-pipeline-50b8d
77b703c/lib/rake-pipeline.rb:328:in `each'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/rake-pipeline-50b8d
77b703c/lib/rake-pipeline.rb:328:in `block in invoke'
<internal:prelude>:10:in `synchronize'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/rake-pipeline-50b8d
77b703c/lib/rake-pipeline.rb:321:in `invoke'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/rake-pipeline-50b8d
77b703c/lib/rake-pipeline/project.rb:126:in `each'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/rake-pipeline-50b8d
77b703c/lib/rake-pipeline/project.rb:126:in `block in invoke'
<internal:prelude>:10:in `synchronize'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/rake-pipeline-50b8d
77b703c/lib/rake-pipeline/project.rb:112:in `invoke'
C:/Users/Roland/Documents/GitHub/ember.js/Rakefile:43:in `block in <top (require
d)>'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/task.rb
:228:in `call'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/task.rb
:228:in `block in execute'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/task.rb
:223:in `each'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/task.rb
:223:in `execute'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/task.rb
:166:in `block in invoke_with_call_chain'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/task.rb
:159:in `invoke_with_call_chain'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/task.rb
:152:in `invoke'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/applica
tion.rb:143:in `invoke_task'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/applica
tion.rb:101:in `block (2 levels) in top_level'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/applica
tion.rb:101:in `each'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/applica
tion.rb:101:in `block in top_level'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/applica
tion.rb:110:in `run_with_threads'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/applica
tion.rb:95:in `top_level'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/applica
tion.rb:73:in `block in run'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/applica
tion.rb:160:in `standard_exception_handling'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/lib/rake/applica
tion.rb:70:in `run'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-0.9.6/bin/rake:37:in `
<top (required)>'
C:/RailsInstaller/Ruby1.9.3/bin/rake:19:in `load'
C:/RailsInstaller/Ruby1.9.3/bin/rake:19:in `<main>'
Tasks: TOP => C:/Users/Roland/Documents/GitHub/ember.js/tmp/rake-pipeline-d48915
21d3ffad8c160a82884f13a6acfe6428c9/rake-pipeline-3-tmp-7/ember-runtime.min.js
wycats commented 11 years ago

Can you try a fresh clone of master?

RSSchermer commented 11 years ago

I have tried that already, but forget to mention it. Makes no difference, produces the exact same error.

Edit: I maybe should also mention that for example ember-data builds just fine.

ElteHupkes commented 11 years ago

I'm having the exact same issue while trying to build Ember.js on Windows; fresh install of Ruby with "bundle install" completing without errors. On Ubuntu (which is what I usually work on) I'm getting different errors after hours of trying, so it seems it is impossible for me to build Ember.js at this point. Very annoying as I'm trying to get to the new Router features and no build for those is available yet.

RSSchermer commented 11 years ago

@ElteHupkes I found that building emberdata produces an ember.js that is more recent than the one you find under /downloads here, so for the moment im using that. Still not quite up to date though, but it may help a little bit.

ElteHupkes commented 11 years ago

@Rolus Hrm, buliding ember-data gives me 4eb5f08 from 16 december, this one: http://cloud.github.com/downloads/emberjs/ember.js/ember-latest.js is actually even slightly more recent (18-12). The new router is something from last week though I think, so both are nowhere nearly recent enough.

Thanks for the tip though :).

RSSchermer commented 11 years ago

@ElteHupkes Are you using the ember.js from dist/modules/ember.js? should be a511b09 from 26-12.

ElteHupkes commented 11 years ago

Huh, don't know how you got to that, but I now have something better.. In ember-data, I ran "rake ember:update", this fetched ember-js and built it without errors (I know, weird right..). Then I ran "rake dist", now dist/modules/ember.js is 4772b18 from 09-01 :).