This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Commit 037d248
Mikhail Arkhipov
Report unresolved imports (#593)
* Part 7
* Buildable
* PR feedback
* Merge conflict
* Fix #446
* Fix #446
* Part 8
* Part 9
* Buildable
* Part 10
* Part 11
* Part 12
* Buildable
* Part 14
* First passing test
* Simplify configuration
* Style
* Fix test and move code to folders
* Builtins import
* Fix #470
* Fluents
* Add search path
* Import analysis, part I
* Simplify builtins handling
* Remove IMember
* Handle import specific
* More tests
* Add typeshed
* Renames
* Make sure lazy modules are loaded
* Renames
* Move/rename
* Rework importing
* Derivation rework
* Part 2
* Part 3
* Buildable
* Module members
* Async walk
* Imports test pass
* Remove lazy types
* Fix from import
* Stubs
* Double overloads
* Fix datetime test
* Couple more tests + fluents
* Few more tests
* Additionl test + union type
* Built-in scrape tests
* Full stdlib scrape test
* Complete async AST walker
* Conditional defines test + variable loc cleanup
* More stub tests
Fix stub loading for packages (port from DDG)
Split walker into multiple files
* Add some (broken mostly) tests from DDG
* Move document tests
* Function arg eval, part I
* Instance/factory
* Builds
* Test fixes
* Fix static and instance call eval
* More tests
* More ported tests
* Specialize builtin functions
* Make walkers common and handle nested functions
* Moar tests
* Parser fixes + more tests
* Handle negative numbers
* Fix null ref
* Basic list support
* Few more list tests
* Basic iterators
* Support __iter__
* Iterators
* Fix couple of tests
* Add decorator test
* Generics, part I
* Generics, part 2
* Generics, part 3
* Basic TypeVar test
* Typings, part 4
* Fix test
* Generics, part 6
* Generics, part 7
* More tests (failing)
* Forward ref fixes
* Reorg
* Improve symbol resolution + test fixes
* Test fixes
* Dictionary, part I
* Part 11
* Fix test
* Tests
* Tests
* More dict work
* List ctor
* Skip some tests for now
* Fix iterators
* Tuple slicing
* Polish type comparo in return types
* Add Mapping and tests
* Add Iterable
* Fix typo
* Add Iterator[T] + test
* Simplify typing types
* Class reduction
* Fix tests
* Test fix
* Handle 'with' statement
* Handle try-except
* Class method inheritance + NewType
* Container types
* Containers test
* Tests
* Handle generic type alias
* Named tuple
* Global/non-local
* Handle tuples in for
Handle custom iterators
* Basic generator
* Any/AnyStr
* Test fixes
* Type/Optional/etc handling
* Proper doc population
* Tests + range
* Argument match
* Basic argset and diagnostics
* Argset tests
* Exclude WIP
* Exclude WIP
* Arg eval
* Arg match, part 2
* Tests and generic arg comparisons
* Function eval with arguments
* Baselines
* Fix test
* Undo AST formatting change and update baseline
* LS cleanup 1
* Fix list ctor argument unpacking
* Cleanup 2
* Builds
* Partial completions
* Partial
* Partial
* Simple test
* Tests
* Basic startup
* Clean up a bit
* Remove debug code
* Port formatter tests
* Fix tokenizer crash
* Async fixes
* Hover
* Basic hover
* Adjust expression options
* Basic signature help
* Fix class/instance
* Update test
* Fix builtin creation exception
* Fix tests
* Actually provide declared module
* Completion test (partial)
* Undo
* Fix null await
Fix override completions + test
* Exports filtering
Prevent augmenting imported types
* Filter variables & exports
* Ported tests
* Test fixes
* More ported tests
* Fix exception completions
* Import completions
* Scope completions
* With completions
* Test fixes
* WIP
* Test fix
* Better arg match
* Temp disable WIP
* First cut
* Fix type leak
* WIP
* Remove ConfigureAwait and handle canceled and failed in the analysis notifications
* WIP
* Generic class base
* Generic forward reference resolution
* Suppress completion in strings + test
* Prevent recursion on generic resolution
Better match arguments
* Handle call expression in generics
* Relax condition as it happens in tensorflow
* Fix typeshed version search
Make writing cached modules async
Fix module doc fetching
* Hover tests
* Fix prom import hover
* Hover tests
* Synchronize test cache writing
* First cut
* Test
* Fixes
* Add tests for os.path
Null ref fix
* Fix cache check
* Improve resolution of builtins and typing in stubs
* Merge tests
* Add ntst for requests
* Handle typeshed better
* Fix custom stub handling
* Better sync
* Move files
* Fix parameter locations
* Hover improvement
* PEP hints
* One more test for PEP hints
* Better handle hover over import as
* Text based generic constraints
* Handle with better with generic stubs
* Undo debug
* Handle non-binary open()
Temporary fix 'with' handler since we haven't specialized IO/TextIO/BinaryIO yet.
* Output syntax errors
* Properly clear
* - Fix async issue with analysis completion
- Clean up diagnostics service interface
- Use real DS in tests
* Use proper scope when analyzing module
* Severity mapping and reporting
* Add publishing test
Add NSubstitute
Move all services to the same namespace.
* Unused var
* Test forced publish on close
* Fix typo
* Update test framework
* Import location
* Remove incorrect reference
* Diagnostic severity mapping test
Fix post-mortem earlier PR comment
* Minor fixes
* Move interface to the main class part
* Flicker reduction
* - Correct reported unresolved import name
- Add tests
* PR feedback1 parent 87c46f9 commit 037d248
File tree
22 files changed
+311
-91
lines changed- src
- Analysis/Ast
- Impl
- Analyzer
- Definitions
- Evaluation
- Handlers
- Definitions
- Diagnostics
- Modules
- Resolution
- Test
- FluentAssertions
- LanguageServer
- Impl
- Definitions
- Diagnostics
- Implementation
- Test
- Parsing/Impl
22 files changed
+311
-91
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | | - | |
24 | 22 | | |
25 | 23 | | |
26 | 24 | | |
27 | 25 | | |
28 | | - | |
29 | 26 | | |
30 | 27 | | |
31 | 28 | | |
| |||
67 | 64 | | |
68 | 65 | | |
69 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
91 | | - | |
92 | 93 | | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
Lines changed: 14 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 43 | + | |
51 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
52 | 49 | | |
53 | 50 | | |
54 | | - | |
| 51 | + | |
55 | 52 | | |
56 | 53 | | |
57 | | - | |
| 54 | + | |
58 | 55 | | |
59 | | - | |
60 | | - | |
| 56 | + | |
| 57 | + | |
61 | 58 | | |
62 | 59 | | |
63 | | - | |
64 | | - | |
65 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
66 | 64 | | |
| 65 | + | |
67 | 66 | | |
68 | 67 | | |
69 | 68 | | |
| |||
Lines changed: 21 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | | - | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
57 | | - | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | | - | |
| 64 | + | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
64 | | - | |
| 68 | + | |
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
| |||
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
75 | | - | |
| 79 | + | |
76 | 80 | | |
77 | 81 | | |
78 | | - | |
| 82 | + | |
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
83 | 87 | | |
84 | | - | |
| 88 | + | |
| 89 | + | |
85 | 90 | | |
86 | 91 | | |
87 | 92 | | |
88 | | - | |
| 93 | + | |
89 | 94 | | |
90 | 95 | | |
91 | 96 | | |
| |||
95 | 100 | | |
96 | 101 | | |
97 | 102 | | |
98 | | - | |
| 103 | + | |
99 | 104 | | |
100 | 105 | | |
101 | 106 | | |
| |||
143 | 148 | | |
144 | 149 | | |
145 | 150 | | |
146 | | - | |
147 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
148 | 158 | | |
149 | 159 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
52 | 59 | | |
53 | 60 | | |
Lines changed: 45 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
41 | 48 | | |
42 | 49 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | | - | |
| 388 | + | |
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
463 | 468 | | |
464 | 469 | | |
465 | 470 | | |
| |||
0 commit comments