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.

v10.0.0-0 didn’t have to wait that long

Backing up original state... +0ms
  lint-staged:file Trying to access `/Users/bugzpodder/project/.git/MERGE_HEAD` +0ms
  lint-staged:file Unable to access file `/Users/bugzpodder/project/.git/MERGE_HEAD` with error: +3ms
  lint-staged:file Error: ENOENT: no such file or directory, access '/Users/bugzpodder/project/.git/MERGE_HEAD' +0ms
  lint-staged:git Running git command [ 'ls-files', '--others', '--exclude-standard' ] +31ms
  lint-staged:git Running git command [
  'stash',
  'save',
  '--quiet',
  '--include-untracked',
  'lint-staged automatic backup'
] +445ms
  lint-staged:git Running git command [ 'stash', 'list' ] +2s
  lint-staged:git Running git command [ 'stash', 'apply', '--index', 'stash@{0}' ] +95ms
  lint-staged:git Running git command [ 'clean', '-df' ] +1m
  lint-staged:git Running git command [ 'checkout', '.' ] +397ms
  lint-staged:git Running git command [ 'stash', 'list' ] +441ms
  lint-staged:git Running git command [
  'diff',
  '--unified=0',
  '--no-color',
  '--no-ext-diff',
  '--patch',
  'stash@{0}',
  '-R'
] +100ms
  lint-staged:git Done backing up original state! +1m
Preparing... [completed]
Running tasks... [started]
Running tasks for *.+(js|jsx|json|yml|yaml|css|less|scss|ts|tsx|md|graphql|mdx) [started]
  lint-staged:make-cmd-tasks Creating listr tasks for commands 'yarn lint:staged' +0ms
  lint-staged:task cmd: yarn lint:staged +0ms
  lint-staged:task execaOptions: { preferLocal: true, reject: false, shell: false } +0ms
yarn lint:staged [started]
yarn lint:staged [completed]
Running tasks for *.+(js|jsx|json|yml|yaml|css|less|scss|ts|tsx|md|graphql|mdx) [completed]
Running tasks... [completed]
Applying modifications... [started]
  lint-staged:git Running git command [ 'ls-files', '--modified' ] +40s
Applying modifications... [completed]
Cleaning up... [started]
  lint-staged:git Dropping backup stash... +40s
  lint-staged:git Running git command [ 'stash', 'list' ] +195ms
  lint-staged:git Running git command [ 'stash', 'drop', '--quiet', 'stash@{0}' ] +94ms
  lint-staged:git Done dropping backup stash! +258ms
Cleaning up... [completed]
  lint-staged tasks were executed successfully! +2m
✨  Done in 110.68s.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
iirojcommented, Nov 14, 2019

I found a nice workaround in https://github.com/okonet/lint-staged/commit/cfde9ca64bed7fa236eda69e63478c536f9f9068

Basically before stashing everything with git stash save --include-untracked we get a diff of only the staged files with git diff --cached, and then after the stash removes everything, apply it back.

0reactions
iirojcommented, Nov 14, 2019

I will assume this is fixed in https://github.com/okonet/lint-staged/releases/tag/v10.0.0-beta.2%40beta and will close this issue. Please re-test and re-open if it still doesn’t work correctly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cypress runner stuck on loading after updating to version 10
Current behavior I just migrated to version 10.9.0 but when i tried to run the command cypress open it just stuck on loading...
Read more >
Murena Teracube 2e (Android 11)... fix IMEI - XDA Forums
Something somehow got corrupted. The only way I could get it to come out of boot-loop was to completely erase everything on the...
Read more >
USBLoader GX stuck on initializing usb drive | GBAtemp.net
but now im getting stuck on the initializing usb drive. My wii is a pal wii 4.3E , please let me know if...
Read more >
Why does my calculation using GROMACS get stuck at step 0?
I have been using the HPCE on our campus for MD simulations using GROMACS. However, when I use the following script, after the...
Read more >
VACUUM won't remove dead rows: 4 reasons why - CYBERTEC
This article will show you the four reasons why VACUUM cannot remove dead rows from a PostgreSQL table, and how to find out...
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