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

add .env file so VSCode autocomplete functions work #5

Closed
wants to merge 1 commit into from

Conversation

irm-codebase
Copy link
Collaborator

@irm-codebase irm-codebase commented Feb 19, 2024

Added an .env file pointing PYTHONPATH to ./src so that VSCode can perform autocomplete functions for our code.

Small quality of life stuff.

@brynpickering
Copy link
Member

Not sure what problem you're trying to solve here. If you follow the development install instructions and then link the mamba env to Python: Select Interpreter in VSCode, you get autocomplete. Example:

Screen.Recording.2024-02-19.at.14.03.24.mov

@irm-codebase
Copy link
Collaborator Author

irm-codebase commented Feb 19, 2024

This is quite odd... I swear it was not working before.
It may be related to some issues that VSCode has been having with miniforge (microsoft/vscode-python#22918), sometimes it refuses to activate the environment even after specifying it.

I'll close the pull request.

@brynpickering
Copy link
Member

Interesting. I have this duplication issue but then I don't use the inbuilt vscode debugger so haven't had to deal with its ability to keep track of the environment correctly when debugging...

@irm-codebase
Copy link
Collaborator Author

What do you use as a debugger instead? This issue is completely breaking debug functionalities on my end, and I cannot test some things on the toy model :(

@irm-codebase irm-codebase deleted the add-env-file branch February 19, 2024 19:24
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