Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm having a cursed issue when trying to run Stitch. Any idea what this could be? #36

Closed
evolutionleo opened this issue Nov 30, 2021 · 3 comments
Assignees

Comments

@evolutionleo
Copy link

It was running fine before, but then it broke

Stitch ERROR 07:50:39 "git" �� ���� ����७��� ��� ���譥�
��������, �ᯮ��塞�� �ணࠬ��� ��� ������ 䠩���.
 >
StitchError: "git" �� ���� ����७��� ��� ���譥�

    at Gms2Storage.get workingDirIsClean [as workingDirIsClean] (C:\Users\evolu\Documents\Projects\Actual projects\GMS 2.3 Projects\UnnamedPlatformer\ImportingPipeline\node_modules\@bscotch\stitch\src\lib\Gms2Storage.ts:37:13)                                                                                                                                                                        src\lib\Gms2Storage.ts:37:13)
    at new Gms2Storage (C:\Users\evolu\Documents\Projects\Actual projects\GMS 2.3 Projects\UnnamedPlatformer\ImportingPipeline\node_modules\@bscotch\stitch\src\lib\Gms2Storage.ts:17:13)
    at new Gms2Project (C:\Users\evolu\Documents\Projects\Actual projects\GMS 2.3 Projects\UnnamedPlatformer\ImportingPipeline\node_modules\@bscotch\stitch\src\lib\Gms2Project.ts:159:22)
    at Object.<anonymous> (C:\Users\evolu\Documents\Projects\Actual projects\GMS 2.3 Projects\UnnamedPlatformer\ImportingPipeline\load.js:5:19)
    at Module._compile (node:internal/modules/cjs/loader:1095:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1147:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at run (C:\Users\evolu\Documents\Projects\Actual projects\GMS 2.3 Projects\UnnamedPlatformer\ImportingPipeline\index.js:5:11)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
@adam-coster
Copy link
Member

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?

@adam-coster adam-coster self-assigned this Dec 3, 2021
@evolutionleo
Copy link
Author

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!

@adam-coster
Copy link
Member

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants