Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Reload modules on pip install #667

Merged
merged 10 commits into from
Feb 28, 2019
Merged

Reload modules on pip install #667

merged 10 commits into from
Feb 28, 2019

Conversation

MikhailArkhipov
Copy link

Fixes #611

);
() => {
logger.Log(TraceEventType.Information, Resources.ReloadingModules);
interpreter.ModuleResolution.ReloadAsync(cancellationToken).ContinueWith(t => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we clean the ModuleResolutionBase._modules when we do ReloadAsync?

Copy link
Author

Choose a reason for hiding this comment

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

ReloadAsync technically should be doing it, let me check

@MikhailArkhipov MikhailArkhipov merged commit 768f0b9 into microsoft:master Feb 28, 2019
@MikhailArkhipov MikhailArkhipov deleted the 611 branch February 28, 2019 03:39
jakebailey pushed a commit to jakebailey/python-language-server that referenced this pull request Nov 1, 2019
* Fix NRE

* Don't eval stub functions

* Better stub eval fix

* Merge issues

* Reload modules

* Undo a change

* Clear module table on reload
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants