You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed clang-format extension to format C++ files. It basically should call the clang-format executable in /usr/bin/clang-format, but it does not work inside Flatpak VSCodium.
It should be something related to the sandbox, but I can't get a workaround. I'd like to use the Flatpak version, but maybe the only fix is to return back to the normal one?
The text was updated successfully, but these errors were encountered:
@Digitalone1/usr/bin directory is protected by flatpak, you can do a workaround by creating a wrapper for clang-format binary on your host like
#!/usr/bin/env bash# uncomment this line if you prefered flatpak-spawn instead of host-spawn# flatpak-spawn --host "/HOST/PATH/TO/clang-format" "${@}"
host-spawn "/HOST/PATH/TO/clang-format""${@}"exit 0
Put these on your home for example ~/.local/bin/clang-format (make sure that the wrapper is executable with a chmod +x), I have in my zshrc/bashrc a modifed PATH variable like this:
### User specific environmentif! [[ "${PATH}"=~${HOME}/.local/bin: ]]
then
PATH="${HOME}/.local/bin:${PATH}"fiexport PATH
And add the wrapper whenever the plugin ask for clang-format binary.
It is not the best, but does the trick.
The better will be that someone add support for clang on an extension like org.freedesktop.Sdk.Extension.clang-stable.
I installed
clang-format
extension to format C++ files. It basically should call theclang-format
executable in/usr/bin/clang-format
, but it does not work inside Flatpak VSCodium.It should be something related to the sandbox, but I can't get a workaround. I'd like to use the Flatpak version, but maybe the only fix is to return back to the normal one?
The text was updated successfully, but these errors were encountered: