-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Flatpak Permissions are improperly configured, not allowing cargo to be found by VSC #2027
Comments
The issue is due to the flatpak sandbox. I don't any real solution since the Maybe an help could be added after https://github.com/flathub/com.vscodium.codium?tab=readme-ov-file#sdks |
I use rust-analyzer extension for my projects and work and until now is working flatpak install flathub --user -y org.freedesktop.Sdk.Extension.rust-stable
flatpak override --env="FLATPAK_ENABLE_SDK_EXT=rust-stable" --user com.vscodium.codium Then on my zshrc and bashrc ### User specific environment
if ! [[ "${PATH}" =~ ${HOME}/.local/bin: ]]
then
PATH="${HOME}/.local/bin:${PATH}"
fi
export PATH
### This comes from rustup
### Load Rust environment automatically
rust_env="${HOME}/.cargo/env"
# shellcheck source=/dev/null
[[ -f "${rust_env}" ]] && . "${rust_env}" If these works for you, I will add these steps on the Flatpak FAQ or better where @daiyam thinks will be better to place =) |
@noonsleeper I'm not the original poster but I'm running Debian 12 and the above did not work for me - I'm getting the same error. Thank you though !! |
I found another thread that gave me |
Before i start this report, there is a currently working workaround on an unrelated repo posted by user mmstick.
Link to his solution that had worked for me personally : rust-lang/rust-analyzer#2873 (comment)
Describe the bug
Couldn't get rust-analyzer extension to work, figured perhaps file permission issue so went into flatseal, gave it all file perms it needed, problem still occured, check attached sceenshots, they are in order.
Please confirm that this problem is VSCodium-specific
Yes, as vscode does not provide a flatpak (at least upon viewing the vscode website), and this is flatpak related.
Please confirm that the issue/resolution isn't already documented
This issue has been documented on another repository unrelated to vscodium. Link below.
rust-lang/rust-analyzer#2873
To Reproduce
Steps to reproduce the behavior:
Expected behavior
For cargo to be found by the application.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: