Commit Graph

1316 Commits

Author SHA1 Message Date
Eric Traut
bccc03cd1b Started to move declaration construction for "import from" statements to binder. 2019-10-19 20:40:13 -07:00
Eric Traut
11c2c4978f Updated dependencies to latest version. 2019-10-19 20:38:25 -07:00
Eric Traut
e7d4749077 Fixed regression in find references functionality. 2019-10-19 19:47:53 -07:00
Eric Traut
c721a96bbe Added back support for module doc strings. 2019-10-19 19:23:40 -07:00
Eric Traut
ab7449163c Added back unaccessed import warnings. 2019-10-19 18:49:15 -07:00
Eric Traut
ba4d867de6 Fixed recent regression in completion provider that broke completions within import statements. 2019-10-19 18:17:17 -07:00
Eric Traut
baa844938c Continued moving alias declaration creation from type analyzer to binder. 2019-10-19 18:16:54 -07:00
Eric Traut
0c0dd705d0 Fixed recent regression in completion provider that broke completions within import statements. 2019-10-19 18:16:06 -07:00
Eric Traut
1d107048d5 Fixed bug in completion provider that resulted in docStrings not to be shown. 2019-10-19 17:42:24 -07:00
Eric Traut
3cf1491984 Published 1.0.76 2019-10-19 16:42:56 -07:00
Eric Traut
41b8053703 Started to move alias declaration creation from type analyzer to binder. 2019-10-19 16:35:30 -07:00
Eric Traut
964f8a211a Revert "Removed unnecessary hack in declarationUtils."
This reverts commit f2daef1c0a.
2019-10-19 12:43:39 -07:00
Eric Traut
800e060403 Added constainsWildcardImport flag as output of parser. 2019-10-19 12:02:22 -07:00
Eric Traut
e8925a2c26 Added code to ensure that dependent files are parsed before binding. 2019-10-19 12:01:58 -07:00
Eric Traut
f2daef1c0a Removed unnecessary hack in declarationUtils. 2019-10-19 12:01:30 -07:00
Eric Traut
b3584358ee Fixed bug that caused cyclical imports to be sticky. 2019-10-19 11:39:03 -07:00
Eric Traut
2dd7ec9e23 Fixed bug that caused cyclical imports to be sticky. 2019-10-19 11:38:52 -07:00
Eric Traut
6981dc09a6 Added back alias declaration resolution. 2019-10-19 11:32:00 -07:00
Eric Traut
e247e9d1ef Eliminated ModuleDeclaration and resolvedDeclarations field of AliasDeclaration. 2019-10-19 10:50:22 -07:00
Eric Traut
ed7505c52f Replaced import maps with import lookup callback. This also required a change in the way the collections module is resolved. 2019-10-19 09:54:43 -07:00
Eric Traut
d70ad96833 Fixed bug in parseTreeWalker where the named parts of a module name node weren't returned as children. 2019-10-19 09:53:27 -07:00
Eric Traut
c5d078ec84 Fixed lint issue. 2019-10-19 09:53:19 -07:00
Eric Traut
095683f004 Added code to declarationUtils to return a synthesized alias declaration for a named node that's part of a module name. 2019-10-19 09:52:53 -07:00
Eric Traut
4cbc0fc11b Fixed bug in parseTreeWalker where the named parts of a module name node weren't returned as children. 2019-10-19 09:52:23 -07:00
Eric Traut
4292280e11 Eliminated use of ModuleType from sourceFile and import maps. 2019-10-19 08:59:54 -07:00
Eric Traut
02d9e4d1b3 Avoid following definition if resolved path is empty. 2019-10-19 08:39:00 -07:00
Eric Traut
9f8ecc8bc5 Simplified handling of namespace packages in import resolver. 2019-10-19 08:38:53 -07:00
Eric Traut
1d63a491d6 Worked around the fact that the python interpreter can return an empty string as part of its search path list. 2019-10-19 08:38:43 -07:00
Eric Traut
d3f6499e94 Added code to detect and handle circular dependencies in alias declarations. 2019-10-18 21:54:31 -07:00
Eric Traut
ba74af76aa Small code cleanup in binder.ts. 2019-10-18 21:23:10 -07:00
Eric Traut
fbf8078cb6 Fixed Windows-specific path processing bug. 2019-10-18 21:20:58 -07:00
Eric Traut
77190276a5 Published 1.0.75 2019-10-18 09:34:04 -07:00
Eric Traut
adca930c59 Implemented support for bidirectional type inference when an assignment has a LHS consisting of an index expression. 2019-10-18 01:11:08 -07:00
Eric Traut
51aa8d9869 Switched the external chokidar module to work around limitations of node's built-in fs watcher functionality. 2019-10-18 00:41:46 -07:00
Eric Traut
f68e5ab4a2 Fixed regression that caused stale module symbol tables to persist after reanalysis. 2019-10-17 19:49:06 -07:00
Eric Traut
5b122efa08 Simplified logic for list comprehension analysis. 2019-10-17 19:17:51 -07:00
Eric Traut
06bc36ea89 Fixed typescript compiler error in recent contribution. 2019-10-15 15:04:37 -07:00
Eric Traut
f0899c4a2a Published 1.0.74 2019-10-15 15:02:23 -07:00
Eric Traut
79dabf29af
Merge pull request #288 from necaris/fix/use-builtin-json-module-when-configuring-via-python-interpreter
Use built-in `json` module to format library search paths, when getting them from the Python interpreter
2019-10-15 14:48:33 -07:00
Eric Traut
aeb3ca13f5 Added additional logging for file system watchers, which appear to be broken on some Linux distros. 2019-10-15 14:46:19 -07:00
Rami Chowdhury
382541edff Use Python built-in json module to format library search paths
When using the fallback code to get the Python library search paths
from the interpreter (i.e. `sys.path`), use the `json` module to
dump the list of paths as output. This enables us to use
Javascript's built-in parser on the result, rather than an ad-hoc
parsing routine.

Note that the `json` module is available in all versions of Python 3
so backward compatibility should not be an issue.
2019-10-15 17:10:47 -04:00
Eric Traut
099a9b6d2e Added support for Python 3.8 assignment expressions. 2019-10-15 00:30:02 -07:00
Eric Traut
6e0453e089 Fixed some build issues. 2019-10-15 00:27:22 -07:00
Eric Traut
ce4b50e192 Bumped latest stable version of python from 3.7 to 3.8. 2019-10-15 00:27:14 -07:00
Eric Traut
630c79997f Published 1.0.73 2019-10-14 09:24:53 -07:00
Eric Traut
24729b5cb0 Fixed regression that caused max analysis pass to be hit in certain cases. 2019-10-14 08:45:38 -07:00
Eric Traut
4ea7964ada Improved max pass message. 2019-10-14 08:45:15 -07:00
Eric Traut
32bdd17d49 Changed ModuleType to include a separate loaderFields symbol table to avoid modifying other module's symbol tables when an import causes symbols to be loaded implicitly by the loader. 2019-10-13 23:46:02 -07:00
Eric Traut
885cbc02a4 Removed error message for ClassVar types that contained generic type parameters. They're used in some of the typeshed files. 2019-10-13 16:35:27 -07:00
Eric Traut
c9ea406e84 Added support for metaclasses when looking up magic functions. 2019-10-13 16:34:57 -07:00