-
Notifications
You must be signed in to change notification settings - Fork 47
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
Support simple glob patterns for ignore rules #106
Conversation
This looks like a good start. Are you planning to continue work on it? |
Definitely planning to continue this, apologies for the silence. Very busy over here lately. |
HI, @joaomoreno thanks for your contribution ~ I'm facing the same issue liked: microsoft/vscode#151827. When I watch a large project with a big I looked at your code and found that it did not handle this well, have you considered applying |
@devongovett do you have any suggestions here? |
It took us the longest time to understand test failures on Linux and we still cannot fully explain them but may now have found a workaround. A bit of detail: we use The result of
For a strange reason, on Linux only, this pattern would not match on simple input such as In the end I asked SO (https://stackoverflow.com/questions/74796098/c-regular-expression-with-negative-lookahead-and-matches-on-macos-but-not-l) but did not get a good answer. The verdict is to set |
Is it platform specific or compiler specific? You mentioned you compiled with clang on macOS and gcc on Linux. See if gcc on macOS has the same issue? Anyway, sounds like a possible compiler bug to me. Edit: or maybe standard library bug? |
Yeah good point, I would totally put my money on compiler specific and not platform specific, but have not verified yet. One thing we did try is to use newer versions of GCC (up to 11) to see if it still reproduces and there was no difference. https://godbolt.org/ is a great playground to check (e.g. https://godbolt.org/z/YK6GhKcqx). |
@devongovett I think this is good now for a review from you (Joao is out today, but he will mark the PR as non-draft later). Besides the trouble with the complex regex where we now have the
Some discussion items to you:
|
Awesome! I'll take a look soon. |
Hi @devongovett (happy new year!). Was wondering if you had a chance to review 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good! I'll test it out later tonight and get a release out for you this week. Thanks again for working on this. 😍
@devongovett wonderful ❤️ |
Fixes #64