Code Monkey home page Code Monkey logo

Comments (6)

piotrmurach avatar piotrmurach commented on June 21, 2024 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.

jedschneider avatar jedschneider commented on June 21, 2024 1

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.

konung avatar konung commented on June 21, 2024

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.

konung avatar konung commented on June 21, 2024

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.

AsifulNobel avatar AsifulNobel commented on June 21, 2024

@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.

AsifulNobel avatar AsifulNobel commented on June 21, 2024

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 -

image

I remember setting the writers array to [stream] after compacting it once and everything started working on subsequent runs.

https://github.com/piotrmurach/tty-command/blob/1340c436e8c111dc9eb94997c5cf818bc8bfd42e/lib/tty/command/process_runner.rb#L90-L93

Nevertheless I am happy with the output I have got and thanks @piotrmurach for creating these gems. 🏆

from tty.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.