-
Notifications
You must be signed in to change notification settings - Fork 18
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
"/**/*.dart" should match any absolute Dart file path on any OS #2
Comments
FYI - we cannot switch for using We are going to send these patterns back to IDEs, and we don't want them to understand idiosyncrasies of absolute paths matching. Ideally it should be even just |
I don't think we can exactly interpret That said, a leading slash does have a meaning on Windows that we could use here. On Windows, a leading slash denotes a root-relative path; that is,
This comes from the same rule. We want a glob to mean the same thing regardless of how you use it. If a user writes If it would help, we could add an
I'm not sure what you mean by "send these patterns back"—are you expecting IDEs to implement their own globbing logic? Or are you trying to match existing IDE behavior? You don't have to send IDEs the literal glob that's used by the |
The IDE need to know which files DAS analyses to know whether it should send changes as user types to get as you type errors. So, we need just the simplest thing which can be applied to absolute paths. And BTW, current directory can be different for DAS and IDE. Could we have a |
I don't understand this. What directory you consider a path or a glob relative to is something you can explicitly define. Why not just define these globs as relative to the package root? If you don't apply the globs to relative paths, how can users express things like "don't analyze anything in my
We definitely can't have a flag that fundamentally changes the semantics of |
Can we close this if it won't be acted on and perhaps is no longer needed? |
It's still probably a good idea for |
Should we rename the issue? |
It might be simpler just to file a new issue, actually. I'll do that. |
@nex3 @munificent @bwilkerson
Asking users to think about differences between Posix and Windows styles is too much.
Especially when path separators are already / for any OS.
I don't also quite understand the requirement for the leading / to match absolute paths.
It seems confusing.
The text was updated successfully, but these errors were encountered: