Comments (6)
Hi Nick 👋
Thanks for giving the tty
project a try. I do apologise for the not-so-great experience. This gem requires an update!
Thanks also for this report! It seems to me that tty-comand
and this issue in particular is at fault. This will be a priority for me to fix. Though I cannot promise any timelines as I do this in my spare time.
from tty.
so, I ran into this today, ruby 3.0.1p64
Bundler version 2.2.17
and tty-0.10.0
and tty-command-0.9.0
I ran into a couple of issues where argument forwarding was broken and was not passing arguments through to the Thor executable that actually does the work of assembling the bundle gem
arguments from the options. But even once I spiked that and got it calling bundle correctly, I also ran into the ci option issue identified here. Once I hard coded the ci option in the list of arguments passed to bundler I ran into the next problem which was bundler asking about creating a changelog. AFAIK the changelog dialog does not have a cli flag to avoid the prompt, so at this point, I think we're sorta stuck until we can forward stdin arguments as I think folks in this thread have already identified.
One possible solution I can think of is to provide a workflow where you can provide an existing bootstrapped gem and it will instrument it for tty, instead of tty trying to wrap bundler. Basically this stuff here: https://github.com/piotrmurach/tty/blob/master/lib/tty/commands/new.rb#L142-L146.
bundle gem app
teletype bootstrap app
or something
from tty.
Update
Looks like if I switch to Ruby 2.6.6 tty new app works as expected. But it also didn't ask me about CircleCI/Travis, etc (Huh ? moment?)
Also I noticed that tty is using an old version of tty-command, which is why it could be having trouble with newer version of Ruby? Just an idea.
from tty.
As far as I can tell the culprit is actually bundler? My ruby 2.7.2 had 2.2.6 as the default version of bundler. But my Ruby 2.6.6 (that didn't give me problems) was running 1.7.3 as the default.
from tty.
@piotrmurach Is there any update on this issue? I cloned the master branch of tty
today and ran into this issue. I am using ruby 3.0.1 with asdf. If this is not fixed, is there any workaround?
from tty.
So after posting the comment, I was trying to debug the issue with VSCode and ran the command a couple of times. Then everything started working again. But the CI configuration prompt no longer appears and I am not sure what fixed the problem. Below is a screenshot of the terminal output -
I remember setting the writers array to [stream]
after compacting it once and everything started working on subsequent runs.
Nevertheless I am happy with the output I have got and thanks @piotrmurach for creating these gems. 🏆
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
- Error with add config 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
- `teletype new` rejects argument HOT 11
- 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.