Dear Open Hub Users,
We’re excited to announce that we will be moving the Open Hub Forum to
https://community.blackduck.com/s/black-duck-open-hub.
Beginning immediately, users can head over,
register,
get technical help and discuss issue pertinent to the Open Hub. Registered users can also subscribe to Open Hub announcements here.
On May 1, 2020, we will be freezing https://www.openhub.net/forums and users will not be able to create new discussions. If you have any questions and concerns, please email us at
[email protected]
Would it be possible to add ChaiScript to the list of languages that a project contains and listed under user experience?
The commonly excepted file extension is .chai and it's used extensively by at least ChaiScript itself (for unit tests) and ChaiDraw. We're actually not sure how large the user community is yet
Thanks
Hi Jason,
We're happy to add new languages, but I have to admit it doesn't rank highly in our list of work that needs to be done. Yes, this is going to be one of those the code is open, go have at it...
responses.
Ohloh's line counter is called Ohcount, and the code is hosted on SourceForge. There's also a mirror of the Git repository on Github
If you can get it running on your machine, I don't think it's actually too difficult to get a new language added -- there are a lot of examples to follow.
Thanks,
Robin
Thanks for the info. Sounds like a great project for me to undertake when I get around to VIM and Geshi support, which is on the to do list.
-Jason
I've created an ohcount parser for ChaiScript now, and it's unit tests pass. The only problem is I have a couple of failing tests in sourcefiletest.rb that I cannot decipher and don't seem to be directly related to my new parser.
Would you be willing to look at my patch and consider it for acceptance? How should I go about submitting it?
-Jason
Hi Jason,
I'd be happy to take a look at your patch.
The easiest way is probably just to send me a link to a Git repository that contains your changes. If you have a Github fork or something similar, that would be great.
Otherwise, you can just email a patch file to [email protected] and I will take a look.
Thanks,
Robin
This is my first experience with Git, sorry if I messed something up, but here is the link to the github fork that implements the ChaiScript counter.
http://github.com/lefticus/ohcount
Thanks,
Jason
Hi Jason,
From a first glance, this patch looks like it should do the trick. I'm pretty busy with some other tasks for a while, but later next week I should have time to put together a new build of Ohcount for our production servers. I'll get back to you then if anything goes wrong.
Thanks for your help,
Robin
Hi Jason,
I've pulled your changes into the master branch of Ohcount, and we'll be deploying this code to the Ohloh servers later this week.
We'll have to do a clean recount of the affected projects in order to get accurate ChaiScript counts. If you have a list of projects you'd like to see recounted, let me know, and I'll take care of it when the time comes.
Thanks for the patch,
Robin
Great, thank you. The only two projects that I know of are ChaiScript (https://www.ohloh.net/p/chaiscript) itself and ChaiDraw (https://www.ohloh.net/p/chaidraw).
I hope there's more out there, but none that I know of personally.
Hi Jason,
The code is now live on the Ohloh servers and the projects are recounting now.
Thanks for the patch -- let me know if you notice any problems.
Great, thank you. I just saw that all the various tracker pages are updated, looks great.
-Jason