1

uv and ruff tool path problem

I have install uv and ruff in macos. The paths are: /opt/homebrew/bin/ruff /Users/bai/.local/bin/uv

But wingware can't find two tools, how to mapping such paths?

bai's avatar
83
bai
asked 2025-04-23 19:53:26 -0500
Wingware Support's avatar
4.2k
Wingware Support
updated 2025-04-25 07:28:01 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

I think you need to add to your PATH environment. You can do this either outside of Wing (so everything has access to those tools) or in Wing. If in Wing, open Project Properties from the Project menu and under the Environment tab for Environment select "Add to inherited environment" and enter the following:

PATH=$(PATH):/opt/homebrew/bin:/Users/bai/.local/bin

BTW, for both of these I think there are some scripts you can run to add them outside of Wing but at the moment I'm not sure of the details. It's just something I remember from installing these myself in the somewhat distant past. I think this was mentioned in the installation instructions for each of the tools.

Wingware Support's avatar
4.2k
Wingware Support
answered 2025-04-23 19:59:24 -0500
edit flag offensive 0 remove flag delete link

Comments

I have add the uv installed path to the PATH. I am use macos 15.2, use the install processing in the website. curl -LsSf https://astral.sh/uv/install.sh | less

uv path is ~/.local/bin/uv, in my shell and other editor I can use uv. Could you double check the uv problem in macos?

bai's avatar bai (2025-04-25 05:48:31 -0500) edit

I think that Wing somehow isn't inheriting the env correctly when started from the icon on macOS. It seems to work if you start Wing from the command line with /Applications/Wing Pro.app/Contents/Resources/wing (or similar depending on installation location). You can add & at the end of the command line to get Wing to run in the background.

We have code to work around that behavior in macOS but I'm also seeing issues with this here and we'll try to fix it.

Wingware Support's avatar Wingware Support (2025-04-25 07:27:46 -0500) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer