Giter Site home page Giter Site logo

Comments (11)

notwaldorf avatar notwaldorf commented on July 28, 2024 1

@KernelDeimos I'm using oh-my-zsh, so this should work in zsh as well :(

from tiny-care-terminal.

notwaldorf avatar notwaldorf commented on July 28, 2024 1

As of version 1.2.0 there's a new way to use the terminal that doesn't involve the bash script, that should fix your problems. To use that, set the TTC_GITBOT environment variable to gitlog. This will become the default way in the future, I'm just giving it a bit of time in the wild before switching to it

from tiny-care-terminal.

Garbee avatar Garbee commented on July 28, 2024

Thanks for the report, do you mind checking to see if the patch in #42 fixes the problem for you? I have a strong feeling this is due to the way the spawn call is being constructed. Not sure why it works in some environments though but not others.

from tiny-care-terminal.

michaelbrawn avatar michaelbrawn commented on July 28, 2024

That does prevent the exception when I change both today and week, but I'm not seeing any commits when loading tiny-care-terminal in iterm or terminal
image

from tiny-care-terminal.

KernelDeimos avatar KernelDeimos commented on July 28, 2024

I also just received this error, and like @michaelbrawn I was using zsh. I just tried it in bash and it works fine! So, for some reason this doesn't work in zsh... I'll look into this if I have the time

from tiny-care-terminal.

michaelbrawn avatar michaelbrawn commented on July 28, 2024

Bash and fish worked for me, but still not getting commits in any of them. It's potentially an issue with my env variables.

from tiny-care-terminal.

KernelDeimos avatar KernelDeimos commented on July 28, 2024

So, I have no idea why this works, but replacing
var spawn = require( 'child_process' ).spawn;
with
var spawn = require( 'child_process' ).exec;
actually fixes this!

¯\(ツ)

from tiny-care-terminal.

inputsh avatar inputsh commented on July 28, 2024

@KernelDeimos is right, the hotfix from #42 helped me get rid of the first out of two messages, but the second remained. Switching .spawn to .exec helped get rid of the second error message too.

from tiny-care-terminal.

michaelbrawn avatar michaelbrawn commented on July 28, 2024

The changes in #18 work for me. I also had to change my TTC_REPOS to use the absolute path to my repo directory (/Users/username/repos/)

from tiny-care-terminal.

notwaldorf avatar notwaldorf commented on July 28, 2024

I think there are still a lot of problems with #18, so I will make the exec change today (and add the TTC_DEPTH while i'm at it)

Update: switching from spawn to exec definitely doesn't work for me :(

from tiny-care-terminal.

germyjen avatar germyjen commented on July 28, 2024

Ok, here are the steps I took to get my tiny care terminal to boot:

  1. update the today and week (lines 119 and 127 in care.js), to match
    var today = spawn(__dirname + '/standup-helper.sh' + config.repos, [config.repos], {shell:true});
    var week = spawn(__dirname + '/standup-helper.sh', ['-m ' + config.depth + ' -d 7', config.repos], {shell:true});

  2. I updated the spawn as indicated in this thread to:
    var spawn = require('child_process').exec;

  3. I chmoded the git-standup.sh file:
    sudo chmod -R a+rwx /usr/local/var/nodenv/versions/4.7.0/lib/node_modules/tiny-care-terminal/standup-helper.sh

(I'm using nodenv, update the path to match what you have locally)

Now it runs but has no content, so I'm going back to configuring the .zsh file :)

from tiny-care-terminal.

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.