-
Notifications
You must be signed in to change notification settings - Fork 380
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
Cannot debug error while loading shared libraries: libtest-758a09c353a92957.so #8711
Comments
I am having the same issue, IntelliJ 221.5921.22, rust plugin 0.4.174.4743-221, rustc 1.61.1 on Linux Mint. I was trying to debug some rust-clippy unit tests. I have also seen it elsewhere. Running tests (without debug) works just fine. UPDATE: Seems like the issue was related to the missing
|
I'm also using CLion with the Rust plugin, I'm working on a game using the Bevy game engine and I'm getting the same error but with
How would I go about fixing this error for the Update 1: I found this stack overflow page: https://stackoverflow.com/questions/480764/linux-error-while-loading-shared-libraries-cannot-open-shared-object-file-no-s and used the command Now I'm not sure how to add that to my CLion+Rust project configuration for the debugger to find. I opened my project configuration, opened the environment variables tab, and added an entry with key |
@frederickjjoubert I guess the path to the containing directory should be used, instead of the file itself. Please try setting |
@ortem Thank you for your reply. I changed my project environment variables to be key After following the other guide, when I run |
Setting an environment variable in my CLion Cargo Run configuration to
allowed me to properly use the CLion debugger. |
See rust-lang/cargo#4895 for the upstream issue. |
Environment
Problem description
When debugging some tests it fails with a failure to find a shared library. Other tests run just as fine
Steps to reproduce
This project has two cargos https://github.com/furstenheim/challenge_deserializer/tree/test-macro-directly,
One for the macro, the other that uses the macro. Both of them have one test.
From intellij I can execute both tests and I can debug the test in challenge_encoding_macro.
However, If I try to debug the test in https://github.com/furstenheim/challenge_deserializer/blob/test-macro-directly/challenge_encoding_derive/src/test.rs it fails with " error while loading shared libraries: libtest-758a09c353a92957.so: cannot open shared object file: No such file or directory"
The text was updated successfully, but these errors were encountered: