Coder Social home page Coder Social logo

Comments (10)

mehcode avatar mehcode commented on July 19, 2024

Would you agree that if the whitelist is empty, no whitelist behaviour should occur?

Definitely. This is a bug.

@shemerey ?

from atom-project-plus.

mehcode avatar mehcode commented on July 19, 2024

@XanderXAJ I can't reproduce this. If you can reproduce this again, can you open the developer tools View -> Developer -> Toggle Developer Tools and run atom.config.get("project-plus.folderWhitelist") and atom.config.get("project-plus.folderBlacklist") in the console?

from atom-project-plus.

XanderXAJ avatar XanderXAJ commented on July 19, 2024

Sure thing. I cleared the whitelist config, ensured the issue was reproduced, then ran the following:

atom.config.get("project-plus.folderWhitelist")
""
atom.config.get("project-plus.folderBlacklist")
""

from atom-project-plus.

shemerey avatar shemerey commented on July 19, 2024

@XanderXAJ @mehcode I don't have windows, but it looks like a bug will install Windows in VM and check this out, fix should simple :)

from atom-project-plus.

mehcode avatar mehcode commented on July 19, 2024

If not I can test this on Windows (didn't even think about the OS; heh) at work tomorrow. I have Windows 10 on another partition.

from atom-project-plus.

shemerey avatar shemerey commented on July 19, 2024

@mehcode @XanderXAJ yes it's defiantly a bug, minimatch doesn't recognize " " on Windows properly

from atom-project-plus.

mehcode avatar mehcode commented on July 19, 2024

@XanderXAJ Please update to 0.7.2 and let us know if this is still a problem.

from atom-project-plus.

XanderXAJ avatar XanderXAJ commented on July 19, 2024

Thanks @mehcode @shemerey, I'm now getting all projects listed! :)

If this is a problem with minimatch, consider raising an upstream bug?

from atom-project-plus.

mehcode avatar mehcode commented on July 19, 2024

We were essentially doing this:

minimatch.filter('{,/**,}')("project/path")

... for each path in your project. If the whitelist was an empty string. If I was the maintainer of minimatch I'd tell us to fix our usage. It's an odd thing that it didn't error on linux; it doesn't even look valid.

from atom-project-plus.

XanderXAJ avatar XanderXAJ commented on July 19, 2024

Fair enough! I hadn't gotten around to looking at the underlying code. Thanks for the explanation — and the fix!

from atom-project-plus.

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.