cdein / python-radon

MIT License
6 stars 2 forks source link

Couldn't find executable "radon". (but radon is installed.) #2

Open RamonGiovane opened 2 years ago

RamonGiovane commented 2 years ago

Hi. This extension is awesome, congrats! But it worked for a few hours only. Actually, after I updated VScode to 1.67.1on my Linux Mint 20.2 it stopped.

It keeps showing a pop up saying Couldn't find executable "radon". Radon is installed, although.

cdein commented 2 years ago

Hi, I am sorry that this is happening to you.

Please try to set the absolute path to your radon executable in the settings.

"python.radon.executable": "/home/cdein/.local/bin/radon"

So, I also have to do this, to make it work.

For some reason the environment of the vscode has no setting for the right path to find the radon executable.

DaveParr commented 2 years ago

If you are working within a specific project/ environment (venv, pyenv, poetry) the cli command which radon should output the path to copy and paste in.

RichardsonWTR commented 2 years ago

@cdein , is there any possibility to set the radon executable out from the interpreter path, dynamically? It's such a pain having to change this configuration manually every time.

For example, some people use conda, others anaconda, others venv, and so on.