Code Monkey home page Code Monkey logo

Comments (20)

passsy avatar passsy commented on June 26, 2024 1

Thanks @staceybellerose for the hint. I'm finally able to reproduce it! I'm on it

from gradle-gitversioner-plugin.

passsy avatar passsy commented on June 26, 2024 1

A fix is released in 0.4.1

from gradle-gitversioner-plugin.

passsy avatar passsy commented on June 26, 2024

Wrong repo. You are using the script version which is outdated and not maintained for a long time.

Please upgrade to the plugin (this repo here) and make sure you use version 0.3.1

See install in the readme.

from gradle-gitversioner-plugin.

sergio11 avatar sergio11 commented on June 26, 2024

Thanks for the quick reply.

I refer to the "new" plugin , using the old script and the new plugin the same thing happens to me.

captura

Below, in the status bar you can see that the construction of the project is never completed.

Thank you

from gradle-gitversioner-plugin.

passsy avatar passsy commented on June 26, 2024

Oh that's bad. Please help me to narrow down this problem:

  1. Are there any useful information when you run ./gradlew assemble --info or --debug?
  2. Does it hang if you remove gitVersioner.versionCode or gitVersioner.versionName or both from your gradle script?
  3. Are you able to run ./gradlew gitVersion --info after you removed versionCode and versionName from your gradle script?

from gradle-gitversioner-plugin.

sergio11 avatar sergio11 commented on June 26, 2024

Hello,

I have done everything you say, I have deleted versionCode and versionName of my gradle script and it is blocked in all cases. I give you an example of the output of the command:

./gradlew assemble --info

captura_1

I do not know what else to try, in all cases it is blocked.

Thank you!!!

from gradle-gitversioner-plugin.

passsy avatar passsy commented on June 26, 2024

Does it work when you remove apply plugin: 'com.pascalwelsch.gitversioner'?

from gradle-gitversioner-plugin.

sergio11 avatar sergio11 commented on June 26, 2024

In that case, I get the following error:

Could not find method gitVersioner() for arguments

from gradle-gitversioner-plugin.

passsy avatar passsy commented on June 26, 2024

Please remove the gitVersioner { } block as well. I just want to be very sure the project runs without the plugin.

What's your gradle wrapper version?

from gradle-gitversioner-plugin.

sergio11 avatar sergio11 commented on June 26, 2024

I use version 4.1. If I delete that line, the project compiles. Thank you!!

from gradle-gitversioner-plugin.

passsy avatar passsy commented on June 26, 2024

Can you verify it works on a new project? It could be a problem of running it on windows at all :/

from gradle-gitversioner-plugin.

sergio11 avatar sergio11 commented on June 26, 2024

I've tried it on three different projects and the same thing happens

from gradle-gitversioner-plugin.

DagobertDokate avatar DagobertDokate commented on June 26, 2024

Same problem here =(. Used it for some time. But after while it's not working reliable.
It works better when there are no uncommited files. When there are any changes, it is not working.
Windows 10. AS 3.1.4.

from gradle-gitversioner-plugin.

DagobertDokate avatar DagobertDokate commented on June 26, 2024

Is there any new advice? =)

from gradle-gitversioner-plugin.

passsy avatar passsy commented on June 26, 2024

can you please try the command line tool git-revision? It will replace the core logic in the project soon. Would be good to know if it's working.

Also what's your git version? I found out at least git 2.2.0 is required.

from gradle-gitversioner-plugin.

staceybellerose avatar staceybellerose commented on June 26, 2024

I've run into the same problem, first with the deprecated script version, and again with this plugin. I traced it to the git status line blocking due to a filled buffer. This only happens when git status output is large, such as when there are numerous uncommitted files.

The fix is to read result.inputStream before the when (result.exitValue()) { line. I don't know enough Kotlin to fix this plugin, but I have fixed my fork of the old script version, which now works again.

from gradle-gitversioner-plugin.

DagobertDokate avatar DagobertDokate commented on June 26, 2024

@passsy can you fix this problem?
And is there a install guide for your standalone tool?

from gradle-gitversioner-plugin.

DagobertDokate avatar DagobertDokate commented on June 26, 2024

Any news for us? =)

from gradle-gitversioner-plugin.

DagobertDokate avatar DagobertDokate commented on June 26, 2024

How can I send you a beer? =)

from gradle-gitversioner-plugin.

passsy avatar passsy commented on June 26, 2024

@DagobertDokate now you can https://github.com/users/passsy/sponsorship

from gradle-gitversioner-plugin.

Related Issues (13)

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.