Comments (1)
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.
from tty.
Related Issues (20)
- teletype new broken in 0.9.0 HOT 1
- Bundler 2 compatibility HOT 24
- Feature request: add hyperlinks support HOT 2
- Overwrite executable warning when trying to install gem HOT 1
- `teletype new` errors if path contains space HOT 1
- integration tests don't work ootb HOT 2
- e2e testing doesn't feel good HOT 1
- Warnings with ruby 2.7 HOT 1
- Add vim modeline for indentation HOT 5
- Documentation for template usage HOT 1
- Initial project creation; 'teletype' command throws exception until gemspec is edited HOT 1
- Only require `tty-...` gems that are used in the app HOT 1
- Getting a success indicator in TTY::File.copy_file() HOT 2
- teletype new app -> wrong number of arguments (given 1, expected 0) HOT 6
- TTY is using old version of gem unicorn-display_width HOT 3
- tty not working with Ruby 3.0.0 HOT 1
- tty is not accepting input when generating a new app using Ruby 2.7.2 via asdf HOT 6
- `teletype new` rejects argument HOT 9
- Consider upgrading versions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tty.