-
Notifications
You must be signed in to change notification settings - Fork 9
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
rust-analyzer fails to resolve invocations of xflags::xflags!
#14
Comments
This seems to happen because there's a |
Adding This also, of course, works if you set it in your global settings. It might be nice to document, if there's no workaround that can be done inside this library. |
I tried to remove the xflags/xflags-macros/src/lib.rs Line 6 in fd9ab26
|
Submit a PR? |
xflags
is for the most part great (easy arg parsing without the compile time hit <3), but there are a few annoyances with using it. One of them is that rust-analyzer seems to be upset by it, producing errors likewhen the file containing the invocation happens to be open.
This, for the most part, isn't that big of a deal (just close the file, r-a shuts up, and everything works fine), but is an annoyance, and I've had to explain that this is what you should do to others on projects using xflags a couple times, so I figured I'd file a bug about it.
I assume the real solution is for rust-analyzer to get smarter, but... perhaps there's some workaround that xflags could to at least make this less annoying?
The text was updated successfully, but these errors were encountered: