coffeescript NameError #79

Closed
opened 2011-11-15 18:56:57 +00:00 by greezeyfreezey · 18 comments
greezeyfreezey commented 2011-11-15 18:56:57 +00:00 (Migrated from github.com)

I am using jasmine with jenkins and everytime i try to run a build i see the follow error..

** Execute jhw
/opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/jasmine-headless-webkit-0.7.3.1/bin/jasmine-headless-webkit:24: uninitialized constant CoffeeScript (NameError)
from /opt/ruby-enterprise-1.8.7/bin/jasmine-headless-webkit:19:in load' from /opt/ruby-enterprise-1.8.7/bin/jasmine-headless-webkit:19 rake aborted! Command failed with status (1): [jasmine-headless-webkit...] /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:995:insh'
/opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in call' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:insh'
/opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1094:in sh' /var/lib/jenkins/workspace/trunk_jasmine/ideeli/lib/tasks/jhw.rake:4 /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:incall'
/opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in execute' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:ineach'
/opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in execute' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:ininvoke_with_call_chain'
/opt/ruby-enterprise-1.8.7/lib/ruby/1.8/monitor.rb:242:in synchronize' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:ininvoke_with_call_chain'
/opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in invoke' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:ininvoke_task'
/opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in top_level' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:ineach'
/opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in top_level' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exception_handling'
/opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in top_level' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:inrun'
/opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:inrun'
/opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/opt/ruby-enterprise/bin/rake:19:in `load'
/opt/ruby-enterprise/bin/rake:19
Build step 'Invoke Rake' marked build as failure
Finished: FAILURE

I am using jasmine with jenkins and everytime i try to run a build i see the follow error.. *\* Execute jhw /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/jasmine-headless-webkit-0.7.3.1/bin/jasmine-headless-webkit:24: uninitialized constant CoffeeScript (NameError) from /opt/ruby-enterprise-1.8.7/bin/jasmine-headless-webkit:19:in `load' from /opt/ruby-enterprise-1.8.7/bin/jasmine-headless-webkit:19 rake aborted! Command failed with status (1): [jasmine-headless-webkit...] /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:995:in`sh' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in `call' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in`sh' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1094:in `sh' /var/lib/jenkins/workspace/trunk_jasmine/ideeli/lib/tasks/jhw.rake:4 /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in`call' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in`each' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in`invoke_with_call_chain' /opt/ruby-enterprise-1.8.7/lib/ruby/1.8/monitor.rb:242:in `synchronize' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in`invoke_with_call_chain' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in`invoke_task' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in`each' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in`standard_exception_handling' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in`run' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in`run' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /opt/ruby-enterprise/bin/rake:19:in `load' /opt/ruby-enterprise/bin/rake:19 Build step 'Invoke Rake' marked build as failure Finished: FAILURE
greezeyfreezey commented 2011-11-15 19:20:07 +00:00 (Migrated from github.com)

also when trying to execute directly from CLI i still get the following

/opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/jasmine-headless-webkit-0.7.3.1/bin/jasmine-headless-webkit:24: uninitialized constant CoffeeScript (NameError)
from /opt/ruby-enterprise-1.8.7/bin/jasmine-headless-webkit:19:in `load'
from /opt/ruby-enterprise-1.8.7/bin/jasmine-headless-webkit:19

also when trying to execute directly from CLI i still get the following /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/jasmine-headless-webkit-0.7.3.1/bin/jasmine-headless-webkit:24: uninitialized constant CoffeeScript (NameError) from /opt/ruby-enterprise-1.8.7/bin/jasmine-headless-webkit:19:in `load' from /opt/ruby-enterprise-1.8.7/bin/jasmine-headless-webkit:19
johnbintz commented 2011-11-16 19:08:40 +00:00 (Migrated from github.com)

Is the coffee-script gem also installed and accessible in your gem path?

Is the coffee-script gem also installed and accessible in your gem path?
greezeyfreezey commented 2011-11-16 19:48:06 +00:00 (Migrated from github.com)

yes

gem list |grep -i coffee
coffee-script (2.2.0)
coffee-script-source (1.1.2)

yes gem list |grep -i coffee coffee-script (2.2.0) coffee-script-source (1.1.2)
johnbintz commented 2011-11-16 20:40:47 +00:00 (Migrated from github.com)

Try the latest git HEAD. I am explicitly requiring 'coffee-script' now in the runner, which should bring in that constant.

Try the latest git HEAD. I am explicitly requiring 'coffee-script' now in the runner, which should bring in that constant.
greezeyfreezey commented 2011-11-18 18:18:55 +00:00 (Migrated from github.com)

i posted earlier but removed it.. now seeing

asmine-webkit-specrunner: cannot connect to X server rake aborted! Command failed with status (1): [jasmine-headless-webkit] /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:995:in sh' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:incall' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in sh' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1094:insh' /var/lib/jenkins/workspace/trunk_jasmine/ideeli/lib/tasks/jhw.rake:4 /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in call' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:inexecute' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in each' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:inexecute' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in invoke_with_call_chain' /opt/ruby-enterprise-1.8.7/lib/ruby/1.8/monitor.rb:242:insynchronize' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in invoke_with_call_chain' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:ininvoke' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in invoke_task' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in each' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:intop_level' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in run' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exception_handling' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in run' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /opt/ruby-enterprise/bin/rake:19:inload' /opt/ruby-enterprise/bin/rake:19 Build step 'Invoke Rake' marked build as failure Finished: FAILURE

i posted earlier but removed it.. now seeing asmine-webkit-specrunner: cannot connect to X server rake aborted! Command failed with status (1): [jasmine-headless-webkit] /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:995:in `sh' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in`call' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in `sh' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1094:in`sh' /var/lib/jenkins/workspace/trunk_jasmine/ideeli/lib/tasks/jhw.rake:4 /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in`execute' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in`execute' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain' /opt/ruby-enterprise-1.8.7/lib/ruby/1.8/monitor.rb:242:in`synchronize' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in`invoke' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in`top_level' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in`top_level' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in`top_level' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in`standard_exception_handling' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /opt/ruby-enterprise/bin/rake:19:in`load' /opt/ruby-enterprise/bin/rake:19 Build step 'Invoke Rake' marked build as failure Finished: FAILURE
johnbintz commented 2011-11-18 19:16:46 +00:00 (Migrated from github.com)

For the first one: do you have a runtime installed? If you're using Node.js, have you tried specifying EXECJS_RUNTIME?

https://github.com/sstephenson/execjs/blob/master/lib/execjs/runtimes.rb#L56

I can't read the second one.

For the first one: do you have a runtime installed? If you're using Node.js, have you tried specifying EXECJS_RUNTIME? https://github.com/sstephenson/execjs/blob/master/lib/execjs/runtimes.rb#L56 I can't read the second one.
greezeyfreezey commented 2011-11-18 19:18:43 +00:00 (Migrated from github.com)

The first one i resolved with nodejs.. so i removed it from it this.. here is the second one again

** Execute jhw
Running Jasmine specs...
jasmine-webkit-specrunner: cannot connect to X server
rake aborted!
Command failed with status (1): [jasmine-headless-webkit]
/opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:995:in sh' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:incall'
/opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in sh' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1094:insh'
/var/lib/jenkins/workspace/trunk_jasmine/ideeli/lib/tasks/jhw.rake:4
/opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in call' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:inexecute'
/opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in each' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:inexecute'
/opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in invoke_with_call_chain' /opt/ruby-enterprise-1.8.7/lib/ruby/1.8/monitor.rb:242:insynchronize'
/opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in invoke_with_call_chain' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:ininvoke'
/opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in invoke_task' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level'
/opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in each' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level'
/opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:intop_level'
/opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in run' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exception_handling'
/opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in run' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /opt/ruby-enterprise/bin/rake:19:inload'
/opt/ruby-enterprise/bin/rake:19
Build step 'Invoke Rake' marked build as failure
Finished: FAILURE

The first one i resolved with nodejs.. so i removed it from it this.. here is the second one again *\* Execute jhw Running Jasmine specs... jasmine-webkit-specrunner: cannot connect to X server rake aborted! Command failed with status (1): [jasmine-headless-webkit] /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:995:in `sh' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in`call' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in `sh' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1094:in`sh' /var/lib/jenkins/workspace/trunk_jasmine/ideeli/lib/tasks/jhw.rake:4 /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in`execute' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in`execute' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain' /opt/ruby-enterprise-1.8.7/lib/ruby/1.8/monitor.rb:242:in`synchronize' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in`invoke' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in`top_level' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in`top_level' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in`top_level' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in`standard_exception_handling' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /opt/ruby-enterprise/bin/rake:19:in`load' /opt/ruby-enterprise/bin/rake:19 Build step 'Invoke Rake' marked build as failure Finished: FAILURE
johnbintz commented 2011-11-18 19:25:12 +00:00 (Migrated from github.com)

Are you using xvfb?

Are you using xvfb?
greezeyfreezey commented 2011-11-18 19:32:53 +00:00 (Migrated from github.com)

I just installed xvfb because i noticed another post you were on that somebody did it but it still seems to fail.

I just installed xvfb because i noticed another post you were on that somebody did it but it still seems to fail.
johnbintz commented 2011-11-18 19:35:20 +00:00 (Migrated from github.com)

Then I don't know what else to suggest, as I've never used xvfb. If you find out what's wrong, please post your solution somewhere so others know what to do. Gonna close this since the original problem, the missing CoffeeScript constant, is fixed.

Then I don't know what else to suggest, as I've never used xvfb. If you find out what's wrong, please post your solution somewhere so others know what to do. Gonna close this since the original problem, the missing CoffeeScript constant, is fixed.
greezeyfreezey commented 2011-11-18 19:38:29 +00:00 (Migrated from github.com)

Well here is the thing.. i removed the xvfb.. and i am still getting that error for cant connect to X server.

Well here is the thing.. i removed the xvfb.. and i am still getting that error for cant connect to X server.
greezeyfreezey commented 2011-11-18 19:38:34 +00:00 (Migrated from github.com)

does Jasmine need X?

does Jasmine need X?
johnbintz commented 2011-11-18 19:45:07 +00:00 (Migrated from github.com)

jasmine-headless-webkit does require an X server since it's a Qt WebKit application.

jasmine-headless-webkit does require an X server since it's a Qt WebKit application.
greezeyfreezey commented 2011-11-18 19:52:46 +00:00 (Migrated from github.com)

so odd.. not sure whats happening then.. trying to execute directly and getting this

./jasmine-headless-webkit -c -j /path/to/somewhere/spec/javascripts/support/jasmine.yml
'Running Jasmine specs...
jasmine-webkit-specrunner: cannot connect to X server

so odd.. not sure whats happening then.. trying to execute directly and getting this ./jasmine-headless-webkit -c -j /path/to/somewhere/spec/javascripts/support/jasmine.yml 'Running Jasmine specs... jasmine-webkit-specrunner: cannot connect to X server
johnbintz commented 2011-11-18 19:58:32 +00:00 (Migrated from github.com)

Unfortunately, I can't really help any more with this particular problem. I don't have any experience running truly headless apps. You'll have to find another place for help.

Unfortunately, I can't really help any more with this particular problem. I don't have any experience running truly headless apps. You'll have to find another place for help.
greezeyfreezey commented 2011-11-18 20:04:15 +00:00 (Migrated from github.com)

ok thanks alot for your help.

ok thanks alot for your help.
morganchristiansson commented 2011-11-19 20:33:14 +00:00 (Migrated from github.com)

greezeyfreezey: try

xvfb-run ./jasmine-headless-webkit -c -j /path/to/somewhere/spec/javascripts/support/jasmine.yml

greezeyfreezey: try `xvfb-run ./jasmine-headless-webkit -c -j /path/to/somewhere/spec/javascripts/support/jasmine.yml`
brianjolly commented 2012-03-02 00:53:33 +00:00 (Migrated from github.com)

xvfb-run works great. Thanks Morgan.

xvfb-run works great. Thanks Morgan.
Sign in to join this conversation.
No Label
bug
doc
feature
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: github-migration/jasmine-headless-webkit#79
No description provided.