-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 crashes on this project #4400
Comments
That's unfortunate indeed. I've removed the selinux headers from my machine and narrowed the problem down to two utils: |
It turns out that |
I couldn't find a way to do this, so I opened an issue at rust-analyzer. Hopefully they can build some solution for this! |
Maybe I can second a bit. As far as I can remember I solved this issue by installing the $ pacman -Ql libselinux
# ... a lot of stuff
libselinux /usr/include/selinux/
libselinux /usr/include/selinux/avc.h
libselinux /usr/include/selinux/context.h
libselinux /usr/include/selinux/get_context_list.h
libselinux /usr/include/selinux/get_default_type.h
libselinux /usr/include/selinux/label.h
libselinux /usr/include/selinux/restorecon.h
libselinux /usr/include/selinux/selinux.h
libselinux /usr/lib/
libselinux /usr/lib/libselinux.so
libselinux /usr/lib/libselinux.so.1
# ... and more stuff I haven't tried but you may also get around the missing headers if you download just the headers and install them in |
This can be resolved on Ubuntu by installing |
Thank you, I had the same problem with CLion (Rust Plugin) even with selinux feature disabled. |
I cannot get rust-analyzer working in VS Code on this project. It seems to insist on needing
selinux/selinux.h
, which it doesn't seem that any package on Arch Linux provides (at least according topacman -F
, which searches for which package provides a file).(Worth noting: I will not be installing SELinux outside the official distribution channels by hand or from the user provided packages on AUR, should that be required.)
I tried adding the following to the workspace settings, to prevent it from activating the selinux feature, but it made no difference:
The full error I get is:
So how do I get past this so that rust-analyzer can work and I can contribute to this project?
The text was updated successfully, but these errors were encountered: