rake -T doesn't output anything, please help

I am in my app directory, and when I issue a rake -T, it shows just the path to my Rhodes gem and doesn't output the rake tasks :

E:\myapp>rake -T

cd f:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rhodes-3.3.2

E:\myapp>

What's the reason for this? It was working till yesterday.

Darryn Campbell
Mark,Try to do arake -T -

Mark,

Try to do a

rake -T --trace

You will get some more info. At this moment the only thing that I know from your message is that you use an old version of rhodes

~Pietro

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Mark Nongkhlaw
Yes, I'm on version 3.3.2rake

Yes, I'm on version 3.3.2

rake -T --trace   gives me the exact same output

E:\myapp>rake -T

cd f:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rhodes-3.3.2

E:\myapp>

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Sunil Kumar
Havent seen this behavior

Havent seen this behavior before. Are you able to clean or build your app via rake commands?

Sunil

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Mark Nongkhlaw
Yes, I can and that's why its

Yes, I can and that's why its baffling me too. I suspect something is corrupt, somewhere, but I couldn't figure out what is.

The Rhostudio is also behaving funny, same like what I experienced before in another machine.

Details here : https://developer.motorolasolutions.com/message/9397#9397

I just hope somebody can point me in the right direction.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Stanislav Volod...
HiPlease create new

Hi

Please create new application and try rake -T there. Just to investigate if issue is in application rakefile or in rhodes gem.

Regards,

Stanislav Volodarskiy

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Mark Nongkhlaw
OK from the command line :E:\

OK from the command line :

E:\>rhodes app test

Generating with app generator:

←[32m     [ADDED]←[0m  test/app/loading.png

←[32m     [ADDED]←[0m  test/rhoconfig.txt

←[32m     [ADDED]←[0m  test/build.yml

←[32m     [ADDED]←[0m  test/.gitignore

←[32m     [ADDED]←[0m  test/app/application.rb

←[32m     [ADDED]←[0m  test/app/index.erb

←[32m     [ADDED]←[0m  test/app/index.bb.erb

←[32m     [ADDED]←[0m  test/app/layout.erb

←[32m     [ADDED]←[0m  test/app/loading.html

←[32m     [ADDED]←[0m  test/Rakefile

←[32m     [ADDED]←[0m  test/app/helpers

←[32m     [ADDED]←[0m  test/icon

←[32m     [ADDED]←[0m  test/app/Settings

←[32m     [ADDED]←[0m  test/public

E:\>cd test

E:\test>rake -T --trace

cd f:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rhodes-3.3.2

E:\test>

The first command, i.e., rhodes app test took an inordinately long time to execute (well, maybe it was because I executed that command just after booting the PC, and there were some processes still running in the background).

I followed the above with

E:\test>rake run:wm

It built and brought up the device emulator successfully.

Please advise further.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Stanislav Volod...
HiPlease send me f:/RhoStudio

Hi


Please send me f:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rhodes-3.3.2/Rakefile.

Show me PATH and output of "ruby -v".

I'll try to investigate the issue.

Regards,

Stanislav Volodarskiy

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Mark Nongkhlaw
Rakefile attachedE:\test>ruby

Rakefile attached

E:\test>ruby -v

ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32]

E:\test>PATH

PATH=f:\RhoStudio\redis-2.4.0;f:\RhoStudio\ruby\bin;f:\RhoStudio\devkit\bin;f:\R

hoStudio\devkit\mingw\bin;f:\RhoStudio\make-3.81\bin;C:\Program Files\Nokia\PC C

onnectivity Solution\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:

\Program Files\IBM\Rational AppScan\;C:\Program Files\Microsoft SQL Server\80\To

ols\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\

Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools

\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\ID

E\PrivateAssemblies\;C:\Program Files\Java\jdk1.7.0_03\bin;e:\Qt\4.7.4\bin;D:\Pr

ogram Files\QuickTime\QTSystem\;C:\WINDOWS\system32\WindowsPowerShell\v1.0

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Stanislav Volod...
Can not reproduce on my side

Can not reproduce on my side.

Did you update/install gems recently?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Mark Nongkhlaw
I only installed Postgresql

I only installed Postgresql adapter gem, but it was working fine even after that.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Stanislav Volod...
Please show "gem list" output

Please show "gem list" output.

I suspect conflict between quite old Ruby and new gems.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Mark Nongkhlaw
actionmailer (3.2.6

actionmailer (3.2.6)

actionpack (3.2.6)

activemodel (3.2.8, 3.2.6)

activerecord (3.2.6)

activerecord-odbc-adapter (2.0)

activerecord-postgresql-adapter (0.0.1)

activerecord-sqlserver-adapter (3.2.9)

activeresource (3.2.6)

activesupport (3.2.8, 3.2.6, 3.1.0, 2.3.12)

akami (1.0.0)

arel (3.0.2)

builder (3.0.4, 3.0.3, 3.0.2, 3.0.0)

bundler (1.0.16)

coffee-rails (3.2.2)

coffee-script (2.2.0)

coffee-script-source (1.6.3, 1.3.3)

daemons (1.1.8, 1.1.6, 1.1.4, 1.0.10)

dbd-odbc (0.2.5)

dbi (0.4.3)

deprecated (3.0.0, 2.0.1)

diff-lcs (1.1.3, 1.1.2)

erubis (2.7.0)

eventmachine (1.0.0.rc.4 x86-mingw32, 1.0.0.beta.4.1 x86-mingw32, 0.12.10 ruby x86-mswin32-60)

execjs (1.4.0)

extlib (0.9.15)

gyoku (0.4.4)

highline (1.6.13, 1.6.11, 1.6.2, 1.5.2)

hike (1.2.3, 1.2.1)

httpi (0.9.6)

i18n (0.6.4, 0.6.1, 0.6.0)

journey (1.0.4)

jquery-rails (3.0.4, 2.1.3, 2.1.2, 2.0.2)

json (1.8.0, 1.7.5, 1.7.4, 1.7.3, 1.6.7, 1.6.5, 1.5.4, 1.4.6 x86-mingw32)

macaddr (1.0.0)

mail (2.4.4)

mime-types (1.23, 1.19, 1.18, 1.17.2, 1.16)

multi_json (1.7.7, 1.3.6, 1.1.0, 1.0.4, 1.0.3)

nokogiri (1.5.2 x86-mingw32, 1.5.0 x86-mingw32)

nori (1.1.0)

pg (0.15.1 x86-mingw32)

polyglot (0.3.3)

postgres-pr (0.6.3)

rack (1.4.5, 1.4.1, 1.4.0, 1.3.6, 1.3.4, 1.3.2, 1.2.1)

rack-cache (1.2)

rack-protection (1.2.0, 1.1.2)

rack-ssl (1.3.3, 1.3.2)

rack-test (0.6.2, 0.6.1)

rails (3.2.6)

railties (3.2.6)

rake (10.1.0, 0.9.2.2, 0.9.2, 0.8.7)

rcov (0.9.10)

rdoc (3.12.2, 3.12)

redis (2.2.2, 2.1.1)

redis-namespace (1.0.3, 0.10.0)

resque (1.19.0, 1.18.6, 1.17.1, 1.14.0)

rest-client (1.6.7, 1.6.1)

rhoconnect (3.1.1, 3.0.6)

rhoconnect-adapters (1.0.2)

rhoconnect-rb (0.3.1)

rhodes (3.3.2)

rhodes-translator (0.0.4)

rhomobile-debug (1.0.6)

rspec (2.6.0, 1.3.0)

rspec-core (2.6.4)

rspec-expectations (2.6.0)

rspec-mocks (2.6.0)

ruby-odbc (0.99994)

rubygems-update (1.8.10)

rubyzip (0.9.9, 0.9.6.1, 0.9.5, 0.9.4)

sass (3.2.10, 3.2.9, 3.2.1, 3.1.20)

sass-rails (3.2.6, 3.2.5)

savon (0.9.9)

sinatra (1.3.2, 1.3.1, 1.2.7, 1.2.6, 1.2.1)

sprockets (2.1.3)

sqlite3 (1.3.7 x86-mingw32, 1.3.6 x86-mingw32, 1.3.5 x86-mingw32, 1.3.4 x86-mingw32)

sqlite3-ruby (1.2.5 x86-mingw32)

systemu (2.4.1, 2.2.0)

templater (1.0.0)

thin (1.4.1, 1.3.1, 1.2.11 x86-mingw32, 1.2.7 x86-mingw32)

thor (0.18.1, 0.16.0, 0.15.4)

tilt (1.4.1, 1.3.3, 1.2.2)

treetop (1.4.14, 1.4.10)

tzinfo (0.3.37, 0.3.33)

uglifier (2.1.2, 2.1.1, 1.3.0, 1.2.7, 1.2.6)

uuid (2.3.2)

uuidtools (2.1.3, 2.1.2, 2.1.1)

vegas (0.1.11, 0.1.8, 0.1.7)

wasabi (2.1.0)

win32-api (1.4.8 x86-mingw32)

win32-process (0.6.6, 0.6.5)

windows-api (0.4.2, 0.4.0)

windows-pr (1.2.2, 1.2.1)

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Stanislav Volod...
HiOne more test. Create new

Hi

One more test. Create new directory and create there rakefile:
----------

desc 'Dummy task'

task :dummy do

  puts 'DUMMY'

end

----------


run "rake -T" there.

What is output?

Regards,

Stanislav Volodarskiy

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Mark Nongkhlaw
E:\mtest>rake -Trake dummy  #

E:\mtest>rake -T

rake dummy  # Dummy task

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Stanislav Volod...
Hi1. I suspect that you

Hi

1. I suspect that you indirectly updated rake gem.

2. Ruby is old (1.8.7).

3. Rake gem is new (10.1.0).

4. rhodes Rakefile contains hack on lines 34-39.

I think points 2, 3, 4 lead to "rake -T" mulfunction. To verify, remove or comment out hack in Rakefile and "rake -T" start to work.

I think "rake -T" will ok if you remove latest version of rake gem.

Hope this helps.

Regards,

Stanislav Volodarskiy

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Mark Nongkhlaw
Thanks a lot, rake -T now

Thanks a lot, rake -T now works.

The only thing I did was to comment out those hacked lines.

But I wonder who hacked my Rakefile? Virus?

Is this the same reason for this issue I mentioned :

The Rhostudio is also behaving funny, same like what I experienced before in another machine.

Details here : https://developer.motorolasolutions.com/message/9397#9397

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Stanislav Volod...
HiThis is not a virus. The

Hi

This is not a virus. The hack was inserted by rhodes team to hide internal tasks (tasks without description).

The main reason for both problems is big difference between Ruby and gem versions. You use quite old Ruby with newest gems. There is no guarantied compatibility between them.

Regards,

Stanislav Volodarskiy

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Mark Nongkhlaw
Ok, now I'd like my Rhostudio

Ok, now I'd like my Rhostudio to work again.

Would removing the latest rake gem help? And how to do that?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Stanislav Volod...
Higem uninstall rake -v 10.1

Hi

gem uninstall rake -v 10.1.0

Regards,

Stanislav Volodarskiy

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Mark Nongkhlaw
Thanks, but I also need to

Thanks, but I also need to know the version of rake I need to install that would match my Ruby version. I mean, the one that was bundled with my (old) Rhostudio installer.

Could you tell me that?

And is it only the rake gem that is causing the problem with Rhostudio not working properly or are there other gems that are causing these problems?

Thanks for your support!

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Stanislav Volod...
HiWith high probability Ruby

Hi

With high probability Ruby was bundled with earliest versions of gems. But you do not need to uninstall all except them. Moreover I do not recommend you to revert Ruby to original state. For two reasons:

1. New versions could contain bugfixes.

2. Old version could be incompatible with other gems - gems aren't bundled with Ruby.

Now you have tool (gem install/gem uninstall) and you can do experimentation. I recommend you to uninstall latest versions of rake gem one by one while bug is here (you need to restore "hack" in Rakefile to reproduce bug).

Regards,

Stanislav Volodarskiy

P.S. You can see original Ruby state by reinstallation of RhoStudio. But make backup before!

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Mark Nongkhlaw
The Rhostudio problem I

The Rhostudio problem I mentioned at https://developer.motorolasolutions.com/message/9397#9397 appears to be unrelated to the version of rake gem. Because in the machine, this is the "gem list" output and the version of rake is 0.9.2.2 (this also appears to be the version of rake that was installed along with Rhostudio), and "rake -T" also works :

actionmailer (3.2.6)

actionpack (3.2.6)

activemodel (3.2.6)

activerecord (3.2.6)

activeresource (3.2.6)

activesupport (3.2.6, 3.1.0, 2.3.12)

arel (3.0.2)

builder (3.0.0)

bundler (1.0.16)

coffee-rails (3.2.2)

coffee-script (2.2.0)

coffee-script-source (1.3.3)

daemons (1.1.6, 1.1.4, 1.0.10)

diff-lcs (1.1.3, 1.1.2)

erubis (2.7.0)

eventmachine (1.0.0.beta.4.1 x86-mingw32, 0.12.10 ruby x86-mswin32-60)

execjs (1.4.0)

extlib (0.9.15)

highline (1.6.11, 1.6.2, 1.5.2)

hike (1.2.1)

i18n (0.6.0)

journey (1.0.4)

jquery-rails (2.0.2)

json (1.7.4, 1.6.5, 1.5.4, 1.4.6 x86-mingw32)

macaddr (1.0.0)

mail (2.4.4)

mime-types (1.19, 1.17.2, 1.16)

multi_json (1.3.6, 1.0.4, 1.0.3)

nokogiri (1.5.0 x86-mingw32)

polyglot (0.3.3)

rack (1.4.1, 1.4.0, 1.3.6, 1.3.4, 1.3.2, 1.2.1)

rack-cache (1.2)

rack-protection (1.2.0, 1.1.2)

rack-ssl (1.3.2)

rack-test (0.6.1)

rails (3.2.6)

railties (3.2.6)

rake (0.9.2.2, 0.9.2, 0.8.7)

rcov (0.9.10)

rdoc (3.12)

redis (2.2.2, 2.1.1)

redis-namespace (1.0.3, 0.10.0)

resque (1.19.0, 1.18.6, 1.17.1, 1.14.0)

rest-client (1.6.7, 1.6.1)

rhoconnect (3.1.1, 3.0.6)

rhoconnect-adapters (1.0.2)

rhoconnect-rb (0.3.1)

rhodes (3.3.2)

rhodes-translator (0.0.4)

rhomobile-debug (1.0.6)

rspec (2.6.0, 1.3.0)

rspec-core (2.6.4)

rspec-expectations (2.6.0)

rspec-mocks (2.6.0)

rubygems-update (1.8.10)

rubyzip (0.9.5, 0.9.4)

sass (3.1.20)

sass-rails (3.2.5)

sinatra (1.3.2, 1.3.1, 1.2.7, 1.2.6, 1.2.1)

sprockets (2.1.3)

sqlite3 (1.3.6 x86-mingw32, 1.3.5 x86-mingw32, 1.3.4 x86-mingw32)

sqlite3-ruby (1.2.5 x86-mingw32)

systemu (2.4.1, 2.2.0)

templater (1.0.0)

thin (1.3.1, 1.2.11 x86-mingw32, 1.2.7 x86-mingw32)

thor (0.15.4)

tilt (1.3.3, 1.2.2)

treetop (1.4.10)

tzinfo (0.3.33)

uglifier (1.2.7)

uuid (2.3.2)

uuidtools (2.1.2, 2.1.1)

vegas (0.1.11, 0.1.8, 0.1.7)

win32-api (1.4.8 x86-mingw32)

win32-process (0.6.5)

windows-api (0.4.0)

windows-pr (1.2.1)

This is the Rhostudio console output when I try to run the app in Rhosimulator :

Clean started

ruby.exe: No such file or directory -- C:/myapp/rake (LoadError)

build started

ruby.exe: No such file or directory -- C:/myapp/rake (LoadError)

Error in build application

And as mentioned in that other thread, I have also uninstalled and reinstalled Rhostudio, but the problem persists.

So, I'm still wondering what the cause of the Rhostudio problem is, more specifically, why Rhosimulator refuses to run?

P.S. I think its better if you can respond in the other thread : https://developer.motorolasolutions.com/message/9397#9397

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments