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

Fails on Windows #63

Closed
jdalton opened this issue Feb 18, 2018 · 3 comments
Closed

Fails on Windows #63

jdalton opened this issue Feb 18, 2018 · 3 comments
Assignees

Comments

@jdalton
Copy link

jdalton commented Feb 18, 2018

Hi! I'm seeing a fail on Windows related to micromatch/micromatch#95 (comment) and path.sep. Does this sound like something fast-glob is doing?

The error stack is:

C:\projects\esm\node_modules\snapdragon\lib\parser.js:473
        throw new Error('no parsers registered for: "' + self.input.slice(0, 5) + '"');
        ^

.cac": no parsers registered for: "
    at parse (C:\projects\esm\node_modules\snapdragon\lib\parser.js:473:15)
    at Parser.parse (C:\projects\esm\node_modules\snapdragon\lib\parser.js:477:24)
    at Snapdragon.parse (C:\projects\esm\node_modules\snapdragon\index.js:122:28)
    at Snapdragon.<anonymous> (C:\projects\esm\node_modules\fast-glob\node_modules\micromatch\lib\utils.js:47:45)
    at parse (C:\projects\esm\node_modules\fast-glob\node_modules\micromatch\index.js:741:26)
    at memoize (C:\projects\esm\node_modules\fast-glob\node_modules\micromatch\index.js:861:13)
    at Function.micromatch.parse (C:\projects\esm\node_modules\fast-glob\node_modules\micromatch\index.js:747:10)
    at create (C:\projects\esm\node_modules\fast-glob\node_modules\micromatch\index.js:688:44)
    at C:\projects\esm\node_modules\fast-glob\node_modules\micromatch\index.js:697:16
    at memoize (C:\projects\esm\node_modules\fast-glob\node_modules\micromatch\index.js:861:13)
npm ERR! Test failed.  See above for more details.
@jdalton
Copy link
Author

jdalton commented Feb 18, 2018

I have a folder named .cache that I think it's tripping up on. It's seeing it as an extension. I don't get the error on Mac/Linux though.

Maybe related to the micromatch dot option.

@jdalton jdalton closed this as completed Feb 18, 2018
@jdalton
Copy link
Author

jdalton commented Feb 18, 2018

Turned out to be an odd regexp parsing bug in Nodechakra.

@mrmlnc mrmlnc self-assigned this Feb 18, 2018
@mrmlnc
Copy link
Owner

mrmlnc commented Feb 18, 2018

Hello, @jdalton,

In the fast-glob package we transform all paths to Unix-way view (/) before we start working with them. The micromatch package also apply unixify function for all paths.

You can provide more information for your case (how to I can reproduce your problem, actual and expected behaviour), for example, use Issue template in this repository.

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