Code Monkey home page Code Monkey logo

Comments (11)

phated avatar phated commented on August 15, 2024

Need the version of glob you are using directly. If it is latest, that is quite different

from glob-stream.

bdukes avatar bdukes commented on August 15, 2024

I had just done an npm install glob for testing, which installed [email protected]. Looking at [email protected], I also just installed [email protected] (per https://github.com/gulpjs/glob-stream/blob/v5.0.0/package.json), and get the same results.

from glob-stream.

phated avatar phated commented on August 15, 2024

@bdukes cool. Can you also test glob using the on('match') syntax to see if it is a bug with that?

from glob-stream.

phated avatar phated commented on August 15, 2024

@bdukes ref https://github.com/isaacs/node-glob#events

from glob-stream.

bdukes avatar bdukes commented on August 15, 2024

[email protected] works fine using on('match')

from glob-stream.

phated avatar phated commented on August 15, 2024

@bdukes can you please create a repo for reproduction that includes files and scripts? I have some time to look at this today

from glob-stream.

bdukes avatar bdukes commented on August 15, 2024

I've put a repro at https://dl.dropboxusercontent.com/u/5536031/glob-stream-nocase-repro.zip

from glob-stream.

phated avatar phated commented on August 15, 2024

Thanks! It seems this is only happening on window's and is related to us making the glob absolute. I think I will be able to track this into the glob library

from glob-stream.

bdukes avatar bdukes commented on August 15, 2024

👍

from glob-stream.

phated avatar phated commented on August 15, 2024

The example below has the same problem as described. Looks to be a node-glob issue.

var testGlob = new glob.Glob('C:\\Users\\phated\\Downloads\\glob-stream-nocase-repro\\testing\\**\\*.glob', { nocase: true });
testGlob.on('match', function (match) {
    console.log('glob matched', match);
}).on('end', function () {
    console.log('done matching via glob');
})

from glob-stream.

phated avatar phated commented on August 15, 2024

Found the issue already opened for this over on glob: isaacs/node-glob#123

Going to close this as the bug is happening upstream and there isn't much we can do about it. You could probably poke some of the related threads. There seems to be a PR open that tries to solve it but is way out of date.

from glob-stream.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.