This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Commit 2143719
Mikhail Arkhipov
Multiple fixes and additional tests for persistence (#1372)
* Remove old qualified name
* Node storage
* Class and scope to use AST map
* Library analysis
* Fix SO
* Keep small AST with imports
* AST reduction
* Final field
* Initial
* Reload
* Ignore post-final requests
* Drop AST
* Remove local variables
* Test fixes
* Fix overload match
* Tests
* Add locks
* Remove local variables
* Drop file content to save memory
* Cache PEP hints
* Recreate AST
* Fix specialization
* Fix locations
* usings
* Test fixes
* Add options to keep data in memory
* Fix test
* Fix lambda parameters
* Fix argument set
Fix global scope node
* Fix overload doc
* Fix stub merge errors
* Fix async issues
* Undo some changes
* Fix test
* Fix race condition
* Partial
* Models and views
* Restore log null checks
* Fix merge conflict
* Fix merge issue
* Null check
* Partial
* Partial
* Partial
* Fix test
* Partial
* Partial
* First test
* Baseline comparison
* Builtins
* Partial
* Type fixes
* Fix type names, part I
* Qualified name
* Properly write variables
* Partial
* Construct module from model
* Test
* Variable creations
* Factories
* Factories
* Split construction
* Restore
* Save builtins
* Test passes
* Qualified name
* Better export detection
* Test fixes
* More consistent qualified names
* Sys test
* Demo
* Complete sys write/read
* Partial
* Partial
* Test staility
* Perf bug
* Baseline, remove debug code, deactivate db
* Test fixes
* Test fix
* Simplify a bit
* Baselines and use : separator
* Baselines
* PR feedback
* Merge master
* Remove registry reference
* PR feedback
* PR feedback
* Restore persistence + update test
* Better handle persistent module in dependencies
* Undo
* Add location converter abstraction
* Store member location
* Fix merge issue
* Basic locations test
* Navigation
* Add test
* Update baselines
* Type restore - initial
* Remove debug code
* Partial
* Fix stub merge
* Various model fixes
* Improve module handling
* Qualified name improvements
* Fix unbound case
* Improve stub merge
* Fix qualified names of typing
* Handle stub-only modules
* Add tests for io, re and sys
* Better handle named tuple
* Handle module circular references
* Handle else in platform and version clauses + handle it in symbol collector
* Formatting
* Fix walk of multi-level if statement
* Unify package search in imports
* Fix tests
* Undo change
* Port changes from dbtype
* Partial
* Named tuple support
* Baseline updates
* Debug code
* Support types
* Properly compare class member declaring type
* Nested classes and functions persistence
* Undo debug
* Fix numpy restore
* Baselines
* Fix tests
* Update AnyStr test reflecting changes to AnyStr behavior
* Exclude baselines from git diff
* Fix gitattr
* Move git setting to root
* Try no path
* Add RDT count to the analysis_complete event (#1396)
* Add RDT count to the analysis_complete event
* Use property instead of method
* Test fixes
* Undo change
* Additional stub merge fixes
* Baseline updates
* Fix goto def
* Protect specific type creation
* Track documentaton source
* More reliable tests + simplification
* Prevent crashes when the AST happens to be null (#1405)
* Remove all references to dropped modules and force GC on reload (#1402)
* First attempt at ensuring moduled dropped during reload are GC'd
* Make sure AST is set after content is cleared
* More tests passing
* ModuleWalker updates
* Also don't merge against specialized modules, do builtin _astMap reset before reanalyzing instead of after any analysis
* Don't call dispose directly, it's done elsewhere and has no effect
* Force GC via normal session instead of waiting for a hardcoded time
* Un-refactor function since it's not being called externally anymore
* Formatting/usings
* PR feedback
* Undo IsBuiltin, some things continued to be referenced with that changed
* Move reload logic down into PythonAnalyzer, remove added public inferface items
* Mode AddReference to PythonType as override
* Remove dead code, make all ResetAnalyzer calls full
* Typo
* Cleanup
* Basic classification
* Fix merge error
* Module unique id fixes
* Stricted check to save analysis
* Revert "Fix tests"
This reverts commit 247a8c3.
* Revert "Unify package search in imports"
This reverts commit 67fed10.
* Don't clear scope variables with inner classes
* Fix typo1 parent a502cb5 commit 2143719
File tree
106 files changed
+1955
-74710
lines changed- src
- Analysis
- Ast
- Impl
- Analyzer
- Definitions
- Evaluation
- Handlers
- Symbols
- Documents
- Definitions
- Extensions
- Modules
- Definitions
- Resolution
- Specializations
- Typing
- Types
- Types
- Collections
- Definitions
- Values/Collections
- Test
- FluentAssertions
- Core/Impl
- Interpreter
- Properties
- Caching
- Impl
- Factories
- Models
- Test
- Files
- LanguageServer/Impl
- Completion
- Implementation
- Indexing
- Protocol
- Sources
- Parsing/Test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
106 files changed
+1955
-74710
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | | - | |
| 61 | + | |
61 | 62 | | |
62 | | - | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
Lines changed: 17 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
241 | 240 | | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
| 241 | + | |
| 242 | + | |
251 | 243 | | |
252 | 244 | | |
253 | | - | |
254 | | - | |
255 | | - | |
| 245 | + | |
256 | 246 | | |
257 | 247 | | |
258 | 248 | | |
259 | 249 | | |
260 | 250 | | |
261 | 251 | | |
262 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
263 | 266 | | |
264 | 267 | | |
265 | 268 | | |
| |||
Lines changed: 2 additions & 107 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | 16 | | |
19 | | - | |
20 | 17 | | |
21 | 18 | | |
22 | 19 | | |
23 | 20 | | |
24 | 21 | | |
25 | 22 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 23 | | |
33 | 24 | | |
34 | 25 | | |
35 | 26 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 27 | + | |
| 28 | + | |
134 | 29 | | |
135 | 30 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
22 | 20 | | |
23 | | - | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
| |||
0 commit comments