Giter Site home page Giter Site logo

Comments (3)

adam-coster avatar adam-coster commented on May 8, 2024

Wow, that is cursed.

There code corresponding to this error is here:

get workingDirIsClean() {
const gitProcessHandle = child_process.spawnSync(`git status`, {
cwd: this.yypDirAbsolute,
shell: true,
});
if (gitProcessHandle.status != 0) {
throw new StitchError(gitProcessHandle.stderr.toString());
} else {
const isClean = gitProcessHandle.stdout
.toString()
.includes('working tree clean');
return isClean;
}
}

That error gets thrown when Stitch tries to talk to Git and gets an error. All of those symbols are from Stitch attempting to turn the error output into a human-readable string, but apparently whatever that data is isn't UTF8 text!

Specifically, Stitch is trying to run git status and for some reason getting an error code back from Git.

Some possibilities:

  • Have you made any changes to your Git installation lately?
  • If you try to run Git in your project (e.g. just with git status) does it work properly?
  • How are you running Stitch? Via the command line or via code? If via the CLI, have you updated or changed terminals?
  • Are you running Stitch in a VM, or something that doesn't have Git installed?

from stitch.

evolutionleo avatar evolutionleo commented on May 8, 2024

Hmm, interesting...

  1. I don't think I have changed my git installation for a while
  2. Just tried running git status, works just fine.
  3. I'm running Stitch using the NodeJS API. I am automatically downloading the sprites from Google Drive to then load them into the GMS2 project
  4. I am running it natively, using VS Code's built-in terminal

Also I just tried running it and it somehow worked?? No idea what was that, but thanks for your help, Adam!

from stitch.

adam-coster avatar adam-coster commented on May 8, 2024

Very weird. I wonder if git status can be affected by webserver errors, e.g. if Git tried to talk to GitHub (if you use that) and failed temporarily.

Glad you got it working, in any event!

from stitch.

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.