Commit Graph

778 Commits

Author SHA1 Message Date
Dave Halter 3820111d1e Fix some more await things 2018-02-28 23:30:20 +01:00
Dave Halter dfa383c744 Fix a yield from test 2018-02-28 23:01:07 +01:00
Dave Halter 0d0213ee4c Support generator returns when used with yield from. 2018-02-28 22:35:58 +01:00
Dave Halter 80ee3b8fcf Show in a test that something doesn't work properly around async analysis 2018-02-27 18:19:46 +01:00
Dave Halter 4d980d8bd0 Reorder tests to make the async stuff pass on all python versions 2018-02-21 01:28:37 +01:00
Dave Halter c1d06f4638 Getting more edget cases work in 3.6 for async 2018-02-21 01:11:59 +01:00
Dave Halter bc0210af70 Use the await method properly and just use it instead of some crazy things 2018-02-21 00:27:15 +01:00
Dave Halter bf01b9d47c Refactor the way builtins can be overwritten by jedi's own contexts 2018-02-21 00:09:41 +01:00
Dave Halter 8f4b68ae39 Merge the async branch 2018-02-18 13:45:08 +01:00
Dave Halter 039e7ba07b Some more sys path corrections.
The sys path should be defined more or less in the beginning and not be different for all modules
2018-02-16 14:39:01 +01:00
Dave Halter 76df356628 Relative imports should be working again even when used in more special occasions. Fixes #973
There are more fixes needed. Some things are just very unclean and might lead to further bugs.
2018-02-15 14:10:01 +01:00
Dave Halter 514eaf89c3 Prepare a test to eventually solve a relative import problem 2018-02-12 20:33:48 +01:00
Dave Halter fe0e41e9d6 Fix some more dict.get/dict.values stuff 2018-02-02 18:24:18 +01:00
Dave Halter 8028138e8c Implememnt dict.values for FakeDict to avoid a recursion error. Fixes #1014. 2018-02-02 09:34:40 +01:00
Dave Halter ebe8123b4c Finding the autocompletion stack is a bit more complicated than I initially thought
Fixes #968.
2018-01-31 08:45:01 +01:00
Dave Halter 522e7123ed Move the ahead of time tests to the pep0526 file 2018-01-31 00:18:17 +01:00
Dave Halter 2b9429be38 Update the ahead of time tests 2018-01-30 23:09:42 +01:00
Dave Halter 6b535c0503 Fix the last remaining issues with ahead of time annotations, see #982 2018-01-30 01:19:55 +01:00
Dave Halter d2c0de3eb0 Merge branch 'master' of https://github.com/johannesmik/jedi 2018-01-30 01:02:07 +01:00
Dave Halter 82dc83e150 Merge remote-tracking branch 'origin/master' into virtualenv 2018-01-29 00:56:55 +01:00
Dave Halter febe65f737 Disable predefined name analysis (if stmts) for all non-analysis tasks
It's really buggy and caused quite a few issues
2018-01-29 00:56:29 +01:00
Daniel Hahler 6bab112bb7 test/completion/imports.py: fix typo in comment 2018-01-25 07:57:43 +01:00
micbou 3a0ac37ee8 Fix error when using generators with variable-length arguments 2018-01-13 18:56:34 +01:00
Hugo 7e449af4bd Revert changes to test/completion and test/static_analysis except for 2.6 comment removal 2018-01-07 10:40:36 +02:00
Hugo f56035182c Remove trailing semicolons 2018-01-07 10:40:06 +02:00
Hugo cc623218e5 Replace function call with set literal 2018-01-07 10:40:06 +02:00
Hugo 8cf708d0d4 Remove redundant parentheses 2018-01-07 10:40:06 +02:00
Hugo 7c31ea9042 Drop support for EOL Python 2.6 2018-01-07 10:40:05 +02:00
Robin Roth dc43eba07b Support async/await syntax 2017-11-01 13:44:38 +01:00
Johannes Mikulasch d9dc4ac840 Merge branch 'master' of https://github.com/johannesmik/jedi 2017-10-31 14:02:35 +01:00
Johannes Mikulasch a1b60a978d add testcases for pep0484 ahead of time annotations 2017-10-31 13:57:10 +01:00
Robin Roth 88cf592c95 Make goto work with await
Created together with @langsamer and @davidhalter
2017-10-28 14:10:05 +02:00
Dave Halter 752b7d8d49 One more usages test. 2017-10-15 21:11:49 +02:00
Dave Halter 2b138b3150 Usages fix for more complex situations 2017-10-09 21:09:04 +02:00
Dave Halter bedff46735 Simplify usages. It should also work way better, now. 2017-10-08 20:13:24 +02:00
Dave Halter 7019ca643e Remove a possible security issue
sys paths are not executed anymore and use static analysis now.
2017-10-05 19:57:50 +02:00
Dave Halter c7dbf95344 Fix recursion issues.
Completely refactored the recursion checker and changed some settings.

Fixes #861.
2017-09-17 21:54:09 +02:00
Dave Halter 8fcb468539 Jedi was able to go crazy and loop endlessly in certain if/self assignment combinations.
Here we limit type inferance per tree scope. I'm still not sure this is the way
to go, but it looks okay for now and we can still go anther way in the future.
Tests are there.

Fixes #929.
2017-09-17 02:04:42 +02:00
Dave Halter 63edbdcc5b Better context completions for finally/except/else/elif
Fixes #837
2017-09-15 00:48:56 +02:00
Dave Halter e389c61377 Relative imports with more than one level did not work
Fixes #784.
2017-09-14 22:06:08 +02:00
Dave Halter 4c2d1ea7e7 Understand context managers correctly
Fixes #812.
2017-09-13 11:00:34 +02:00
Dave Halter c05f1d3ccc Completion after as in imports should not be possible.
Fixes #841.
2017-09-10 11:27:57 +02:00
Dave Halter c25a4a00df readlines should be completable.
Fixes #921.
2017-09-10 01:54:50 +02:00
Dave Halter c7f225439d Comprehenions can also define self variables.
Also related to #932.
2017-09-09 20:20:05 +02:00
Dave Halter 40f4f032c6 Fix class/def/class nesting definitions
Fixes #932.
2017-09-09 20:13:03 +02:00
Dave Halter e85000b798 Replace memoize_default with two nicer functions. 2017-09-05 18:46:16 +02:00
Dave Halter ef89593896 Disable more tests in Python2.6, because of set literals that don't exist there. 2017-09-03 02:01:43 +02:00
Dave Halter 957f2cedf4 Disable some tests that don't run in 2.6, because its syntax doesn't support it. 2017-09-03 01:23:54 +02:00
Dave Halter b64690afb8 Param defaults were not correctly followed when goto was used on them. 2017-09-03 00:22:59 +02:00
Dave Halter 9cac7462d6 Return statements should be handled correctly if the return_stmt is only a return without an expression behind it. 2017-09-02 14:03:54 +02:00