git-sketch-plugin icon indicating copy to clipboard operation
git-sketch-plugin copied to clipboard

Git commit doesn't work

Open natenorberg opened this issue 5 years ago • 7 comments
trafficstars

How did it happen?

  1. Made some changes
  2. Ran commit (via Sketch Runner)

Running git commit manually from the command line works fine

Error log

e.exports.lstatSync is not a function. (In 'e.exports.lstatSync(t)', 'e.exports.lstatSync' is undefined)

{
	"line": 1,
	"column": 29135,
	"sourceURL": "/Users/norberg/Library/Application Support/com.bohemiancoding.sketch3/Plugins/Git.sketchplugin/Contents/Sketch/__commands_Commit.js"
}

/Users/norberg/Library/Application Support/com.bohemiancoding.sketch3/Plugins/Git.sketchplugin/Contents/Sketch/__commands_Commit.js:1:29135
/Users/norberg/Library/Application Support/com.bohemiancoding.sketch3/Plugins/Git.sketchplugin/Contents/Sketch/__commands_Commit.js:1:5357
/Users/norberg/Library/Application Support/com.bohemiancoding.sketch3/Plugins/Git.sketchplugin/Contents/Sketch/__commands_Commit.js:1:34545
forEach@[native code]
b@/Users/norberg/Library/Application Support/com.bohemiancoding.sketch3/Plugins/Git.sketchplugin/Contents/Sketch/__commands_Commit.js:1:34459
/Users/norberg/Library/Application Support/com.bohemiancoding.sketch3/Plugins/Git.sketchplugin/Contents/Sketch/__commands_Commit.js:1:35878
/Users/norberg/Library/Application Support/com.bohemiancoding.sketch3/Plugins/Git.sketchplugin/Contents/Sketch/__commands_Commit.js:1:35370
/Users/norberg/Library/Application Support/com.bohemiancoding.sketch3/Plugins/Git.sketchplugin/Contents/Sketch/__commands_Commit.js:1:35403
__skpm_run@/Users/norberg/Library/Application Support/com.bohemiancoding.sketch3/Plugins/Git.sketchplugin/Contents/Sketch/__commands_Commit.js:1:36216
__skpm_run@[native code]

natenorberg avatar Apr 16 '20 23:04 natenorberg

what's your sketch version?

mathieudutour avatar Apr 17 '20 07:04 mathieudutour

Looks like I'm on version 62

natenorberg avatar Apr 20 '20 19:04 natenorberg

It does still generate the files for the pretty diffs though, so I've still been running the command and then committing from the command line

natenorberg avatar Apr 20 '20 19:04 natenorberg

I also encountered this problem, it was good last week.

sketch 63 (92445)

hw20101101 avatar Apr 22 '20 12:04 hw20101101

I published a new version which should fix this weird error message but I haven't been able to reproduce

mathieudutour avatar Apr 22 '20 13:04 mathieudutour

Hmm, I still seem to be hitting an error.

natenorberg avatar Apr 23 '20 18:04 natenorberg

In practice, it is found that using the latest version of the plug-in will freeze when committing.It is feasible to use the old version 0.11.3

Benyv0620 avatar Apr 26 '20 07:04 Benyv0620