Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

TypeError when using cli_options #15

Open
sathlan opened this issue Apr 20, 2015 · 0 comments
Open

TypeError when using cli_options #15

sathlan opened this issue Apr 20, 2015 · 0 comments

Comments

@sathlan
Copy link

sathlan commented Apr 20, 2015

Hi,

if using cli_options I got

ERROR - Guard::RemoteSync failed to achieve its <start>, exception was:
> [#57B2647BFC01] TypeError: no implicit conversion of nil into String
> [#57B2647BFC01] /home/chem/.gem/ruby/gems/guard-remote-sync-0.1.0/lib/guard/remote-sync.rb:51:in `expand_path'
> [#57B2647BFC01] /home/chem/.gem/ruby/gems/guard-remote-sync-0.1.0/lib/guard/remote-sync.rb:51:in `start'

this is because option_valid pass but source is missing in the Guard::Compat::UI.info.

I enclosed everything in

    def start
      throw([:task_has_failed], "Guard::RemoteSync options invalid") unless options_valid?
      unless @options[:cli_options]
         ...
      end
   end

It makes it work, but not sure it looks good.
++

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

1 participant