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

Error with add config #62

Closed
kendofriendo opened this issue Dec 28, 2019 · 1 comment · Fixed by #72
Closed

Error with add config #62

kendofriendo opened this issue Dec 28, 2019 · 1 comment · Fixed by #72

Comments

@kendofriendo
Copy link

C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/tty-0.10.0/lib/tty/commands/add.rb:69:in `read': No such file or directory @ rb_sysopen - li
b/rev2test/cli.rb (Errno::ENOENT)
@slowbro
Copy link
Contributor

slowbro commented Sep 23, 2020

I think this is a documentation issue. I get this same error if I try running a teletype command outside of the app directory:

[katelyn@h code]$ teletype new my-cool-app
Creating gem 'my-cool-app'...
Code of conduct enabled in config
      create  my-cool-app/Gemfile
      create  my-cool-app/lib/my/cool/app.rb
      create  my-cool-app/lib/my/cool/app/version.rb
      create  my-cool-app/my-cool-app.gemspec
      create  my-cool-app/Rakefile
      create  my-cool-app/README.md
      create  my-cool-app/bin/console
      create  my-cool-app/bin/setup
      create  my-cool-app/.gitignore
      create  my-cool-app/.travis.yml
      create  my-cool-app/.rspec
      create  my-cool-app/spec/spec_helper.rb
      create  my-cool-app/spec/my/cool/app_spec.rb
      create  my-cool-app/CODE_OF_CONDUCT.md
      append  my-cool-app/README.md
      inject  my-cool-app/my-cool-app.gemspec
      create  my-cool-app/lib/my/cool/app/cli.rb
      create  my-cool-app/lib/my/cool/app/command.rb
      create  my-cool-app/exe/my-cool-app
      create  my-cool-app/LICENSE.txt
      create  my-cool-app/lib/my/cool/app/commands/.gitkeep
      create  my-cool-app/lib/my/cool/app/templates/.gitkeep
      create  my-cool-app/spec/integration/.gitkeep
      create  my-cool-app/spec/support/.gitkeep
      create  my-cool-app/spec/unit/.gitkeep
Initializing git repo in /home/katelyn/code/my-cool-app

Your teletype project has been created successfully.

Run "teletype help" for more commands.
[katelyn@h code]$ teletype add config
Traceback (most recent call last):
	11: from /home/katelyn/.rvm/gems/ruby-2.6.5/bin/ruby_executable_hooks:24:in `<main>'
	10: from /home/katelyn/.rvm/gems/ruby-2.6.5/bin/ruby_executable_hooks:24:in `eval'
	 9: from /home/katelyn/.rvm/gems/ruby-2.6.5/bin/teletype:23:in `<main>'
	 8: from /home/katelyn/.rvm/gems/ruby-2.6.5/bin/teletype:23:in `load'
	 7: from /home/katelyn/.rvm/gems/ruby-2.6.5/gems/tty-0.10.0/exe/teletype:14:in `<top (required)>'
	 6: from /home/katelyn/.rvm/gems/ruby-2.6.5/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
	 5: from /home/katelyn/.rvm/gems/ruby-2.6.5/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
	 4: from /home/katelyn/.rvm/gems/ruby-2.6.5/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
	 3: from /home/katelyn/.rvm/gems/ruby-2.6.5/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
	 2: from /home/katelyn/.rvm/gems/ruby-2.6.5/gems/tty-0.10.0/lib/tty/cli.rb:87:in `add'
	 1: from /home/katelyn/.rvm/gems/ruby-2.6.5/gems/tty-0.10.0/lib/tty/commands/add.rb:69:in `execute'
/home/katelyn/.rvm/gems/ruby-2.6.5/gems/tty-0.10.0/lib/tty/commands/add.rb:69:in `read': No such file or directory @ rb_sysopen - lib/code/cli.rb (Errno::ENOENT)

The "Overview" section of the README makes it seem like you'd run these commands in succession; but in reality, you need to cd into 'my-cool-app' first.

In addition to a doc update, it may be nice to check if the PWD is a valid teletype app.

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

Successfully merging a pull request may close this issue.

2 participants