Comments (16)
I had the same problem, and traced it to curly braces in the commit messages wreaking havoc with the "tag parser" implemented in the blessed library. The simplest fix is to set tags: false
in makeBox()
, but I'm not sure if there is an unrelated reason it needs to be set to true
. The alternative is to do something like content = content.replace(/[{}]/g, m => m === '{' ? '{open}' : '{close}');
inside getCommits()
. Happy to submit a tiny-PR if you let me know which solution you think would be more appropriate :)
from tiny-care-terminal.
It looks like you only have 2 bots in TTC_BOTS -- i think that's where the slice is failing, maybe. Might adding a third?
from tiny-care-terminal.
I also tried with the default TTC_BOTS and an empty value. As mentioned, only the TTC_REPOS variable affects this issue.
from tiny-care-terminal.
I really can't repro this, nor have heard of anyone else having problems in this way :(
from tiny-care-terminal.
Then I'm happy for everyone else 👍 I'll leave this open and try to debug myself.
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/ Would you mind updating to that and setting the TTC_GITBOT
environment variable to gitlog
, to see if that fixes your problems?
from tiny-care-terminal.
The problem resolved on its own recently. Hard to find out afterwards what the real reason was (such as the state of my 200+ Git repos)... 1.2.0 is also working fine for me. We can close this and hope it doesn't happen anymore ;) Thanks!
from tiny-care-terminal.
I'm also getting this error, and it's caused by a specific one of my git repos, it seems. 😢
from tiny-care-terminal.
@jarednorman I've noticed I couldn't use a git repo with a dot in the name. Maybe it's that? :(
from tiny-care-terminal.
No dot or any other weird characters. It's just of the format "fooBar".
from tiny-care-terminal.
I've noticed I couldn't use a git repo with a dot in the name. Maybe it's that? :(
@notwaldorf Is this a git-log or an git-standup issue? I think this should be fixed!
from tiny-care-terminal.
Changing between git-log/git-standup has no effect on the error for me. The only thing that changes whether I get this error is whether I include this one repo I have in TTC_REPOS.
from tiny-care-terminal.
Mysteriously just started working today. 😖
from tiny-care-terminal.
I also had this problem with just one repo, which had curly braces in commit messages. I applied @cfinucane's patch and it works. 😀
from tiny-care-terminal.
Having the same issue:
TypeError: Cannot read property 'slice' of null
at /usr/local/lib/node_modules/tiny-care-terminal/node_modules/blessed/lib/program.js:2543:35
at Array.forEach (<anonymous>)
at Program._attr (/usr/local/lib/node_modules/tiny-care-terminal/node_modules/blessed/lib/program.js:2542:11)
at Box.Element._parseTags (/usr/local/lib/node_modules/tiny-care-terminal/node_modules/blessed/lib/widgets/element.js:498:26)
at Box.Element.parseContent (/usr/local/lib/node_modules/tiny-care-terminal/node_modules/blessed/lib/widgets/element.js:393:22)
at Box.Element.render (/usr/local/lib/node_modules/tiny-care-terminal/node_modules/blessed/lib/widgets/element.js:1839:8)
at /usr/local/lib/node_modules/tiny-care-terminal/node_modules/blessed/lib/widgets/screen.js:738:8
at Array.forEach (<anonymous>)
at Screen.render (/usr/local/lib/node_modules/tiny-care-terminal/node_modules/blessed/lib/widgets/screen.js:735:17)
at gitbot.getCommitsFromRepos (/usr/local/lib/node_modules/tiny-care-terminal/care.js:207:16)
at async.each.err (/usr/local/lib/node_modules/tiny-care-terminal/gitbot.js:88:5)
at /usr/local/lib/node_modules/tiny-care-terminal/node_modules/async/lib/async.js:52:16
at done (/usr/local/lib/node_modules/tiny-care-terminal/node_modules/async/lib/async.js:246:17)
at /usr/local/lib/node_modules/tiny-care-terminal/node_modules/async/lib/async.js:44:16
at gitlog (/usr/local/lib/node_modules/tiny-care-terminal/gitbot.js:82:9)
at /usr/local/lib/node_modules/tiny-care-terminal/node_modules/gitlog/index.js:132:5
> node -v
v8.11.2
> npm -v
5.6.0
Probably also due to commits titled like
Rename ./build{,-dev}.sh to ./webpack-build{,-dev}.sh
For me it was also "fixed" by changing the tags:
option in function makeBox(label)
to false
. (In /usr/local/bin/tiny-care-terminal
)
@AndiDog Would you reopen and apply @cfinucane 's patch? :)
from tiny-care-terminal.
I won't find the time in the near future to work on this issue. Maybe somebody can create a pull-request? It shouldn't be that hard. 🤞
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.