Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vscode install] 4/n add retry for pip install dependencies #1294

Merged
merged 2 commits into from
Feb 22, 2024

Conversation

Ankush-lastmile
Copy link
Member

@Ankush-lastmile Ankush-lastmile commented Feb 22, 2024

Ankush-lastmile added a commit that referenced this pull request Feb 22, 2024
…nstall (#1265)

[vscode installation] 2/n refactor error message for invalid python
install

Added a helper method for showing user friendly error when python
install doesn't go well.

## Testplan

Select Interpreter version 3.9.4. Open an editor and expect an error
notification.


https://github.com/lastmile-ai/aiconfig/assets/141073967/5bda86e0-690f-4e43-9e94-f9279e3b2f34

---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with
[ReviewStack](https://reviewstack.dev/lastmile-ai/aiconfig/pull/1265).
* #1294
* #1289
* #1290
* __->__ #1265
Ankush Pala ankush@lastmileai.dev added 2 commits February 22, 2024 12:57
This diff updates the initialize flow to include the Python interpreter selection step. It ensures dependencies are installed only after the interpreter selection is finalized, accommodating the no-op change where the selected interpreter remains unchanged.

Note: If the extension is not activated, invoking the Initialize AIConfig command for an unknown reason installs dependencies on the pre-selected interpreter path


## testplan

Extension initializes on Opening An AIConfig

Test select a new interpreter

Test reselecting the same interpreter

https://github.com/lastmile-ai/aiconfig/assets/141073967/1a51ff89-3889-4fd6-8964-c341453ddf68
@Ankush-lastmile Ankush-lastmile changed the title [vscode install] add retry for pip install dependencies [vscode install] 4/n add retry for pip install dependencies Feb 22, 2024
@Ankush-lastmile Ankush-lastmile marked this pull request as ready for review February 22, 2024 18:24
@Ankush-lastmile Ankush-lastmile merged commit b7a74bf into main Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants