ignore-sync icon indicating copy to clipboard operation
ignore-sync copied to clipboard

v7.0.1 BUG

Open babakfp opened this issue 2 years ago • 6 comments

rror: source `[]` not found before ignore pattern is found
    at file:///C:/Users/babak/OneDrive/Documents/GitHub/babakfp.ir/node_modules/.pnpm/[email protected]/node_modules/ignore-sync/src/decodeIgnoreSyncFile.js:24:13
    at Array.reduce (<anonymous>)
    at decodeIgnoreSyncFile (file:///C:/Users/babak/OneDrive/Documents/GitHub/babakfp.ir/node_modules/.pnpm/[email protected]/node_modules/ignore-sync/src/decodeIgnoreSyncFile.js:11:53)       
    at async processIgnoreSyncFile (file:///C:/Users/babak/OneDrive/Documents/GitHub/babakfp.ir/node_modules/.pnpm/[email protected]/node_modules/ignore-sync/src/processIgnoreSyncFile.js:10:22)
    at async Promise.all (index 0)
    at async processDirectory (file:///C:/Users/babak/OneDrive/Documents/GitHub/babakfp.ir/node_modules/.pnpm/[email protected]/node_modules/ignore-sync/src/processDirectory.js:43:5)
    at async startApp (file:///C:/Users/babak/OneDrive/Documents/GitHub/babakfp.ir/node_modules/.pnpm/[email protected]/node_modules/ignore-sync/src/app.js:25:5)

This issue was resolved after switching to v7.0.0

babakfp avatar Sep 24 '23 11:09 babakfp

Can you provide a reproducible example?

foray1010 avatar Sep 24 '23 13:09 foray1010

git clone https://github.com/babakfp/babakfp.ir.git
cd babakfp.ir
git checkout ca3b1375f64ff53c65662db92025f6805fc886da

pnpm i
pnpm ignore-sync

babakfp avatar Sep 24 '23 13:09 babakfp

That is a private repo, can u post the config file here?

foray1010 avatar Sep 24 '23 14:09 foray1010

Ops!

Here's a proper reproduction: https://github.com/babakfp/foray1010.ignore-sync.issues.726

babakfp avatar Sep 24 '23 14:09 babakfp

It works fine on my side.

foray1010 avatar Sep 24 '23 14:09 foray1010

https://github.com/foray1010/ignore-sync/assets/44144724/df22e6f6-550c-46b0-9464-15332919392f

NodeJS: v20.6.1
PNPM: 8.6.12
NPM: 9.8.1
Windows 11

babakfp avatar Sep 24 '23 15:09 babakfp