-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
globby is b0rked on Windows: .sync nor .async deliver /any/ result. #155
Comments
Hi! What NodeJS version? Did you try other versions? |
No, haven't tried other versions, but have seen this issue before. Then I switched tactics as I was in a hurry to get things done, so I don't expect this to be a node version specific thing. |
Side Note: globby use like this (i.e. without directories in the search argument) works as expected: globby([ 'ebnf-parser*.js' ]) |
New info Worky 😥 (phew!)This works on Windows:
As long as you
Not Worky 1Ergo: doing something like
will FAIL. Not Worky 2Ditto for any inattentive coding like this, where you employ (note the trouble-causing
ConclusionOnly work with paths coding and globby when you're totally hopped up on caffeine and bright and shiny yourself. 👼 "Using relative UNIXy paths only" won't save your bacon because:
Be vewwy vewwy careful and on the look-out for hidden backslash-in-a-path delivery boys, such as:
|
…lled `braceArrowActionCode()` - micro step towards merging this branch with the (currently still faulty!) master branch and make that one the main dev line once again. + this will take some significant migratory work on bnf.l + bnf.y before we can merge branches, though! master has a significantly advanced, yet buggy, new grammar spec, which never got finished as the plugs got pulled due to RL developments which are nearing the end after a year now |:-( - regenerated library files - updated test reference files - as usual done brute-force via `make clean-dumpfiles ; make` - removing testset file lists as globby is back in action -- see also sindresorhus/globby#155 (comment) - added another test example grammar for #51 ; also added the required input file and minimal lexer for producing a Minimum Viable Test Product running the generated grammars (if there's any success there)
@GerHobbelt yes, adding this test to
However, as a workaround you can do
Definitely some kind of bug in handle of full system paths combined with path.sep. |
@phawxby: yup, did another test and the multiple-drive search scenario seems to pass as well. 🤔 What did go wrong before over here then as when I did the A-ha! I did it too early: before the
which, 🤦 of course 🤦 , would happily convert those UNIX slashes back to Windows' So the Them Nasty Buggers
Back on the topic of What changed since that stuff got run last time? Over time...
And after all these updates, said test rig went t*ts up. (Not a big surprise. What was a surprise was that Anyway, that's where I chose to file an issue this time around. And here we are. 😅 Anyway, I hope some poor bugger will find some useful help in all this. Which changes this to maybe a choice: a. make (Incidentally, I bet the other globber libs out there suffer the same issue. I seem to recall some similar struggle with |
@GerHobbelt @phawxby I believe this was deliberate and was flagged as a breaking change in the v10.0.0 release, as fast-glob changed this behaviour in their v3.0.0 release. Fast-globs proposed workaround is |
I am only using globby to get all the deep filenames from a given cwd (so the results won't contain the parents dirs). The glob pattern is just |
Related to #152, but
.sync
is broken as well: doesn't matter what you try, globby won't produce any results.Sample code:
produces this:
while that directory is filled with tens of *.jisonlex files.
Ditto for the original code:
The text was updated successfully, but these errors were encountered: