-
Notifications
You must be signed in to change notification settings - Fork 34
TypeError: Cannot read property 'split' of undefined #66
Conversation
My guess would be that the repos URL format is possibly causing the issue. Some GitHub URLs contain |
@dwoodiwiss thanks for looking into this, I think you may be correct in which case I will file & fix it in @marcusmoore do you know what github repo (or better the github url) you were experiencing the issue with? |
Thanks for looking into this. I went back and looked at my dev log for the day and here's my notes: touch labels.json
sublime labels.json
# paste in labels and save
# forgot my master password...
# deleted old token from here: https://github.com/settings/tokens
# generated new token with repo access...
git-labelmaker
# Chose to create new token
# Got error `[TypeError: Cannot read property 'split' of undefined]`...
# remove git-labelmaker
npm uninstall -g git-labelmaker
# and install again...
npm i -g git-labelmaker
# enter access token and master password and got error again... The remote repo that I was intending to add labels to had a |
I have this same issue with a repo with a dash '-' in the name as well... |
Also updates `parse-git-config` package. Haven't fully tested if this actually resolves #66 yet...
I've added some proper error handling, and as far as I can tell the Otherwise feel free to submit tickets to |
I've previously run git-labelmaker and it worked just fine but when I ran it today I needed to use a new token since I forgot my password. After I entered the new token and a master password I got the error
[TypeError: Cannot read property 'split' of undefined]
. I uninstalled and reinstalled git-labelmaker and it didn't fix the issue. I tried diving into the source to see what might be happening here but I'm honestly not too sure...node version:
5.11.1
npm version:
3.9.5
Any thoughts?