basedpyright / ruff not detecting installed libraries in conda #12440
Replies: 1 comment
-
FIXED! Looks like MacOS mangles the paths or something when you use If using bash, edit
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all!
Edit: This is on MacOS with Helix 25.01 as well as basedpyright and ruff installed in the rc conda environment. Surprisingly, method 1 works just fine on my linux machine
I was wondering if I could get some help. Say I have a conda environment,
rc
, where I've gotnumpy
installed. My helix installation doesn't seem to detect it. I've tried two things, which I've listed below (one was a solution I found searching through the discussions here on github).To avoid repetition, I'm copy-pasting my main
languages.toml
and a quick script:Common Code
languages.toml
tester.py
Steps
conda activate rc
hx tester.py
Scenario 1: Standard
In this case, my LSP is reporting
Scenario 2: Solution from discussion
I found Python Virtualenvs, in which someone proposed a fix, but it hasn't addressed my issue. Anyways. the change I made to my
languages.toml
:I then added a script (where my other configs live)
.config/helix/│basedpyright-ls-helix.sh
, which has the contents:In this case, I do not see the error of
however, there is no autocompletion....
Logs:
I'm hoping the logs are helpful?
Beta Was this translation helpful? Give feedback.
All reactions