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

Puma dev command fails with type error due to nil #5

Open
cupakromer opened this issue Jan 29, 2019 · 0 comments
Open

Puma dev command fails with type error due to nil #5

cupakromer opened this issue Jan 29, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@cupakromer
Copy link
Contributor

Issue

puma-dev command fails initial setup with TypeError:

Traceback (most recent call last):
    19: from bin/radius-cli:29:in `<main>'
    18: from bin/radius-cli:29:in `load'
    17: from .gem/ruby/2.5.3/bundler/gems/radius-cli-3176b3aff35c/exe/radius-cli:5:in `<top (required)>'
    16: from .gem/ruby/2.5.3/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
    15: from .gem/ruby/2.5.3/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
    14: from .gem/ruby/2.5.3/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
    13: from .gem/ruby/2.5.3/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
    12: from .gem/ruby/2.5.3/gems/thor-0.20.3/lib/thor.rb:40:in `block in register'
    11: from .gem/ruby/2.5.3/gems/thor-0.20.3/lib/thor/invocation.rb:115:in `invoke'
    10: from .gem/ruby/2.5.3/gems/thor-0.20.3/lib/thor/group.rb:232:in `dispatch'
     9: from .gem/ruby/2.5.3/gems/thor-0.20.3/lib/thor/invocation.rb:133:in `invoke_all'
     8: from .gem/ruby/2.5.3/gems/thor-0.20.3/lib/thor/invocation.rb:133:in `map'
     7: from .gem/ruby/2.5.3/gems/thor-0.20.3/lib/thor/invocation.rb:133:in `each'
     6: from .gem/ruby/2.5.3/gems/thor-0.20.3/lib/thor/invocation.rb:133:in `block in invoke_all'
     5: from .gem/ruby/2.5.3/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
     4: from .gem/ruby/2.5.3/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
     3: from .gem/ruby/2.5.3/bundler/gems/radius-cli-3176b3aff35c/lib/radius/cli/puma_dev.rb:220:in `link_project'
     2: from .rubies/ruby-2.5.3/lib/ruby/2.5.0/pathname.rb:411:in `join'
     1: from .rubies/ruby-2.5.3/lib/ruby/2.5.0/pathname.rb:411:in `new'
.rubies/ruby-2.5.3/lib/ruby/2.5.0/pathname.rb:411:in `initialize': no implicit conversion of nil into String (TypeError)

Cause

The issue is caused by app_domain not being defined:

def link_project
puts "\nLinking project..."
link_dir = Pathname("~/.puma-dev").expand_path
link_path = link_dir.join(app_domain)

@cupakromer cupakromer added the bug Something isn't working label Jan 29, 2019
@cupakromer cupakromer self-assigned this Jan 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant