Skip to content

Conversation

@IanMatthewHuff
Copy link
Member

For #3749

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)
  • Title summarizes what is changing
  • Has a news entry file (remember to thank yourself!)
  • Unit tests & system/integration tests are added/updated
  • Test plan is updated as appropriate
  • package-lock.json has been regenerated by running npm install (if dependencies have changed)
// Check if we actually changed our python path
const pySettings = this.configService.getSettings() as PythonSettings;
if (this.pythonPathSetting !== pySettings.pythonPath) {
this.pythonPathSetting = pySettings.pythonPath;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pythonPath [](start = 48, length = 10)

Is this the only thing that can change for an intrepreter? What if I had two virtualenvs with the same path but different names? (Not sure if that's possible or not)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rchiodo Yeah, I was a touch worried that I'm being too naive with this check. I'm not checking in until Don takes a look as I assume that he would know best on that. Might need to check more (venvpath condapath) in addition to the python path. I'll give the venv stuff a look myself now just for kicks.

Copy link

@rchiodo rchiodo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Copy link

@DonJayamanne DonJayamanne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @IanMatthewHuff I too came across this issue in another PR of mine and had to change it. Please can we put this on hold for my PR.

@IanMatthewHuff
Copy link
Member Author

@DonJayamanne Totally. I'll hold off, no problem.

@IanMatthewHuff IanMatthewHuff merged commit 6e0e28d into microsoft:master Jan 3, 2019
@IanMatthewHuff IanMatthewHuff deleted the dev/ianhu/fixInterpreterChangeEvent branch January 3, 2019 18:03
@lock lock bot locked as resolved and limited conversation to collaborators Jul 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants