Comments (11)
@KernelDeimos I'm using oh-my-zsh, so this should work in zsh as well :(
from tiny-care-terminal.
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.
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.
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
from tiny-care-terminal.
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.
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.
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.
@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.
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.
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.
Ok, here are the steps I took to get my tiny care terminal to boot:
-
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});
-
I updated the spawn as indicated in this thread to:
var spawn = require('child_process').exec;
-
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)
- Doesn't draw correctly in cool-retro-term when in a pane using GNU Screen or Byobu
- Issues installing tiny-care-terminal HOT 2
- Select a random AnsiArt with every new message
- Parrot box breaks for large texts HOT 1
- Longer tweets are getting cut off, links not separated? HOT 8
- Only show user's own commits? HOT 2
- "RangeError: Invalid count value" since updating node HOT 6
- Started crashing today HOT 12
- App Crashes On Start HOT 4
- Is there a way to disable twitter module? HOT 1
- internal/modules/cjs/loader.js:583 HOT 4
- Installation fails because it needs python2.x instead of python 3.x HOT 2
- Installation fails HOT 3
- Error with Twitter bot HOT 6
- event-stream dependency vulnerability HOT 1
- Comma seperated list of Repos not working HOT 3
- TypeError: Cannot read property 'replace' of null error HOT 3
- Install failed on `node-gyp rebuild` HOT 13
- ReferenceError: gitUsername is not defined HOT 8
- TypeError: content.replace is not a function HOT 5
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 tiny-care-terminal.