Daniel Hahler
78573b8fa2
Fix goto_definitions being invoked on a parent class
...
When invoking `goto_definitions` on `RequestFactory` in line 5, it would
jump to `Client` after 27f05de :
```python
class RequestFactory(object):
pass
class Client(RequestFactory):
pass
```
Fixes https://github.com/davidhalter/jedi/issues/761 .
2016-11-04 13:00:23 +01:00
Dave Halter
0a4e858d88
Fix a recursion issue and add a test.
2016-07-27 19:15:03 +02:00
Dave Halter
2776af3db5
Fix an issue with global stmts. They caused recursionerrors when used wrong. Fixes #610 .
2016-07-18 19:23:08 +02:00
Dave Halter
75c1ebc2fe
Add a max_dynamic_params_depth setting to limit recusive searching for those params. It shouldn't be too crazy.
2016-07-17 13:59:19 +02:00
Dave Halter
218278af8d
Fix an issue with slice indexing.
2016-07-14 18:28:24 +02:00
Dave Halter
3a0008ea80
Simplification.
2016-07-14 08:40:32 +02:00
Dave Halter
cc953ffff0
Goto on trailers wasn't correct. Fixes #571 .
2016-07-13 19:15:28 +02:00
Dave Halter
689284c615
Refactor Evaluator.wrap to use the types in a more consequent way.
2016-06-29 21:06:35 +02:00
Dave Halter
8e67facecc
Refactoring: call_of_name -> call_of_leaf.
2016-06-21 18:42:20 +02:00
Dave Halter
27f05de3b7
Fix a few more issues, mostly with the fast parser.
2016-06-13 18:21:17 +02:00
Dave Halter
a485412af0
Rename goto_definition to goto_definitions.
2016-06-11 23:16:44 +02:00
Dave Halter
c82691a12b
Make goto_definitions a lot simpler.
2016-06-11 23:13:04 +02:00
Dave Halter
82c76fa689
Merge with the linter branch (especially the changes of pep484.
2016-06-07 13:51:25 +02:00
Dave Halter
5edcf47512
Break Interpreter completion even more in favor of a better solution in the future.
2016-06-03 19:31:42 +02:00
Claude
ca08b8270b
combine power-or-atom_expr statements into one statement
2016-02-15 10:20:25 +01:00
Claude
bc0486f723
python 3.5 uses atom_expr node in many places where previous python would use power node
2016-02-09 11:21:26 +01:00
Claude
cc6bd7d161
rework so that it also works withouty pep0484 type hints in jedi_typing.py
2016-01-17 10:41:40 +01:00
Dave Halter
379eb440cd
Fix: the parent setting of deep_ast_copy worked the wrong way.
2016-01-07 18:52:06 +01:00
Dave Halter
43ad4cfeb8
Ellipsis comparisons are working now. Ellipsis was previously ignored.
2016-01-07 10:41:34 +01:00
Dave Halter
c0f7e9f820
Fix an issue with predefined_if_name_dict.
2015-12-27 17:30:40 +01:00
Dave Halter
03eaf8455f
Dict comprehensions are working partially.
2015-12-27 17:20:49 +01:00
Dave Halter
b3f7d0c29a
Get Set comprehensions working.
2015-12-27 15:37:27 +01:00
Dave Halter
936cef97e9
Fix param position lookups. Also forward annotations have the correct resolution path now (starting at the end of the file).
2015-12-22 11:25:32 +01:00
Dave Halter
5791860861
Actual forward reference annotations are working pretty smooth now.
2015-12-20 22:57:41 +01:00
Dave Halter
7b8d4e86ac
The evaluator recursion limitations are now reset in static analysis for each node, otherwise it's incredibly unprecise.
2015-12-13 17:18:19 +01:00
Dave Halter
75ac2b9686
Enable better ways for analysis to analyze loop variables.
2015-12-11 20:25:49 +01:00
Dave Halter
8d3be10270
Fix issues in Python 2.7.
2015-12-10 17:20:21 +01:00
Dave Halter
afb1d6c3b8
Remove evaluator param from py__call__.
2015-12-10 16:20:46 +01:00
Dave Halter
bef5fca516
Refactor compiled.CompiledObject so it always owns an evaluator instance.
2015-12-08 02:19:33 +01:00
Dave Halter
d65684a40b
Fix py__getitem__ on Array.
2015-12-05 02:48:20 +01:00
Dave Halter
db060c70c9
Start creating py__getitem__.
2015-12-04 12:08:29 +01:00
Dave Halter
8daa0b8784
Introduce an additional node parameter for py__iter__ which helps static analysis.
2015-12-03 11:52:54 +01:00
Dave Halter
d835ffc5a3
Get rid of ordered_elements_of_iterable and use py__iter__ instead.
2015-12-02 13:39:22 +01:00
Dave Halter
55615fb3c1
unite returns a set now, this simplifies all the set(unite( calls.
2015-11-28 17:52:39 +01:00
Dave Halter
8d65129a19
Power operation was not implemented before.
2015-11-20 18:26:39 +01:00
Dave Halter
030131d705
Forget to make the set comprehension result a set().
2015-11-20 15:05:15 +01:00
Dave Halter
ffaf81bf1b
Fix: Set/Dict Comprehensions don't raise an error. They are just ignored for now.
2015-11-20 14:51:52 +01:00
Dave Halter
595b803f1f
Fix an issue with strings that can be chained in the parser.
2015-11-17 11:38:51 +01:00
Dave Halter
03efbca586
Tried to get the recursion issues with if stmts working.
2015-11-16 11:44:25 +01:00
Dave Halter
306d274a3d
Merge dev into linter.
2015-11-10 21:52:18 +01:00
Dave Halter
4549157d39
parser.Tree.ForStmt got more utility functions.
2015-11-08 22:29:49 +01:00
Dave Halter
dd6ade194a
+= assignments bug fix.
2015-11-01 13:21:41 +01:00
Dave Halter
05798734bf
Fix an issue with the new set of types instead of lists.
...
This commit also includes some comments and improvements for debugging.
2015-10-29 20:53:14 +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
e947124d83
Small improvments to the += / for logic.
2015-10-15 03:24:21 +02:00
Dave Halter
4b85d342ea
Trying to fix issues with for loops and += operators.
2015-10-15 03:00:50 +02:00
Dave Halter
62468fb402
reversed and for loops now produce strings in the correct order.
2015-10-14 16:50:26 +02: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
3a306a4f25
Fix comprehensions type issues.
2015-09-22 02:13:20 +02:00
Dave Halter
80492265cf
Remove print statements and reenable the if statement scanning that allows names to get resolved in 'if 0:' clauses. Makes all tests work again.
2015-07-01 14:00:50 +02:00