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

highlighting differs in repl vs actual file #23699

Closed
eleanorjboyd opened this issue Jun 25, 2024 · 3 comments
Closed

highlighting differs in repl vs actual file #23699

eleanorjboyd opened this issue Jun 25, 2024 · 3 comments
Assignees
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@eleanorjboyd
Copy link
Member

Testing #23676

this is a nit and really a small item but testing_tools is highlighted in one but not the other. Also its interesting because the import works correctly on testing tools, even though it probably shouldn't since I commented out the part that adds the right directory to the path that allows the file to find the import. Not entirely sure what edits you are making to the path but that is a bit confusing

Screenshot 2024-06-25 at 10 26 58 AM

I printed out the path and it includes '/Users/eleanorboyd/.vscode-insiders/extensions/ms-python.python-2024.9.2024062506-darwin-arm64/python_files' which is not my cwd so im not entirely sure why it is added

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jun 25, 2024
@eleanorjboyd
Copy link
Member Author

lmk if this doesn't make any sense- I was mostly just trying to dig into the path and understand the cwd for the repl given the file I called

@anthonykim1
Copy link

So the highlighting would differ because one is Python file and the Native REPL is essentially a notebook doc.

But for sys.path and cwd I do also think its bit weird. We do set the cwd for user, but perhaps we need to change the path when we do this too? This way you would see your cwd on your path and not the python_files? Not sure what the best way to go about this is.

Image

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Dec 9, 2024
@anthonykim1
Copy link

Closing this as highlighting would differ from Python file vs. Notebook.
In terms of cwd and sys.path discussion, lets track it: #24361

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants