I am having a strange issue whenever I open vscode in a shell environment all the software pertaining to the environment segfaults when I try to manually use them via the builtin vscode terminal or when vscode tries to make use of them (language servers). I use home-manager to manage vscode, below is a snippet of the package/extension config.
package = if pkgs.system == "x86_64-linux" then
pkgs.vscode.fhsWithPackages
(ps: with ps; [ pkgs.nil nixfmt sumneko-lua-language-server ])
else
pkgs.vscode;
extensions = if pkgs.system == "x86_64-linux" then
with pkgs.vscode-extensions;
[
haskell.haskell
vadimcn.vscode-lldb
mads-hartmann.bash-ide-vscode
foxundermoon.shell-format
] ++ base-extensions
else
[ ] ++ base-extensions;
The current environment I am trying to get working is a haskell.nix template environment. I noticed something similar to this with a small rust project I was working with the other day and ended up fixing it by changing where my package sources come from. Instead of a generic shell.nix importing I pinned everything with a flake pointing at unstable. This rebuild of the local environment fixed this issue then. I still don’t know what the root cause of this is though. Since haskell.nix uses its own nixpkg input I am at a loss currently. Any help is appreciated.
Thanks,
Brian
Whenever I run any command pertaining to the environment and even some coreutils I see the same happening. [1] 517 segmentation fault (core dumped) haskell-language-server
I am not getting any errors mentioning stack smashing