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
Mikhail Arkhipov (MikhailArkhipov) merged 10 commits into
microsoft:masterfrom
MikhailArkhipov:611
Feb 28, 2019
Merged

Mikhail Arkhipov (MikhailArkhipov) merged 10 commits into
microsoft:masterfrom
MikhailArkhipov:611

Conversation

@MikhailArkhipov

Copy link
Copy Markdown

Fixes #611

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

Copy link
Copy Markdown
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
Copy Markdown
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

Comment thread src/Analysis/Ast/Impl/Modules/PythonModule.cs
@MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov) merged commit 768f0b9 into microsoft:master Feb 28, 2019
Jake Bailey (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