Giter Club home page Giter Club logo

Comments (6)

remi avatar remi commented on June 4, 2024

Can you paste the content of mainapp.yml here please?

from teamocil.

mitchellhislop avatar mitchellhislop commented on June 4, 2024

-> .teamocil cat mainapp.yml
session:
name: "InboxDollars"
windows:

  • name: "simple-one-and-three-splits"
    splits:
    • cmd: "echo 'first split'"
    • cmd: "echo 'second split'"
      width: 50
    • cmd: "echo 'third split'"
      height: 66
      target: bottom-right
    • cmd: "echo 'fourth split'"
      height: 50
      target: bottom-right

It was also failing when I use the examples from the readme.

from teamocil.

remi avatar remi commented on June 4, 2024

That's weird. It's like each_with_index does not return an Enumerable. Can you tell me which version of Ruby you are running, and also, the output of this line in irb:

[:a, :b, :c].each_with_index.map { |item, index| "item: #{item}, index: #{index}" }

Thanks!

from teamocil.

mfrost avatar mfrost commented on June 4, 2024

Looks like he's on 1.8 from the stack trace. IIRC, 1.8 doesn't return an enumerable for those methods. Just recently ran across it on SO: http://stackoverflow.com/questions/4697557/how-to-map-with-index-in-ruby

from teamocil.

remi avatar remi commented on June 4, 2024

(Thank you @mfrost for the hint)

I installed ruby-1.8.6-p420 on my machine and teamocil does not work indeed. I don’t think 1.8.6 is used enough for me to add extra code in teamocil to support it.

I’m going to close the issue and suggest that you upgrade to 1.8.7 or 1.9.2, you won’t regret it :)

Thanks!

from teamocil.

zarmstrong avatar zarmstrong commented on June 4, 2024

I know this is closed, but I wanted to add my perspective. I am on redhat enterprise linux 5 and there is no option to go to 1.9 without using third party packages. In a corporate environment, we cannot do this, so I am prevented from using teamocil.

from teamocil.

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.