1
0
forked from VimPlug/jedi
Commit Graph

193 Commits

Author SHA1 Message Date
Dave Halter
cd8932fbfc Add a latest grammar to the evaluator and use it to avoid importing from parso import parse. 2017-05-24 00:37:36 -04:00
Dave Halter
f35f1b9676 Add the cache_path parameter to parso calls. 2017-05-20 10:08:48 -04:00
Dave Halter
50c7137437 splitlines and source_to_unicode are utils of parso. 2017-05-20 09:55:16 -04:00
Dave Halter
9bca3d39f5 Actually use parso now instead of Jedi. 2017-05-19 14:20:14 -04:00
Dave Halter
336b8a46d0 search_ancestor now uses *node_types as a parameter instead of a mix of tuple and simple string like isinstance. 2017-05-02 19:19:07 +02:00
Dave Halter
1295d73efd path_for_name -> get_path_for_name 2017-04-30 03:03:58 +02:00
Dave Halter
a846e687c3 Move search_ancestor to jedi.parser.tree. 2017-04-27 21:41:24 +02:00
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