NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.83k stars 13.92k forks source link

`Could not initialize Python interpreter` when using `vscode-lldb` #244882

Closed crabdancing closed 1 year ago

crabdancing commented 1 year ago

Describe the bug

Could not initialize Python interpreter error appears in DEBUG CONSOLE in VSCodium when using vscode-lldb.

Steps To Reproduce

NOTE: although I use Rust in my error reproduction steps, this error seems to happen with any language that CodeLLDB supports. Rust is simply the one I am most familiar with -- so feel free to use something else in testing.

Steps to reproduce the behavior:

  1. add environment.systemPackages to system nix expression:
environment.systemPackages = with pkgs; [
  (vscode-with-extensions.override {
      vscode = vscodium;
      vscodeExtensions = with vscode-extensions; [
        vadimcn.vscode-lldb
      ];
  })
];
  1. Navigate to, or create a Rust project: cargo new myproject; cd myproject
  2. Open in VSCodium: codium ., and attempt to compile (F5)

Notice DEBUG CONSOLE output: Could not initialize Python interpreter - some features will be unavailable (e.g. debug visualizers).

Expected behavior

Debug console should not show this error.

Screenshots

image

Additional context

Add any other context about the problem here.

Notify maintainers

@nigelgbanks

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 6.3.12, NixOS, 23.05 (Stoat), 23.05.20230709.8df7a67`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
crabdancing commented 1 year ago

Looks like this was already resolved in the master branch. I'll switch my package for this to master for now.