Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Fails to read password on Ruby 2.0 on Windows 8 #23

Open
mattwynne opened this issue Apr 2, 2013 · 6 comments
Open

Fails to read password on Ruby 2.0 on Windows 8 #23

mattwynne opened this issue Apr 2, 2013 · 6 comments

Comments

@mattwynne
Copy link
Contributor

As reported by @ptrelford.

Here's a stack trace:

C:\Users\Phil>relish projects:add ptrelford/cellz
Please enter your Relish credentials.
Email: ptrelford@hotmail.com
Password: DL is deprecated, please use Fiddle
C:/Ruby200-x64/lib/ruby/2.0.0/Win32API.rb:14:in `initialize': No such file or di
rectory (LoadError)
        from C:/Ruby200-x64/lib/ruby/2.0.0/Win32API.rb:14:in `dlopen'
        from C:/Ruby200-x64/lib/ruby/2.0.0/Win32API.rb:14:in `initialize'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/relish-0.6/lib/relish/ui.rb:26:in `new'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/relish-0.6/lib/relish/ui.rb:26:in `ask_for_password_on_windows'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/relish-0.6/lib/relish/ui.rb:10:in `get_credentials'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/relish-0.6/lib/relish/commands/base.rb:57:in `get_api_token'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/relish-0.6/lib/relish/commands/base.rb:51:in `get_and_store_api_token'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/relish-0.6/lib/relish/commands/base.rb:16:in `block in <class:Base>'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/relish-0.6/lib/relish/commands/dsl/option.rb:16:in `instance_exec'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/relish-0.6/lib/relish/commands/dsl/option.rb:16:in `block (2 levels) in define'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/relish-0.6/lib/relish/commands/base.rb:64:in `resource'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/relish-0.6/lib/relish/commands/projects.rb:15:in `block in <class:Projects>'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/relish-0.6/lib/relish/commands/dsl/command.rb:11:in `instance_exec'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/relish-0.6/lib/relish/commands/dsl/command.rb:11:in `block (2 levels) in define'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/relish-0.6/lib/relish/command.rb:23:in `run'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/relish-0.6/bin/relish:11:in`<top (required)>'
        from C:/Ruby200-x64/bin/relish:23:in `load'
        from C:/Ruby200-x64/bin/relish:23:in `<main>' 

It looks like the problem is this code which uses a Win32 API call that's probably outmoded.

This looks like a better solution:
http://stackoverflow.com/questions/133719/how-can-i-read-a-password

@Stewartarmbrecht
Copy link

Any chance in getting this fixed? I would like to use Relish but I am running on Windows 8.
Is there a work around?

@mattwynne
Copy link
Contributor Author

There is a workaround @Stewartarmbrecht. We can manually create the token file. Email support@relishapp.com with your account details and I'll explain what you need to do.

@Stewartarmbrecht
Copy link

Thanks but I just used cloud 9 instead.

On Tue, Aug 19, 2014 at 5:14 PM, Matt Wynne notifications@github.com
wrote:

There is a workaround @Stewartarmbrecht
https://github.com/Stewartarmbrecht. We can manually create the token
file. Email support@relishapp.com with your account details and I'll
explain what you need to do.


Reply to this email directly or view it on GitHub
#23 (comment)
.

@enkessler
Copy link

@mattwynne This problem still exists and is preventing me from having my project's documentation added to Relish.

@mattwynne
Copy link
Contributor Author

@enkessler I'm sorry to hear that. I'm afraid Relish is not a priority for us now - we're focussing on its replacement Cucumber Pro. Since I also don't have a Windows machine, it doesn't stack up for me to easily fix this.

I'd be happy to help you fix it, if you're interested to work with me on it?

@enkessler
Copy link

enkessler commented Sep 15, 2016

@mattwynne It's fine for now. I ended up digging up an older version of Ruby and using that to push out the docs.

Is there a timeline for Cucumber Pro?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants