question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Every save, even with a minor change, changes every text layers.

See original GitHub issue

Description

When I open a sketch file from Kactus then make a small text change and save the sketch file it says the every json file has change. Using text analysis the only change this “_archive” key value pair. Please see attached screen shot screen shot 2017-09-21 at 1 41 18 pm

Version

Kactus version: 0.2.6

OS version: macOS Sierra Version 10.12.6

Steps to Reproduce

  1. Open up kactus
  2. Open Sketch file with katus
  3. Change existing text in an artboard by 1 character.
  4. Hit save in sketch
  5. Go to Kactus and observe that there all json files have changed. It basically thinks everything was added then deleted.

Expected behavior: Only text that was changed shows as changed. And not 507 files.

Actual behavior: It show that 507 files have changed.

Reproduces how often: Everytime

Logs

2017-09-21T14:44:03.179Z - error: [ui] Error performing periodic fetch TypeError: Cannot read property ‘do_objectID’ of undefined at pages.find.p (/private/var/folders/lw/w6fz3m5d7x53qvljf8nfkxbr0000gn/T/AppTranslocation/C4C92867-0A7E-405F-A281-F2BD483F46FF/d/Kactus.app/Contents/Resources/app/node_modules/kactus-cli/lib/parse/parseDocumentJSON.js:30:42) at Array.find (native) at data.pages.reduce (/private/var/folders/lw/w6fz3m5d7x53qvljf8nfkxbr0000gn/T/AppTranslocation/C4C92867-0A7E-405F-A281-F2BD483F46FF/d/Kactus.app/Contents/Resources/app/node_modules/kactus-cli/lib/parse/parseDocumentJSON.js:30:31) at Array.reduce (native) at zip.file.async.then (/private/var/folders/lw/w6fz3m5d7x53qvljf8nfkxbr0000gn/T/AppTranslocation/C4C92867-0A7E-405F-A281-F2BD483F46FF/d/Kactus.app/Contents/Resources/app/node_modules/kactus-cli/lib/parse/parseDocumentJSON.js:29:37) 2017-09-21T14:47:25.178Z - info: [ui] Executing getCommits: git log HEAD --date=raw --max-count=100 --pretty=%H%x1F%s%x1F%b%x1F%an <%ae> %ad%x1F%P -z --no-color --not --remotes (took 21.813s) 2017-09-21T14:47:25.180Z - info: [ui] Executing getAuthorIdentity: git var GIT_AUTHOR_IDENT (took 21.808s) 2017-09-21T14:47:53.557Z - info: [ui] Executing updateIndex: git update-index --add --remove --replace -z --stdin (took 2.877s) 2017-09-21T14:47:54.822Z - info: [ui] Executing createCommit: git commit -F - (took 1.265s) 2017-09-21T14:48:19.268Z - info: [ui] Executing push: git -c credential.helper= push origin dev --set-upstream --progress (took 20.148s) 2017-09-21T14:53:43.539Z - info: [ui] Executing getStatus: git status --untracked-files=all --branch --porcelain=2 -z (took 1.314s) 2017-09-21T15:16:00.557Z - info: [ui] Executing exportCommit: git archive 0403e2ca1b6bdf8bd12f0f6e44dd7f8525fb92f4 -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/0403e2ca1b6bdf8bd12f0f6e44dd7f8525fb92f4.tar (took 1.870s) 2017-09-21T15:16:04.490Z - info: [ui] Executing exportCommit: git archive 0403e2ca1b6bdf8bd12f0f6e44dd7f8525fb92f4 -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/0403e2ca1b6bdf8bd12f0f6e44dd7f8525fb92f4.tar (took 1.132s) 2017-09-21T15:16:17.876Z - info: [ui] Executing exportCommit: git archive 0403e2ca1b6bdf8bd12f0f6e44dd7f8525fb92f4 -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/0403e2ca1b6bdf8bd12f0f6e44dd7f8525fb92f4.tar (took 1.298s) 2017-09-21T15:16:20.974Z - info: [ui] Executing exportCommit: git archive 0403e2ca1b6bdf8bd12f0f6e44dd7f8525fb92f4 -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/0403e2ca1b6bdf8bd12f0f6e44dd7f8525fb92f4.tar (took 1.460s) 2017-09-21T15:16:22.363Z - info: [ui] Executing exportCommit: git archive 0403e2ca1b6bdf8bd12f0f6e44dd7f8525fb92f4 -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/0403e2ca1b6bdf8bd12f0f6e44dd7f8525fb92f4.tar (took 1.667s) 2017-09-21T15:16:24.320Z - info: [ui] Executing exportCommit: git archive 0403e2ca1b6bdf8bd12f0f6e44dd7f8525fb92f4 -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/0403e2ca1b6bdf8bd12f0f6e44dd7f8525fb92f4.tar (took 1.298s) 2017-09-21T15:16:32.885Z - info: [ui] Executing exportCommit: git archive 0403e2ca1b6bdf8bd12f0f6e44dd7f8525fb92f4 -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/0403e2ca1b6bdf8bd12f0f6e44dd7f8525fb92f4.tar (took 1.075s) 2017-09-21T15:16:40.588Z - info: [ui] Executing exportCommit: git archive 0403e2ca1b6bdf8bd12f0f6e44dd7f8525fb92f4 -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/0403e2ca1b6bdf8bd12f0f6e44dd7f8525fb92f4.tar (took 1.110s) 2017-09-21T15:17:02.271Z - info: [ui] Executing updateIndex: git update-index --add --remove --replace -z --stdin (took 1.347s) 2017-09-21T15:17:07.698Z - info: [ui] Executing exportCommit: git archive 64e0c24a53bd4b2b31dfb9688be28a5641c4bd7e -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/64e0c24a53bd4b2b31dfb9688be28a5641c4bd7e.tar (took 1.135s) 2017-09-21T15:17:08.658Z - info: [ui] Executing exportCommit: git archive 64e0c24a53bd4b2b31dfb9688be28a5641c4bd7e -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/64e0c24a53bd4b2b31dfb9688be28a5641c4bd7e.tar (took 1.333s) 2017-09-21T15:17:15.487Z - info: [ui] Executing push: git -c credential.helper= push origin testing_chris --set-upstream --progress (took 9.700s) 2017-09-21T15:17:21.003Z - info: [ui] Executing exportCommit: git archive 64e0c24a53bd4b2b31dfb9688be28a5641c4bd7e -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/64e0c24a53bd4b2b31dfb9688be28a5641c4bd7e.tar (took 1.113s) 2017-09-21T15:18:59.510Z - info: [ui] Executing exportCommit: git archive 64e0c24a53bd4b2b31dfb9688be28a5641c4bd7e -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/64e0c24a53bd4b2b31dfb9688be28a5641c4bd7e.tar (took 1.160s) 2017-09-21T15:19:09.122Z - info: [ui] Executing exportCommit: git archive 64e0c24a53bd4b2b31dfb9688be28a5641c4bd7e -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/64e0c24a53bd4b2b31dfb9688be28a5641c4bd7e.tar (took 1.306s) 2017-09-21T15:19:41.138Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.140s) 2017-09-21T15:19:46.405Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.134s) 2017-09-21T15:19:57.301Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.231s) 2017-09-21T15:21:15.359Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.135s) 2017-09-21T15:21:21.370Z - info: [ui] Executing pull: git -c credential.helper= pull --no-rebase --progress origin (took 3.430s) 2017-09-21T16:50:46.493Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.183s) 2017-09-21T16:50:49.223Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.314s) 2017-09-21T16:50:55.567Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.282s) 2017-09-21T16:51:07.446Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.193s) 2017-09-21T16:51:37.722Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.186s) 2017-09-21T16:51:46.385Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.188s) 2017-09-21T16:51:51.257Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.347s) 2017-09-21T16:52:00.401Z - info: [ui] Executing exportCommit: git archive 64e0c24a53bd4b2b31dfb9688be28a5641c4bd7e -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/64e0c24a53bd4b2b31dfb9688be28a5641c4bd7e.tar (took 1.132s) 2017-09-21T16:52:07.352Z - info: [ui] Executing exportCommit: git archive 0403e2ca1b6bdf8bd12f0f6e44dd7f8525fb92f4 -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/0403e2ca1b6bdf8bd12f0f6e44dd7f8525fb92f4.tar (took 1.511s) 2017-09-21T16:52:28.390Z - info: [ui] Executing getStatus: git status --untracked-files=all --branch --porcelain=2 -z (took 2.425s) 2017-09-21T16:52:28.443Z - info: [ui] Executing getStatus: git status --untracked-files=all --branch --porcelain=2 -z (took 1.310s) 2017-09-21T16:52:31.257Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.270s) 2017-09-21T16:52:31.263Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.357s) 2017-09-21T16:52:31.270Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.313s) 2017-09-21T16:52:31.634Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.747s) 2017-09-21T16:54:12.330Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.168s) 2017-09-21T16:54:23.892Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.260s) 2017-09-21T16:55:44.068Z - error: [main] Error: write EPIPE at exports._errnoException (util.js:1022:11) at WriteWrap.afterWrite (net.js:804:14) 2017-09-21T16:55:44.074Z - error: [ui] git checkout-index -f -u -q --stdin -z exited with an unexpected code: 128. fatal: Unable to create ‘/Users/chriszannoni/Documents/Design/.git/index.lock’: File exists.

Another git process seems to be running in this repository, e.g. an editor opened by ‘git commit’. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earlier: remove the file manually to continue.

2017-09-21T16:55:44.703Z - info: [main] Error report submitted 2017-09-21T16:55:54.368Z - info: [ui] Executing getStatus: git status --untracked-files=all --branch --porcelain=2 -z (took 1.396s) 2017-09-21T16:57:06.239Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.171s) 2017-09-21T16:57:32.114Z - info: [ui] Executing getStatus: git status --untracked-files=all --branch --porcelain=2 -z (took 3.571s) 2017-09-21T16:59:45.396Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.188s) 2017-09-21T16:59:48.855Z - info: [ui] Executing exportCommit: git archive 64e0c24a53bd4b2b31dfb9688be28a5641c4bd7e -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/64e0c24a53bd4b2b31dfb9688be28a5641c4bd7e.tar (took 1.191s) 2017-09-21T17:02:39.377Z - info: [ui] Executing getStatus: git status --untracked-files=all --branch --porcelain=2 -z (took 1.109s) 2017-09-21T17:05:27.321Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.724s) 2017-09-21T17:05:27.923Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.764s) 2017-09-21T17:05:30.158Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.198s) 2017-09-21T17:08:48.062Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.228s) 2017-09-21T17:08:50.781Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.182s) 2017-09-21T17:09:37.356Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.045s) 2017-09-21T17:09:37.927Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.409s) 2017-09-21T17:09:39.011Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.504s) 2017-09-21T17:09:39.609Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.203s) 2017-09-21T17:09:41.274Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.152s) 2017-09-21T17:09:44.959Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.149s) 2017-09-21T17:09:46.943Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.299s) 2017-09-21T17:09:56.030Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.183s) 2017-09-21T17:09:56.445Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.051s) 2017-09-21T17:09:57.357Z - info: [ui] Executing exportCommit: git archive ff17f3b04931a2536b682bb2dc16616d8f1a398c -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/ff17f3b04931a2536b682bb2dc16616d8f1a398c.tar (took 1.437s) 2017-09-21T17:09:57.726Z - info: [ui] Executing exportCommit: git archive 64e0c24a53bd4b2b31dfb9688be28a5641c4bd7e -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/64e0c24a53bd4b2b31dfb9688be28a5641c4bd7e.tar (took 1.274s) 2017-09-21T17:09:58.248Z - info: [ui] Executing exportCommit: git archive 64e0c24a53bd4b2b31dfb9688be28a5641c4bd7e -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/64e0c24a53bd4b2b31dfb9688be28a5641c4bd7e.tar (took 1.091s) 2017-09-21T17:09:58.769Z - info: [ui] Executing exportCommit: git archive 64e0c24a53bd4b2b31dfb9688be28a5641c4bd7e -o /Users/chriszannoni/Library/Application Support/Kactus/previews/1/64e0c24a53bd4b2b31dfb9688be28a5641c4bd7e.tar (took 1.405s)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:25 (12 by maintainers)

github_iconTop GitHub Comments

5reactions
mathieudutourcommented, Dec 4, 2017

Yes we are working on it on the sketch side, I’ll keep you updated

2reactions
mathieudutourcommented, Apr 12, 2018

Fixed in Sketch 50 beta 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Change Text After It Has Already Been Saved in ...
Text that has been flattened with other layers may not be easy to change after a file is saved, particularly if no Undo...
Read more >
Saving to PDF changes text's font and size - GIMP - GitLab
As a workaround, if you right-click on your text layer and select "Discard Text Information", your text layer basically becomes an image layer...
Read more >
How To Import Photoshop Layers into After Effects - YouTube
Do you want to edit the Photoshop text you just imported? What if you make changes to an imported Photoshop file? We answer...
Read more >
Selecting and arranging layers in After Effects - Adobe Support
To select all layers, choose Edit > Select All while the Timeline or Composition panel is active. To deselect all layers, choose Edit...
Read more >
Saving Loading And Reusing Layer Styles In Photoshop
Photoshop's layer styles are a great way to create fun and interesting photo effects and text effects without requiring a lot of effort,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found