Coder Social home page Coder Social logo

crash - stack trace about bugspots HOT 5 CLOSED

igrigorik avatar igrigorik commented on June 8, 2024
crash - stack trace

from bugspots.

Comments (5)

igrigorik avatar igrigorik commented on June 8, 2024

This looks like a bug in grit library, which is used to read out the git commit info.

mojombo/grit#57

Are you trying to read an empty directory, or git repo with no commits by any chance?

from bugspots.

sawilde avatar sawilde commented on June 8, 2024

The repo has lots of commits (it is my opencover project) and the directory is not empty. It may have sub directories which are empty though - would that cause problems?

from bugspots.

igrigorik avatar igrigorik commented on June 8, 2024

I hope not! It's probably worth opening a bug on the grit repo around this.. If you're familiar with ruby, can you try dropping into irb and try to open the repo, walk over the commits?

https://github.com/mojombo/grit - check out examples in the readme, or take a look at the source in bugspots (which is very, very simple)

from bugspots.

msgerbush avatar msgerbush commented on June 8, 2024

Not exactly sure what is going on here, but it looks like some of the arguments getting passed to git-log when commit.stats is called are getting messed up. Its hard to tell without being able to reproduce the error. This is definitely a grit issue, but this grit stack trace includes code that is over a year old and has been completely refactored. You might want to try just updating your version of grit and seeing if that fixes the issue.

from bugspots.

swang avatar swang commented on June 8, 2024

Hello,

I got this error not because of the issue #41 in grit, but because grit does not work properly in Windows. Windows separates paths in its environment variable by using semi-colons rather than colons and grit only tokenized on colons. I was going to submit a patch but someone beat me to the punch.

mojombo/grit#75

So what I did was run:

git clone https://github.com/Ziaw/grit.git
cd grit
git checkout -b patch-1 origin/patch-1
gem build grit

Then I uninstalled grit and reinstalled the built gem in the folder

Once I did that I was able to run bugspots fine.

from bugspots.

Related Issues (19)

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.