Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2815

Emacs installed with flatpak cannot find executable

$
0
0

I am working in the wsl Ubuntu-20.04. I have emacs 30.1 installed via flatpak.

I also have an executable installed, haskell-language-server-wrapper. I can confirm that this is on my path:

which haskell-language-server-wrapper~/.ghcup/bin/haskell-language-server-wrapper

Since this is a language server, emacs needs access to it. When I open a Haskell file in emacs, I get the error

Error in post-command-hook...[glot] (warning] Searching for program: No such file or directory, haskell-language-server-wrapper

I thought that this might have to do with sandbox permissions and such so, following this post, I tried adding the specific executable to the flatpak file system permissions:

sudo flatpak override org.gnu.emacs --filesystem="~/.ghcup/bin/haskell-language-server-wrapper"

I can confirm that this permission has been added with

flatpak override --show org.gnu.emacs[Context]filesystems=/home/r/.ghcup/bin/haskell-language-server-wrapper;

However, I am still getting the same error. I also just tried adding the parent directory to the file systems permissions, but this did not work either.

I have gotten the Haskell language server working on a different computer, running fedora (no wsl) and non-flatpak emacs, without any issues. So at this point, I'm not sure if this is a flatpak issue, an emacs issue, a Haskell language server issue, or a wsl issue. Any help would be appreciated.


Viewing all articles
Browse latest Browse all 2815

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>