Closed ghost closed 9 years ago
Thank you for reporting this bug. I am a Linux user. @silviubogan, can you confirm this?
I'll look into this; give me 5 minutes
Edit: This error is only thrown when you click 'Generate Repo'. Otherwise the web interface thing works wonders.
Probably, this is reproducible on Linux as well. I will look into this tomorrow.
Can you please share with us the generated json array?
Sure:
{
"coordinates": [
{
"x": 1,
"y": 1
},
{
"x": 1,
"y": 2
},
{
"x": 1,
"y": 3
},
{
"x": 1,
"y": 4
},
{
"x": 1,
"y": 5
},
{
"x": 1,
"y": 6
},
{
"x": 1,
"y": 7
},
{
"x": 2,
"y": 7
},
{
"x": 3,
"y": 7
},
{
"x": 4,
"y": 7
},
{
"x": 6,
"y": 5
},
{
"x": 6,
"y": 6
},
{
"x": 6,
"y": 7
},
{
"x": 7,
"y": 7
},
{
"x": 8,
"y": 5
},
{
"x": 8,
"y": 6
},
{
"x": 8,
"y": 7
}
],
"commitsPerDay": 2
}
Thanks!
If you find a solution until tomorrow, don't forget to create a pull request.
@shielsasaurus It works fine on Ubuntu 14.04 Beta:
Can you put the following if
on line contributions.js:60
?
if (!year[p.x - 1][p.y - 1]) {
console.log(p.x, p.y);
} else {
options.dates.push(year[p.x - 1][p.y - 1].date);
}
This will find the values when the code crashes.
Cannot reproduce the bug on Windows 8 (in VBox) as well.
BTW, on Windows this will not work because of the sh
commands. Maybe someone will solve this... You can try to install an Unix based OS in your virtual box and run the scripts there. :smile:
Huh, the installer worked fine for me, so I'll try to add that code and get back to you.
Ok, as expected; it returns
'sh' is not recognised as an internal or external command, operable program or batch file.
I'll try to tweak it with Windows support and send you a pull request.
Full output:
2 < 2
Date is: undefined ID: 17
> sh C:\Users\Luke Shiels\gh-contributions/bin/toZip.sh public/repos/n95dcbxtbgz
m2t9
stdout: stderr: 'sh' is not recognized as an internal or external command,
operable program or batch file.
exec error: undefined
Close: 1
Over and over again.
Exactly! If you can do that I would be so thankful! Where you don't understand the code, just ask me. Thanks!
Ok; i've hit a bit of a stump. I've made all of the sh
files with a bat
alternatives in a separate directory (see here), however, the Windows command line doesn't have (as far as I can see) any built in zip methods. D:
@shielsasaurus That's a good idea. For zipping the directory you can try to use a NodeJS module. For example this one seems to have Windows support.
For zipping the directory you can try to use a NodeJS module.
I didn't think of that.
Anyway, why don't you use a module for the linux side as well?
Just because I wrote the code quickly and I haven't Internet connection when I wrote that part. :smile:
If you can implement zipping via Node for the Linux side, do it! :+1:
@shielsasaurus Any progress on this?
Sorry not really :/
I kind of gave up on it sorry; but fell free to use the windows versions of the .sh's that I made
@shielsasaurus But why? Contributions are welcome. :smile:
@IonicaBizau, I can start working for Windows support if you assign this issue to me.
@silviubogan This should be working on Windows.
OS: Windows Node Ver: 10.x
Console outputs:
The client on the browser just says:
Error: undefined
.