1
0
forked from VimPlug/jedi
Commit Graph

122 Commits

Author SHA1 Message Date
Dave Halter
08fba1e191 fix last remaining issues with tests 2013-12-27 02:28:01 +01:00
Dave Halter
84c2be9f58 remove old way of using a separate decorator for search param memoization, use the default one 2013-12-26 02:32:32 +01:00
Dave Halter
8f564a301f clean up caches clearing 2013-12-26 02:10:30 +01:00
Dave Halter
947e616da0 hand api classes the evaluator 2013-12-26 01:00:37 +01:00
Dave Halter
ef764d39d8 evaluator stuff for dynamic 2013-12-25 01:54:51 +01:00
Dave Halter
85a12e8866 RecursionDecorator now also works with Evaluator caches 2013-12-24 19:14:14 +01:00
Dave Halter
56457a9c8c ImportPath has now also an _evaluator 2013-12-24 18:00:00 +01:00
Dave Halter
cd8880d8ef move recursion.py to evaluate folder 2013-12-24 17:19:07 +01:00
Dave Halter
4e68856cc4 move builtin and imports into the evaluate directory 2013-12-24 16:13:26 +01:00
Dave Halter
b9719b8c13 first tests running again with the new structure 2013-12-24 16:05:43 +01:00
Dave Halter
28771b8f15 remove import problems - evaluate calls from a lot of places 2013-12-24 15:50:15 +01:00
Dave Halter
cbe93298ce move evaluate and evaluate_representation to evaluate folder 2013-12-24 15:14:06 +01:00
David Halter
13f0c2b91f all the import changes 2013-09-06 01:19:19 +04:30
David Halter
4e9bb0c062 add module_path documentation, fixes #306 2013-08-31 17:53:38 +04:30
David Halter
cce425cb6d move BaseDefinition.path to _path 2013-08-22 12:35:08 +04:30
David Halter
c4e07cae11 rename name_with_signs to name_with_symbols 2013-08-15 14:04:08 +04:30
David Halter
d6e9732064 added a method 'api_classes.Completion.name_with_signs', because this is important for #280 2013-08-15 13:56:43 +04:30
David Halter
ed36486966 fixed a bug in api_classes comparison 2013-08-14 00:52:34 +04:30
David Halter
19dec3d0ed fix api_classes definition description on flows 2013-08-13 22:38:02 +04:30
David Halter
cacc94acf3 clean up some docstrings in api_classes and put them in the right order 2013-08-13 22:23:24 +04:30
David Halter
93e993549a don't skip doctests in api_classes 2013-08-13 22:19:30 +04:30
David Halter
e07625017d remove all the deprecation warnings in jedi itself 2013-08-11 23:00:27 +04:30
David Halter
0ab4119447 previous fix had still bugs, now finally fixes #221 2013-08-11 22:28:41 +04:30
David Halter
e53c6d10d6 deprecate start_pos as discussed in #221 2013-08-11 21:24:48 +04:30
David Halter
ba9ba7c1fe line and column return None in case of builtin module, fixes #221 2013-08-11 21:15:48 +04:30
David Halter
f754d1565f fixed error with 'comma' separated exceptions 2013-07-19 01:27:40 +02:00
David Halter
b84315b829 tests for import problems 2013-07-19 00:56:56 +02:00
Laurens Van Houtven
1391a5a914 PEP8 newlines between class members 2013-07-11 15:19:54 +02:00
Laurens Van Houtven
4763846b1b PEP8 indentation 2013-07-11 15:19:31 +02:00
Laurens Van Houtven
cdc41128b4 (Mostly) whitespace fixes 2013-07-10 14:45:47 +02:00
Takafumi Arakaki
851238386f Fix tests for defined_names + full_name 2013-05-21 14:23:59 +02:00
Takafumi Arakaki
339ebbbf4e Fix TestFullNameWithCompletions.test_from_import 2013-05-21 12:30:21 +02:00
David Halter
7c8fee1257 removed a lot of the goto usages, used goto_assignments instead. Did the same also for a lot of definition uses 2013-05-03 21:26:29 +04:30
David Halter
edd0a08351 api_classes.RelatedName -> Usage 2013-05-03 21:06:56 +04:30
David Halter
860cc5de04 make api_classes.BaseDefinition._definition private 2013-05-03 20:56:07 +04:30
David Halter
5d472e99ac more variables private in the same file 2013-05-03 20:51:24 +04:30
David Halter
150b7fc1d5 make some variables of the Completion class private 2013-05-03 20:41:18 +04:30
David Halter
49e51f5a1a deprecated api_classes.Completion.word in favor of name 2013-05-03 20:38:37 +04:30
David Halter
beae920177 Script.complete has been deprecated, therefore changed all usages / documatation to Script.completions 2013-05-03 20:28:11 +04:30
David Halter
cc520530c0 changed module name checking (should only be in one place) 2013-05-03 14:09:46 +04:30
David Halter
da067c5c38 add _module to BaseDefinition api 2013-05-03 14:04:40 +04:30
Danilo Bargen
86d775324b Fix most flake8 issues (fixes #205) 2013-04-27 15:40:36 +02:00
Danilo Bargen
f98b0d7b6f New "with ignored(*exceptions)" context manager 2013-04-17 23:28:37 +02:00
Takafumi Arakaki
2cc6edfa7c Fix Completion.follow_definition 2013-03-16 22:57:31 +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
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
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