Code Monkey home page Code Monkey logo

Comments (11)

vaab avatar vaab commented on May 27, 2024

Hi, thanks for your report !. I'll check this probably next week. If you have any work in progress, please share your commits ! This could only speed things up.

Can you tell me more precisely what is your windows environment (cygwin ?), I'm not really into python on windows, but I'll look if it's possible to get gitchangelog working on it without inconsiderate effort.

from gitchangelog.

Shirkit avatar Shirkit commented on May 27, 2024

I was running Windows 8 x64 and Python 2.7 on the default shell. Things were just not behaving properly. I'll install cygwin and return with some news.

from gitchangelog.

vaab avatar vaab commented on May 27, 2024

gitchangelog explicitely uses system shell calls and uses pipes for example,

if you have git version >= 1.7.4.2, you can replace the system call on the line you pointed at with:

git rev-list --max-parents=0 HEAD

And take the first element by default, this would give:

        identifier = self.swrap("git rev-list --max-parents=0 HEAD").split("\n")[0]

from gitchangelog.

Shirkit avatar Shirkit commented on May 27, 2024

Installing cygwin made it work by calling directly the python script, althoguh things gets funny with the path resolution under windows, with a minor fix, everything worked out pretty well.

Can't run the autogen.sh, probably due to that funny path resolution? It doesn't detects the git repository, although calling the python script directly will do it.

from gitchangelog.

vaab avatar vaab commented on May 27, 2024

On bash (in cygwin or on linux), you have to specify ./autogen.sh to run autogen.sh... (I'm perhaps stating the obvious for you, but who knows ?).

would you be so kind to share your fixes so I can review them and include them if necessary ?

Perhaps a copy-paste of the bash session with some of the issues you are talking about would help me enlighten them ! I'm not sure to understand in what obstacles you ran into...

from gitchangelog.

Shirkit avatar Shirkit commented on May 27, 2024

The current directory is a Git repository but it fails to detect it, on line 115 of autogen.sh

@Shirkit-Laptop /cygdrive/d/MC Development $ git tag 0.1.0 0.1.1

@Shirkit-Laptop /cygdrive/d/MC Development $ ./autogen.sh autogen.sh: error: Didn't find a git repository. autogen.sh uses git to create changelog and version information.

And when running the Python script, it as it is, this is the output:

@Shirkit-Laptop /cygdrive/d/MC Development $ python gitchangelog.py File '/cygdrive/d/MC Development/D:\\MC Development\\gitchangelog.rc' does not exists.

If I change lines 713-714 from True to False, it works.

from gitchangelog.

vaab avatar vaab commented on May 27, 2024

can I ask you to check the branch:

https://github.com/vaab/gitchangelog/tree/issue_7

this is on another remote, it fixes a lot of things, and in particular the ./autogen.sh issue, and it should be much faster.

I don't think that the bug with path resolution is fixed under windows, BUT it might work because this last version won't check your home directory nor a global configuration directory. So it might have fixed it also.

I didn't have time to test it under windows. If you have some, that would be great.

And many thx for your report.

from gitchangelog.

vaab avatar vaab commented on May 27, 2024

The last issue_7 branch has made into the 2.1.0 release. I would be happy if you can give me some feedback on your issues on windows.

from gitchangelog.

vaab avatar vaab commented on May 27, 2024

@Shirkit could you send a git ref to the code you've already written ?, even if it is on an older version of gitchangelog.

I have very little experience of windows, and I'm interested in how you managed to get through the first exceptions. If you can't I'll find how on my own, I just wanted to avoid loosing too much time on these.

Many thanks.

from gitchangelog.

vaab avatar vaab commented on May 27, 2024

With the recent developpement I decided to include the full windows support in next release 3.0.0 ... More work is needed to include windows testing and documentation before inclusion. But if you need windows compatibility, #42 and #43 are providing working fixes.

from gitchangelog.

vaab avatar vaab commented on May 27, 2024

FYI, the last version of gitchangelog is now compatible with windows thanks to this #68 .

from gitchangelog.

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.