1
0
forked from VimPlug/jedi
Commit Graph

613 Commits

Author SHA1 Message Date
Takafumi Arakaki
aca1cbfa4b Use "jedi/cpython-27" instead of "jedi/2.7" for FS cache 2013-03-20 16:46:55 +01:00
Takafumi Arakaki
27d007adba Compare version using "!="
Cache is not forward compatible.
2013-03-20 12:21:22 +01:00
Takafumi Arakaki
942b66ba5b Separate directory for each Python version 2013-03-20 12:21:22 +01:00
Takafumi Arakaki
f8d3339f2f Remove old version of FS cache automatically 2013-03-20 12:21:22 +01:00
David Halter
960dd38e2c Merge pull request #185 from tkf/cPickle
Use cPickle if available
2013-03-19 21:32:22 -07:00
Takafumi Arakaki
8734e0efe2 Use cPickle if available 2013-03-19 20:33:15 +01:00
David Halter
09f39d891a remove __all__ from api, because not needed, fixes #180 2013-03-18 08:25:14 +04:30
David Halter
8c1ccd2800 Merge pull request #182 from tkf/Fix-Completion.follow_definition
Fix Completion.follow_definition
2013-03-17 03:48:22 -07:00
Takafumi Arakaki
2cc6edfa7c Fix Completion.follow_definition 2013-03-16 22:57:31 +01:00
Takafumi Arakaki
f5fee5f0df Fix wrong imports
- "from _compatibility import ..." (not in circular imports)
- "from jedi import builtin" (one of circular imports)
- "api_classes = api.api_classes"
  ("from jedi import api_classes" is not supported)
2013-03-16 21:03:34 +01:00
David Halter
cd513590ab Merge pull request #176 from tkf/basedefinition-type
More detailed BaseDefinition.type (fixes #169)
2013-03-15 10:36:53 -07:00
Takafumi Arakaki
df08122639 Fix a failure when run with Python 3 2013-03-15 14:51:59 +01:00
Takafumi Arakaki
f791e96d9d Fix failing test_basedefinition_type 2013-03-15 13:54:19 +01:00
Takafumi Arakaki
f70e425c4a Lowercase the str returned by BaseDefinition.type 2013-03-15 13:08:55 +01:00
David Halter
7b6a4c9a2b some corrections of imports 2013-03-15 16:01:23 +04:30
David Halter
9ad9c806bb rename non-cycling imports to 'from jedi import ..' 2013-03-15 15:02:33 +04:30
David Halter
2f809d8066 Merge pull request #172 from tkf/test_modulepickling_change_cache_dir
ModulePickling should not save old cache when cache_directory is changed
2013-03-15 02:25:10 -07:00
Takafumi Arakaki
7cf70a3f0a Do not clear cache in __del__
Prior to this change, running
`py.test --assert=rewrite test/test_integration.py` fails with errors
due to:

```py
cls = <class 'jedi.recursion.ExecutionRecursionDecorator'>

    @classmethod
    def cleanup(cls):
>       cls.parent_execution_funcs.pop()
E       IndexError: pop from empty list

recursion.py:127: IndexError
```

Similar errors occurred in travis occasionally:
- https://travis-ci.org/davidhalter/jedi/jobs/5449831
- https://travis-ci.org/davidhalter/jedi/jobs/5512538

I think this is because GC calls __del__ at random point during
actual execution of ExecutionRecursionDecorator.__call__.
As --assert=rewrite works by AST dynamically, I guess that it
is harder for Python's GC to clean up code and therefore GC
happens sometime later.  Although this is just a random guess,
as `tox -- --assert=rewrite` works with this patch now, I think
this is a good change.
2013-03-15 00:21:46 +01:00
Takafumi Arakaki
edc7148320 Fix test_modulepickling_change_cache_dir failure 2013-03-14 22:15:34 +01:00
David Halter
fbbdc50bb0 Merge pull request #164 from tkf/doc-api-classes
Document api_classes
2013-03-14 09:20:38 -07:00
David Halter
25d55d4124 Merge pull request #165 from tkf/hide-api_classes-defined_names
Hide api_classes.defined_names in document
2013-03-13 21:44:54 -07:00
Takafumi Arakaki
7a9e374a65 Use original exception value when reraise 2013-03-13 23:54:19 +01:00
Takafumi Arakaki
93bd00bba4 Document rethrow_uncaught/reraise 2013-03-13 23:50:40 +01:00
Takafumi Arakaki
2b89dda5a6 Use reraise when re-raising MultiLevelStopIteration 2013-03-13 23:28:53 +01:00
Takafumi Arakaki
3b78b52204 Rename MultiLevelAttributeErro to UncaughtAttributeError 2013-03-13 23:24:26 +01:00
Takafumi Arakaki
eca0f01cfb Use @common.rethrow_uncaught and stop manual re-raise 2013-03-13 23:21:49 +01:00
Takafumi Arakaki
e42ff9e762 Add common.rethrow_uncaught 2013-03-13 23:21:15 +01:00
Takafumi Arakaki
dccda224ab Hide api_classes.defined_names 2013-03-13 22:18:50 +01:00
Takafumi Arakaki
8d54ebea7b Fix BaseDefinition.module_name 2013-03-13 22:05:59 +01:00
Takafumi Arakaki
125a3b1a6b Document BaseDefinition.module_name 2013-03-13 22:05:31 +01:00
Takafumi Arakaki
2f7797f867 Ignore known failure in BaseDefinition.description doctest
See: #162
2013-03-13 21:44:55 +01:00
Takafumi Arakaki
a449428391 Document BaseDefinition.full_name 2013-03-13 20:30:36 +01:00
Takafumi Arakaki
9e3e6a2eea Document BaseDefinition.description 2013-03-13 20:29:02 +01:00
Takafumi Arakaki
41b33fd460 Document BaseDefinition.doc 2013-03-13 20:11:14 +01:00
Takafumi Arakaki
f9ed3d42f7 Document BaseDefinition.type 2013-03-13 20:01:43 +01:00
Takafumi Arakaki
4866b38bda Make VIRTUAL_ENV actually importable 2013-03-12 13:08:47 +01:00
Takafumi Arakaki
0e99c33c67 Don't use NotFoundError in _func_call_and_param_index
This makes it simpler.
2013-03-10 21:27:34 +01:00
Takafumi Arakaki
7ce0e1c178 Rename it to _func_call_and_param_index 2013-03-10 21:27:34 +01:00
Takafumi Arakaki
d9b3bb4016 Refactor _get_function_call_and_param_index_at_point 2013-03-10 21:27:34 +01:00
Takafumi Arakaki
9490730d59 Treat case like f() 2013-03-10 21:27:34 +01:00
Takafumi Arakaki
a25aa884d6 Make Script.definition work inside function call 2013-03-10 21:27:34 +01:00
Takafumi Arakaki
0a09d8a813 Refactor function_definition 2013-03-10 21:27:34 +01:00
David Halter
d063aa3d66 Merge pull request #141 from tkf/attribute-docstring
Attribute docstring support
2013-03-10 13:23:47 -07:00
Takafumi Arakaki
871ce5ad33 Compatibility fix for Python 2.5 2013-03-10 20:44:15 +01:00
Takafumi Arakaki
a02940f3c1 Rename api.get_definitions to defined_names
Do the same for Definition.get_definitions also.
2013-03-10 20:40:52 +01:00
Takafumi Arakaki
36f03f4b0d Use the first item returned by get_names_of_scope 2013-03-10 20:40:52 +01:00
Takafumi Arakaki
06de4d66e7 Revert "Add get_names_of_scope option to evaluate.get_names_of_scope"
This reverts commit 154662ea273a17f00186546bdf9d75833553d307.
2013-03-10 20:40:52 +01:00
Takafumi Arakaki
d4bf14dd66 Use list comprehension instead of map 2013-03-10 20:40:52 +01:00
Takafumi Arakaki
5a29fecfb2 Fix Python 3 syntax error 2013-03-10 20:40:52 +01:00
Takafumi Arakaki
71d5b0ac67 Document return type of get_names_of_scope 2013-03-10 20:40:52 +01:00