From 81060b7062a6a7dd786f030696ffae1d855792a9 Mon Sep 17 00:00:00 2001 From: Andrei Cravtov Date: Wed, 23 Jul 2025 14:12:11 +0100 Subject: [PATCH] Made basedpyright work with Jetbrains environment Co-authored-by: Gelu Vrabie Co-authored-by: Seth Howes Co-authored-by: Matt Beton --- .envrc | 1 + .gitignore | 5 ++++- .idea/pyright-overrides.xml | 1 + .idea/pyright.xml | 2 -- flake.nix | 4 ---- 5 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 .envrc diff --git a/.envrc b/.envrc new file mode 100644 index 00000000..8392d159 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake \ No newline at end of file diff --git a/.gitignore b/.gitignore index 4cf7c64f..8ac70684 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,7 @@ __pycache__ *.so -hosts_*.json \ No newline at end of file +hosts_*.json + +# hide direnv stuff +/.direnv \ No newline at end of file diff --git a/.idea/pyright-overrides.xml b/.idea/pyright-overrides.xml index 6fa46f1d..9216c0c4 100644 --- a/.idea/pyright-overrides.xml +++ b/.idea/pyright-overrides.xml @@ -3,6 +3,7 @@ \ No newline at end of file diff --git a/flake.nix b/flake.nix index ae20e4e2..31f2b0c5 100644 --- a/flake.nix +++ b/flake.nix @@ -86,11 +86,7 @@ ] ++ buildInputs ++ nativeBuildInputs; # fixes libstdc++.so issues and libgl.so issues -# LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib:$LD_LIBRARY_PATH"; LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib"; - - # exports basedpyright path so tools can discover it - BASEDPYRIGHT_BIN_PATH = "${pkgs.basedpyright}/bin/"; }; } );