1
0
forked from VimPlug/jedi
Commit Graph

186 Commits

Author SHA1 Message Date
Dave Halter d6d25db9a2 Remove __str__ from name. 2017-04-12 23:06:11 +02:00
Dave Halter 4b841370e4 Test full name for os.path imports. Fixes #873. 2017-04-05 01:00:20 +02:00
Dave Halter 35fd1c70bd Rename parser.utils to parser.cache. 2017-03-30 01:57:48 +02:00
Dave Halter 8059c3c2c8 Save a module instead of a parser when pickling. 2017-03-30 00:55:04 +02:00
Dave Halter 6a9c2f8795 Start using ContextualizedNode for py__iter__. 2017-03-28 01:34:07 +02:00
Dave Halter 8a35a04439 Remove the module path from the parser tree.
Some static analysis tests are still failing.
2017-03-27 18:13:32 +02:00
Dave Halter 5c54650216 Code to source. 2017-03-26 01:50:19 +01:00
Dave Halter aff0cbd68c Remove the last usage of save/load_parser in jedi. 2017-03-26 01:48:45 +01:00
Dave Halter 26cce4d078 Add the grammar as an argument to saving the parser.
This makes collisions of different grammars when loading from the cache impossible.
2017-03-22 18:32:49 +01:00
Dave Halter 2cb565561d Replace the diff parser imports with the modified path. 2017-03-21 22:10:01 +01:00
Dave Halter 6f01264ed3 Restructure import's module loading. 2017-03-21 17:20:10 +01:00
Dave Halter 0f66a3c7a8 Remove the module attribute from the parser. 2017-03-18 03:53:34 +01:00
Dave Halter 448bfd0992 Move the python parser tree. 2017-03-16 17:20:32 +01:00
daniel 5513f72987 added support for implicit ns packages and added tests 2017-02-23 23:53:14 +01:00
Dave Halter 445bf6c419 Get rid of get_parent_until. 2017-02-03 09:59:32 +01:00
Dave Halter 425fba5e95 Move the parser.fast module to parser.diff. 2017-01-10 19:15:47 +01:00
Dave Halter 81e9403aef Delete more unused code. 2016-12-17 18:00:54 +01:00
Dave Halter 880aa152fb Fix an import test and with this finally the whole 3.3 test suite is working again. 2016-12-17 16:15:23 +01:00
Dave Halter 57857b6332 Remove the ImportWrapper and replace it with something simpler. 2016-12-17 16:08:37 +01:00
Dave Halter 6c4abcc84c Fix some more issues with imports and attribute warnings of static analysis. 2016-12-14 01:35:55 +01:00
Dave Halter eaf0100446 Some analysis improvements. 2016-12-11 15:03:19 +01:00
Dave Halter 641ecedcd2 Improve a few anonymous function execution context goto issues. 2016-12-04 22:35:23 +01:00
Dave Halter 6f4cd7e6d3 Improve api class tests. 2016-12-04 20:04:54 +01:00
Dave Halter 6940900c58 A lot more fixes - fix all evaluate integration tests. 2016-12-03 22:17:38 +01:00
Dave Halter ba8a3215f2 Fix some issues with usages and imports. 2016-12-02 23:51:01 +01:00
Dave Halter f6070496ad Fixes to the isinstance tests. 2016-11-28 09:34:59 +01:00
Dave Halter cbd6713b5e Fix a lot of the import completion issues. 2016-11-20 16:37:02 +01:00
Dave Halter e79ebe3ee7 Usage fixes for imports. 2016-11-19 03:05:10 +01:00
Dave Halter b77fa58058 Fix most usage tests. 2016-11-19 02:24:34 +01:00
Dave Halter e4ea9bb630 Some import fixes. 2016-11-12 01:01:47 +01:00
Dave Halter 052f6bf9e7 Fix some small import stuff and the whole ordering tests. 2016-11-11 00:45:16 +01:00
Dave Halter 4a8fd73601 Fixing getattr tests. 2016-11-07 20:15:58 +01:00
Dave Halter ec51891bb2 Fix nested namespace packages. At least now there's no error anymore. Fixes #743. 2016-07-30 02:44:09 +02:00
Dave Halter 1903b31b9a Merge branch 'dev' of github.com:davidhalter/jedi into dev 2016-07-27 23:48:19 +02:00
Dave Halter 230a7bc024 Remove the recursion detection in imports, because it's not needed there anymore. 2016-07-27 23:48:04 +02:00
Dmitry Sadovnychyi 60484707a0 Add support for ZIP and EGG packages in imports 2016-07-25 20:29:02 +08:00
Dave Halter cd9a8705a2 Fix a potential issue with the loading of settings. 2016-07-21 00:48:17 +02:00
Dave Halter c26f740dcd The import path can be a list as well as a tuple. Deal with it. 2016-07-13 08:33:57 +02:00
Dave Halter 7d64069780 An empty path given to Jedi should not raise errors. Fixes #577. 2016-07-09 17:27:57 +02:00
Dave Halter 5280f567f9 The docstring of import completions was wrong.
This is fixed now. However, since this might massively decrease performance,
it's not enabled by default. You can enable it with `docstring(fast=False)`
(see test changes), but I wouldn't recommend it at this point.

Fixes #656.
2016-07-09 01:04:15 +02:00
Dave Halter 3ad159b0aa The import logic cannot assume that a file is always importable, fixes #716. 2016-07-06 08:52:23 +02:00
Dave Halter 52c42c3392 Reenable call signature caching and move a lot of parser specific caching to the parser itself. 2016-06-28 08:46:29 +02:00
Dave Halter 306d274a3d Merge dev into linter. 2015-11-10 21:52:18 +01:00
immerrr 4eb3cf7921 Improve virtualenv support & egg-link resolution
- add sys_path= kwarg to Script & Evaluator constructors

- store sys_path for each evaluator instance

- replace get_sys_path with get_venv_path

- get_venv_path: use addsitedir to load .pth extension files

- get_venv_path: look for egg-link files in all directories in path
2015-10-26 13:03:42 +03:00
Dave Halter 844a011193 Replacing the types list with a types set. Some tests are failing, though. 2015-10-13 18:03:36 +02:00
Dave Halter 126f490f1e Modules have now the name __main__ if they contain dots. 2015-04-28 17:29:42 +02:00
Dave Halter 657920baf5 Finally able to ditch the old namespace_packages implementation. 2015-04-28 02:03:17 +02:00
Dave Halter 0d406d27fd Different __init__ file searching. 2015-04-28 01:58:49 +02:00
Dave Halter b8bb258677 Get rid of get_importer and clean up imports in general. 2015-04-28 01:41:01 +02:00
Dave Halter ef4b424cda Replace pr with tree, #566. 2015-04-28 01:34:31 +02:00