# python: Fix ty binary path and required args \(\#38458\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/9e6f1d5a6eac1b3b603d828470064718d97fbc01)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 9e6f1d5a6eac1b3b603d828470064718d97fbc01

Requested commit: 9e6f1d5a6eac1b3b603d828470064718d97fbc01

Commit: 9e6f1d5a6eac1b3b603d828470064718d97fbc01

Tree: b87c0ff90ebfd3027c2071c0c35a3dd2c2616b97

Author: Derek Nguyen

Committer: GitHub

## Message

````
python: Fix ty binary path and required args (#38458)

Closes #38347

Release Notes:

- Fixed path and args to ty lsp binary


When attempting to use the new ty lsp integration in the preview, I
noticed issues related to accessing the binary. After deleting the
downloaded archive and adding the following changes that:

- downloads the archive with the correct `AssetKind::TarGz`
- uses the correct path to the extracted binary
- adds the `server` argument to initialize the lsp (like ruff)

After the above changes the LSP starts correctly
```bash
2025-09-18T16:17:03-05:00 INFO  [lsp] starting language server process. binary path: "/Users/dereknguyen/Library/Application Support/Zed/languages/ty/ty-0.0.1-alpha.20/ty-aarch64-apple-darwin/ty", working directory: "/Users/dereknguyen/projects/test-project", args: ["server"]
```
<img width="206" height="98" alt="image"
src="https://github.com/user-attachments/assets/8fcf423f-40a0-4cd9-a79e-e09666323fe2"
/>

---------

Co-authored-by: Cole Miller <cole@zed.dev>
````

## Parents

- [430ac5175f47dd39526f765fff4eb9bef8d181a0](https://git.cafe/gitcafe/zed/commit/430ac5175f47dd39526f765fff4eb9bef8d181a0?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/9e6f1d5a6eac1b3b603d828470064718d97fbc01?format=markdown)
