Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating packages raises exceptions when not using Chingu #27

Open
sparkertime opened this issue Apr 23, 2012 · 1 comment
Open

Updating packages raises exceptions when not using Chingu #27

sparkertime opened this issue Apr 23, 2012 · 1 comment
Assignees
Labels
Milestone

Comments

@sparkertime
Copy link

Thanks so much for a great tool, much appreciated.

In https://github.com/citizenparker/the-two-of-us, a project using Gosu and Chipmunk but not Chingu, all is well when I initially build the package. However, if I make changes and rebuild, or then package up the build, I get the error below. I've traced it down to a line in lib/releasy/builders/osx_app.rb that seems to assume I have Chingu installed.

** Invoke build:osx (first_time)
** Invoke build:osx:app (first_time)
** Invoke pkg/the_two_of_us_0_0_1_OSX (first_time)
** Invoke assets/agent.png (first_time, not_needed)
** Invoke assets/agent_dead.png (first_time, not_needed)
** Invoke assets/background.png (first_time, not_needed)
** Invoke assets/bullet.png (first_time, not_needed)
** Invoke assets/game.icns (first_time, not_needed)
** Invoke assets/goal.png (first_time, not_needed)
** Invoke assets/map.txt (first_time, not_needed)
** Invoke assets/masters/background.pxd (first_time, not_needed)
** Invoke assets/player.png (first_time, not_needed)
** Invoke assets/tile.png (first_time, not_needed)
** Invoke lib/agent.rb (first_time, not_needed)
** Invoke lib/bullet.rb (first_time, not_needed)
** Invoke lib/floor.rb (first_time, not_needed)
** Invoke lib/game_window.rb (first_time, not_needed)
** Invoke lib/goal.rb (first_time, not_needed)
** Invoke lib/map.rb (first_time, not_needed)
** Invoke lib/player.rb (first_time, not_needed)
** Invoke lib/tile.rb (first_time, not_needed)
** Invoke lib/utils.rb (first_time, not_needed)
** Invoke bin/main.rb (first_time, not_needed)
** Invoke wrappers/gosu-mac-wrapper-0.7.41.tar.gz (first_time, not_needed)
** Execute pkg/the_two_of_us_0_0_1_OSX
rake aborted!
No such file or directory - pkg/the_two_of_us_0_0_1_OSX/The Two of Us.app/Contents/Resources/lib/chingu
/Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:1406:in unlink' /Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:1406:inblock in remove_file'
/Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:1411:in platform_support' /Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:1405:inremove_file'
/Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:1394:in remove' /Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:770:inblock in remove_entry'
/Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:1448:in postorder_traverse' /Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:768:inremove_entry'
/Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:626:in block in rm_r' /Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:622:ineach'
/Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:622:in rm_r' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:inrm_r'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@thetwoofus/gems/releasy-0.2.2/lib/releasy/builders/osx_app.rb:144:in block in remove_gems' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@thetwoofus/gems/releasy-0.2.2/lib/releasy/builders/osx_app.rb:143:ineach'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@thetwoofus/gems/releasy-0.2.2/lib/releasy/builders/osx_app.rb:143:in remove_gems' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@thetwoofus/gems/releasy-0.2.2/lib/releasy/builders/osx_app.rb:94:inbuild'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@thetwoofus/gems/releasy-0.2.2/lib/releasy/builders/osx_app.rb:69:in block in generate_tasks' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:incall'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in block in execute' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:ineach'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in execute' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:158:inblock in invoke_with_call_chain'
/Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in mon_synchronize' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:151:ininvoke_with_call_chain'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:176:in block in invoke_prerequisites' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:174:ineach'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:174:in invoke_prerequisites' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:157:inblock in invoke_with_call_chain'
/Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in mon_synchronize' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:151:ininvoke_with_call_chain'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:176:in block in invoke_prerequisites' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:174:ineach'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:174:in invoke_prerequisites' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:157:inblock in invoke_with_call_chain'
/Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in mon_synchronize' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:151:ininvoke_with_call_chain'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:144:in invoke' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:116:ininvoke_task'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in block (2 levels) in top_level' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:ineach'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in block in top_level' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:instandard_exception_handling'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:88:in top_level' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:66:inblock in run'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in standard_exception_handling' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:63:inrun'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/bin/rake:33:in <top (required)>' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/bin/rake:19:inload'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/bin/rake:19:in `

'
Tasks: TOP => build:osx => build:osx:app => pkg/the_two_of_us_0_0_1_OSX

@bil-bas
Copy link
Collaborator

bil-bas commented Apr 23, 2012

The osx wrapper contains a copy of chingu which is removed by releasy,
but replaced with the bundled gem if required. I suggest deleting any
generated files and doing a package - not a build first. Also using
verbose mode can help in diagnosis of problems. Best I can suggest at
the moment, since I don't have access to a computer for the time
being. Thanks very much for the report!

On 23/04/2012, Scott Parker
reply@reply.github.com
wrote:

Thanks so much for a great tool, much appreciated.

In https://github.com/citizenparker/the-two-of-us, a project using Gosu and
Chipmunk but not Chingu, all is well when I initially build the package.
However, if I make changes and rebuild, or then package up the build, I get
the error below. I've traced it down to a line in
lib/releasy/builders/osx_app.rb that seems to assume I have Chingu
installed.

** Invoke build:osx (first_time)
** Invoke build:osx:app (first_time)
** Invoke pkg/the_two_of_us_0_0_1_OSX (first_time)
** Invoke assets/agent.png (first_time, not_needed)
** Invoke assets/agent_dead.png (first_time, not_needed)
** Invoke assets/background.png (first_time, not_needed)
** Invoke assets/bullet.png (first_time, not_needed)
** Invoke assets/game.icns (first_time, not_needed)
** Invoke assets/goal.png (first_time, not_needed)
** Invoke assets/map.txt (first_time, not_needed)
** Invoke assets/masters/background.pxd (first_time, not_needed)
** Invoke assets/player.png (first_time, not_needed)
** Invoke assets/tile.png (first_time, not_needed)
** Invoke lib/agent.rb (first_time, not_needed)
** Invoke lib/bullet.rb (first_time, not_needed)
** Invoke lib/floor.rb (first_time, not_needed)
** Invoke lib/game_window.rb (first_time, not_needed)
** Invoke lib/goal.rb (first_time, not_needed)
** Invoke lib/map.rb (first_time, not_needed)
** Invoke lib/player.rb (first_time, not_needed)
** Invoke lib/tile.rb (first_time, not_needed)
** Invoke lib/utils.rb (first_time, not_needed)
** Invoke bin/main.rb (first_time, not_needed)
** Invoke wrappers/gosu-mac-wrapper-0.7.41.tar.gz (first_time, not_needed)
** Execute pkg/the_two_of_us_0_0_1_OSX
rake aborted!
No such file or directory - pkg/the_two_of_us_0_0_1_OSX/The Two of
Us.app/Contents/Resources/lib/chingu
/Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:1406:in
unlink' /Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:1406:in block in remove_file'
/Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:1411:in
platform_support' /Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:1405:in remove_file'
/Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:1394:in
remove' /Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:770:in block in remove_entry'
/Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:1448:in
postorder_traverse' /Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:768:in remove_entry'
/Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:626:in
block in rm_r' /Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:622:in each'
/Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:622:in
rm_r' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in rm_r'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@thetwoofus/gems/releasy-0.2.2/lib/releasy/builders/osx_app.rb:144:in
block in remove_gems' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@thetwoofus/gems/releasy-0.2.2/lib/releasy/builders/osx_app.rb:143:in each'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@thetwoofus/gems/releasy-0.2.2/lib/releasy/builders/osx_app.rb:143:in
remove_gems' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@thetwoofus/gems/releasy-0.2.2/lib/releasy/builders/osx_app.rb:94:in build'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@thetwoofus/gems/releasy-0.2.2/lib/releasy/builders/osx_app.rb:69:in
block in generate_tasks' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in call'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in
block in execute' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in each'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in
execute' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:158:in block in invoke_with_call_chain'
/Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in
mon_synchronize' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:151:in invoke_with_call_chain'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:176:in
block in invoke_prerequisites' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:174:in each'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:174:in
invoke_prerequisites' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:157:in block in invoke_with_call_chain'
/Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in
mon_synchronize' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:151:in invoke_with_call_chain'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:176:in
block in invoke_prerequisites' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:174:in each'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:174:in
invoke_prerequisites' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:157:in block in invoke_with_call_chain'
/Users/my_user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in
mon_synchronize' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:151:in invoke_with_call_chain'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task.rb:144:in
invoke' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:116:in invoke_task'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
block (2 levels) in top_level' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in each'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
block in top_level' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in standard_exception_handling'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:88:in
top_level' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:66:in block in run'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in
standard_exception_handling' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:63:in run'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/bin/rake:33:in
<top (required)>' /Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/bin/rake:19:inload'
/Users/my_user/.rvm/gems/ruby-1.9.3-p0@global/bin/rake:19:in `

'
Tasks: TOP => build:osx => build:osx:app => pkg/the_two_of_us_0_0_1_OSX


Reply to this email directly or view it on GitHub:
#27

@ghost ghost assigned bil-bas Aug 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants