astral-sh / uv

An extremely fast Python package and project manager, written in Rust.
https://docs.astral.sh/uv
Apache License 2.0
23.19k stars 667 forks source link

Add support for environment detection to VSCode #1156

Open zanieb opened 8 months ago

zanieb commented 8 months ago

This is probably not relevant for us yet, but I want to track contributing this.

e.g.

casellimarco commented 8 months ago

Actually it would be really appreciated feature, I have been already struggling with this

chrisrodrigue commented 2 months ago

I am noticing that uv's .venv folder is not detected by vscode.

Oddly, the .venv folder produced by poetry and pdm do get detected and the venv is auto-activated within the integrated terminal of vscode.

Edit: Seems this was a fluke. It's being found by vscode now!

charliermarsh commented 2 months ago

Huh, interesting. There's nothing special about our .venv!

eth3lbert commented 2 months ago

I just try it with VSCodium but it does auto-activated the venv.

ophiry commented 3 weeks ago

Would be very useful. is there any workaround for this?

mark-kazakov commented 3 weeks ago

I also had issues on linux with that, on my side the problem was that I installed vscode/vscodium from a flatpak. Installing from a regular package manager solved the issues. I just select the python interpreter from vscode and it detects all the installed packages in the .venv folder. However I am unable to create from vscode a .venv environemnt using uv.

merlinz01 commented 1 week ago

What might be nice is smart handling of script dependency metadata.

image