Giter Site home page Giter Site logo

Comments (38)

notwaldorf avatar notwaldorf commented on July 28, 2024 2

@jackmransom @DanielAndreasen 1.0.8 tagged! Let me know if it fixes your problems!

from tiny-care-terminal.

DanielAndreasen avatar DanielAndreasen commented on July 28, 2024 1

Can't you just assume git-standup is in the PATH? Then you don't have to do this path trick.

from tiny-care-terminal.

DanielAndreasen avatar DanielAndreasen commented on July 28, 2024 1

@notwaldorf I have upgraded to version 1.0.7 and still doesn't work! But wait, when I run sh standup-helper.sh /some/path I get an error. However, if I run bash standup-helper.sh /some/path everything works fine. So I simple changed line 105 and 113 in care.js to use bash instead and all works! 😀

The error I get is:

standup-helper.sh: 11: standup-helper.sh: Syntax error: "(" unexpected

If I remove the usage function the problem is also solved. As the error says, I think you just use slightly wrong syntax error for sh, but for bash it is fine.

from tiny-care-terminal.

cfjedimaster avatar cfjedimaster commented on July 28, 2024 1

I'm seeing this myself with Windows Bash. When I update tiny-care-terminal, I get the following issue:

npm WARN deprecated [email protected]: v1 is no longer maintained, please upgrade to v2.0+ as soon possible.
npm WARN deprecated [email protected]: use cross-spawn or [cross-spawn-async](https://gi
thub.com/IndigoUnited/node-cross-spawn-async) instead.
npm WARN deprecated [email protected]: Use uuid module instead
/usr/bin/tiny-care-terminal -> /usr/lib/node_modules/tiny-care-terminal/care.js
/usr/lib
├── UNMET PEER DEPENDENCY git-standup@^2.1.8
└── [email protected]

I can install git-standup by itself though w/o error. I just uninstalled/reinstalled to be sure I had the latest, but yep, no git commits. Is there a way for me to debug to provide more information?

from tiny-care-terminal.

Someguy123 avatar Someguy123 commented on July 28, 2024

Sadly I can't seem to get the GIT working either. I installed it via NPM, node version v6.3.1.

from tiny-care-terminal.

DanielAndreasen avatar DanielAndreasen commented on July 28, 2024

I manage to get npm to install git-standup in the ~/node_modules folder*. If I run: ./standup-helper.sh /path/to/git/repos it works perfectly fine. If I run with sh standup-helper.sh ... it doesn't not work (this is how I think the JS is working).

* Uninstall npm, and install nvm instead. Use this to install node and npm can be used again. Now it can be used without sudo.

from tiny-care-terminal.

notwaldorf avatar notwaldorf commented on July 28, 2024

Ugh, yeah, I don't really speak good node so I don't know how to get the path to git-standup from every kind of install. This is also why this doesn't work with yarn 😿

There's a PR out (#8) that I want to try to see if it fixes this, but since it still reaches into node_modules in the same way, it's probably going to solve a different problem, but not this one.

Any ideas welcome.

from tiny-care-terminal.

shelldandy avatar shelldandy commented on July 28, 2024

Im having the same troubles maybe because I use fish-shell and I think the script assumes bash, so it is far easier just to assume git-standup is in the path and throw a message if it isn't

from tiny-care-terminal.

DanielAndreasen avatar DanielAndreasen commented on July 28, 2024

@mike3run I tried running this in a bash shell, but with the same results. Hopefully PR #18 will resolve this.

from tiny-care-terminal.

shelldandy avatar shelldandy commented on July 28, 2024

@DanielAndreasen the author said yesterday she uses zsh with oh-my-zsh so yeah im guessing this only works now if you have your shell just like that 😝

from tiny-care-terminal.

DanielAndreasen avatar DanielAndreasen commented on July 28, 2024

@mike3run I also use zsh, although not oh-my-zsh anymore. So that alone will not do the trick 😢

from tiny-care-terminal.

notwaldorf avatar notwaldorf commented on July 28, 2024

I think this is about how your npm is installed, not about the shell you use -- for example, if you yarn install this, it doesn't work either.

Trying to look at the open PRs that fix this, but they don't work on my system yet :(

from tiny-care-terminal.

shelldandy avatar shelldandy commented on July 28, 2024

🤔 that could be, I have installed npm with nvm

And i think a great number of devs do that as well, do you have installed with homebrew @notwaldorf ?

from tiny-care-terminal.

notwaldorf avatar notwaldorf commented on July 28, 2024

I have it installed with nvm and it works.

Hold on y'all, I've asked @zkat for help and I'll see what her fix is :)

from tiny-care-terminal.

notwaldorf avatar notwaldorf commented on July 28, 2024

OK! I published 1.0.5 that maybe works better (edit: especially if you do npm install -g git-standup)? Anyone with a brokentiny-care-terminal` want to install that and tell me if it's better, pretty please? 🙏

from tiny-care-terminal.

zkat avatar zkat commented on July 28, 2024

Yeah there's not much to do here. There's an npm-exec thing we've been meaning to write for a while that would (hopefully, probably) allow all the path stuff to be configured the way npm scripts set up, but can't really just do it for bash scripts like this without going through npm run-script.

from tiny-care-terminal.

jackmransom avatar jackmransom commented on July 28, 2024

@DanielAndreasen There hasn't been a version bump yet, but @notwaldorf has merged my PR that fixes this syntax error. So the script (as it exists in the repo, at least) should now work with sh too! 😃

from tiny-care-terminal.

notwaldorf avatar notwaldorf commented on July 28, 2024

from tiny-care-terminal.

DanielAndreasen avatar DanielAndreasen commented on July 28, 2024

@jackmransom Ahh I see. Cool! :)
@notwaldorf G'morning. Looking forward to the new version :)

from tiny-care-terminal.

DanielAndreasen avatar DanielAndreasen commented on July 28, 2024

It works perfectly 👍 At least for me. Only thing that is needed is a depth parameter for the git-standup, but I think this is already under development.
Thank you very much 😃

from tiny-care-terminal.

darxtrix avatar darxtrix commented on July 28, 2024

For me not fixed 😞

from tiny-care-terminal.

Garbee avatar Garbee commented on July 28, 2024

I use fish for my shell and it has worked fine here from initial install. I added instructions to the readme on setting the environment variables properly for the program to pick them up. So make sure they are being set right (you can confirm by running node and check the process.env output) and try the software again.

If anyone is still having problems with fish specifically, if you could open up an issue about what specifically isn't working focused on fish and mention me I'll take a look. I'd rather try and keep the shell-specific debugging separated from individual issues affecting everyone if @notwaldorf doesn't mind that.

from tiny-care-terminal.

moeinrahimi avatar moeinrahimi commented on July 28, 2024

thanks, commits now pop up just fine 👍

from tiny-care-terminal.

Garbee avatar Garbee commented on July 28, 2024

git-standup is a peer dep so that needs to be installed by users as shown in the README (although the order is reversed so you're seeing the error.) The other warnings can be safely ignored, they're just warnings about some oudated/unmaintained software in use but that isn't affecting the usability.

Is your Windows Bash the "Ubuntu Bash On Windows" thing in Windows 10 or the git bash software distributed with git?

from tiny-care-terminal.

cfjedimaster avatar cfjedimaster commented on July 28, 2024

It's the Ubuntu Bash on Windows thing.

from tiny-care-terminal.

jackmransom avatar jackmransom commented on July 28, 2024

@cfjedimaster Silly question, I know, but do you have git installed in your Bash on Windows environment? git-standup will quite happily install without it but it'll fail at runtime.

If so, the output from running standup-helper.sh directly from a terminal would be helpful.

from tiny-care-terminal.

cfjedimaster avatar cfjedimaster commented on July 28, 2024

Yep, git works, and (since I didn't know what git-standup even did), I found it added 'standup' as an argument to Git, which I confirmed worked too.

Where would I find standup-helper.sh?

from tiny-care-terminal.

jackmransom avatar jackmransom commented on July 28, 2024

@cfjedimaster If you run npm list -g tiny-care-terminal it should give you the directory containing standup-helper.sh

from tiny-care-terminal.

cfjedimaster avatar cfjedimaster commented on July 28, 2024

Ok, I found it... but oddly I can't run it. I installed tiny-care-helper via sudo, so I tried to sudo ./standup-helper.sh from the directory, and it still can't find it.

from tiny-care-terminal.

jackmransom avatar jackmransom commented on July 28, 2024

@cfjedimaster How about running it as sh standup-helper.sh?

from tiny-care-terminal.

cfjedimaster avatar cfjedimaster commented on July 28, 2024

That works -I also changed it to a+x (which I realize is overkill), running it provides no output.

from tiny-care-terminal.

cfjedimaster avatar cfjedimaster commented on July 28, 2024

Ok, I figured out it takes a path as an arg. I ran:

sh standup-helper.sh /mnt/c/projects/raymondcamdendotcom

And it output:

Seems like Raymond Camden did nothing!

from tiny-care-terminal.

jackmransom avatar jackmransom commented on July 28, 2024

@cfjedimaster What about if you specify -d 7 as an arg?

from tiny-care-terminal.

cfjedimaster avatar cfjedimaster commented on July 28, 2024

It correctly reports my last set of commits.

from tiny-care-terminal.

curieos avatar curieos commented on July 28, 2024

I was able to get it to work if I changed care.js a little bit. I looked at the output of console.log(today); and saw that the spawnargs section had '/bin/sh', '-c', and 'sh /path/to/standup-helper.sh', missing the $TTC_REPOS paths

I changed the today line to:
var today = spawn('sh ' + __dirname + '/standup-helper.sh ' + config.repos, [config.repos], {shell:true});
and the week line to a similar thing and it now works. It seems like the spawn function(?) isnt being called correctly? I'm not super familiar with js so I'm not 100% sure what is going on.

from tiny-care-terminal.

Garbee avatar Garbee commented on July 28, 2024

That is JS calling a shell script. It works in some cases like that but not in others so the PR to make that spawn change was closed. PR #18 will probably handle these issues. So test it out please and see if it helps with your environments.

from tiny-care-terminal.

notwaldorf avatar notwaldorf commented on July 28, 2024

As of version 1.2.0 there's a new way to use the terminal that doesn't involve the bash script, and should fix these probelms. 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.

cfjedimaster avatar cfjedimaster commented on July 28, 2024

It works - thank you!

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.