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

Conversation

@MikhailArkhipov
Copy link

Fixed #47

Note: #273 is related, but requires different fix.

  • Added calculation of dependent set dropping cycles
  • Added test


namespace Microsoft.PythonTools.Analysis.Infrastructure.Extensions {
public static class HashSetExtensions {
public static void Add<T>(this HashSet<T> set, IEnumerable<T> items) {
Copy link
Member

Choose a reason for hiding this comment

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

Isn't this just HashSet.UnionWith?

Copy link
Author

Choose a reason for hiding this comment

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

Good point

AnalysisQueue.Enqueue(analyzable, priority);

if (doc is ProjectEntry entry) {
var reanalyzeEntries = Analyzer.GetAllModuleDependents(entry.ModuleName, false);
Copy link
Contributor

Choose a reason for hiding this comment

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

This will most likely die on ptvsd again

Copy link
Author

Choose a reason for hiding this comment

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

Where did it die? Original code cycled, this one should not.

@MikhailArkhipov
Copy link
Author

Actually, we need to resolve #273 first

@MikhailArkhipov MikhailArkhipov deleted the alldeps branch October 25, 2018 03:03
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.

MutatingReferences test fails

3 participants