RhoStudio fails to check token

T Tobias Kiefer 3 years ago
0 1 0

Hello guys,

When I try to build my Rhomobile-App in Rho Stuido, I get the following error right at the beginning:

PWD: C:\XXXX\XXXX
CMD: rake token:check
rake aborted!
Errno::ENOENT: No such file or directory - H:

Tasks: TOP => token:check => token:read => token:initialize => config:load
(See full trace by running task with --trace)
-$TIME$- message [ First timestamp ] time is { 2016-04-26T11:36:21Z } milliseconds from start (0)
RET: 1

When I run "rake run:anrdroid" directly from the command line everything works fine and I can build the app.

When I run "rake token:check" from the command line I get the following output:
-$TIME$- message [ First timestamp ] time is { 2016-04-26T11:42:33Z } milliseconds from start (0)
TokenValid[YES]
TokenChecked[NO]
SubscriptionValid[YES]
SubscriptionChecked[YES]

Any ideas how to solve my problem?

Thanks in advance
Tobi

Please register or login to post a reply

1 Replies

T Tobias Kiefer

Okay I found out what is the Probelm:

In the Rakefile the methode Dir.home() returns a directory which is actually not there. I do not know why this is the case but I fixed it with a little workaround:

def create_rhodes_home()

  #Workaround
  home = File.join("C:/Users/xxxx/",'.rhomobile')
  #Workaround

  if !File.exist?(home)
    FileUtils::mkdir_p home
  end

  home
end

Hope this helps someone in the future with the same problem.

Cheers,
Tobi

CONTACT
Can’t find what you’re looking for?