Closed cannawen closed 7 years ago
@devshiva619 would you like to pick up this issue instead?
@cannawen sure why not. But right it says already assigned. If you haven't already assigned anyone I will surely work on this.
My mistake with the tag.
It's all yours, thanks! Let me know if you need any help getting started
@cannawen thankyou. have you assigned this to me ?
hey, @cannawen I sm having problem in setting up the project. Can you help me with it.
Sure, what problem are you running into?
@cannawen sorry for replying late, I had made the app in reddit, but from where do I download the source-code from ?
Press the "fork" button in the top right corner of this page, and then you want to use git to download your version of metric_units_reddit_bot
@cannawen sorry I think I wasn't clear, I meant I have cloned the repo and created the app in readdit. What am I supposed to do next?
Ah, the instructions are in the readme. Have you created the ./private/environment.yaml file?
@cannawen I wanted to know from where do I need to download the source-code
@devshiva619 You should fork the repository by clicking the "fork" button on the top right of the page. This will create a fork of the repo in your personal account. From there, git clone
your fork onto your computer.
Hey @devshiva619 are you still having problems downloading the source code? Maybe if you include some screenshots of the errors you are encountering, we can help?
Also FYI we have just added a CONTRIBUTING.md doc, please check it out when you have time! Sections "Etiquette", "Work on an issue" and "Make a PR" are most important
@cannawen Hey I am attaching the screenshots:
Also please let me know which version of JavaScript are you using int this?
Based on my Google-fu, I think this might be a node version problem. Can you try updating node? Also, have you run npm install
yet?
@cannawen ok I will leave the running part, and work on the issue. For working on the issue how do I start about it?
You would have to add something similar to this, except for knots instead of psi.
Do you have npm test
working?
@cannawen
I am getting this error when I run npm test
It looks like npm install
did not work. Can you try running that again, and waiting for it to finish? Thanks for the screenshot, it was very helpful :D
@cannawen That was by mistake I had already done that
Try npm install -g mocha --save-dev
? I'm not sure if it'll work, I'm just googling over here, since I can't repro the issue on my machines haha
@cannawen npm install -g mocha --save-dev
.
The command ran successfully but npm test
still gives me error, I tried searching but no luck :disappointed:
Can you run node --version
? What does that give you?
@cannawen v4.2.6
Ah, I think that's the problem. The minimum version of node required is 6.2.1 Try updating node!
@cannawe I have updated node to version 8.6.0 Now I am getting this new error.
Hey, that's progress ;)
try npm update
and npm install
again?
@cannawen yay, its running, just need your confirmation.
"imperialUnits" : [/-?psi/, /-?pounds?[ -]?(?:force)?[- ]?(?:per|an?[/])[- ]?squared? inch/],
can you explain me this code, so that I can start working.
Wooo, green tests! Very nice :D
This is an array of regular expressions, used for matching text.
I learned about them following this tutorial, I think this hands-on approach to learning would be a lot better than me explaining it in a text comment :)
@cannawen thanks a lot for helping me. Hopefully I will try to send the PR by today. :smile:
No, thank you for contributing!!
I'm going to sleep soon, but feel free to comment if you have more questions, I'll get back to you in the morning (or maybe one of the other lovely members of this community will answer... hint hint)
@cannawen do I need to add my name in contributors.md. Even I will be going off to sleep now its 2:34am in India I have not yet slept :smile:
It is your decision if you want to add your name to .all-contributorsrc, that step is optional.
@devshiva619 ping.
Are you still working on this?
@nalinbhardwaj Yes, I will start working from tomorrow as I wasn't well till now had a severe viral fever.
Feel better, @devshiva619! Take care of your health first :)
Closing issue due to inactivity, we can open it back up at a later date (perhaps after we finish refactoring how all conversions are parsed)
metric_units is a sassy reddit bot that finds imperial units, and replies with a metric conversion.
Knots should be converted to metric speed (i.e. km/h)
See this commit for an example of how to add a new conversion