1
0
forked from VimPlug/jedi
Commit Graph

536 Commits

Author SHA1 Message Date
Dave Halter
cc331d62e0 Get closer to fixing a lot of issues with the completion for repl. 2016-05-15 14:26:22 +02:00
Danilo Bargen
f5e594970a Enhance docs about debugging 2016-03-21 10:40:58 +01:00
Dave Halter
eb2e41f771 Grammar versioning has now a smoother interface. 2015-12-25 19:30:25 +01:00
Dave Halter
a373e34229 The parser without error recovery raises an error now if he's not able to parse something. 2015-12-25 18:53:05 +01:00
Dave Halter
5791860861 Actual forward reference annotations are working pretty smooth now. 2015-12-20 22:57:41 +01:00
Dave Halter
c4906e0e3f Rework the parser so we can use arbitrary start nodes of the syntax.
This also includes a rework for error recovery in the parser. This is now just possible for file_input parsing, which means for full files.
Includes also a refactoring of the tokenizer. No more do we have to add an additional newline, because it now works correctly (removes certain confusion.
2015-12-20 22:25:41 +01:00
Dave Halter
7141158484 Merge master into linter. 2015-12-15 12:28:38 +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
9bd6e6c340 Fix: iterators are working smoothly now. Finally tests are passing again. 2015-12-10 04:37:23 +01:00
Dave Halter
e23f453a11 Fix all remaining issues from the compiled refactoring except static analysis. 2015-12-10 01:48:08 +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
a99368c421 Fix: elifs where not considered for isinstance type inference. 2015-11-25 22:14:23 +01:00
Dave Halter
9dbfb90c20 Fix: Nested flows user scope detection was wrong. 2015-11-25 21:36:17 +01:00
Dave Halter
17ab7bbc3d prepare_goto -> type_inference. 2015-11-25 07:11:48 +01:00
Dave Halter
8dee92bcc5 Fix: Tuple unpacking to x[0] would raise bugs. 2015-11-24 01:27:23 +01:00
Dave Halter
724f7111a8 Now expr_stmt tuple unpacking automatically works with static analysis. 2015-11-24 01:07:32 +01:00
Dave Halter
306d274a3d Merge dev into linter. 2015-11-10 21:52:18 +01:00
Dave Halter
292366d3a6 Fix an issue in the API that was created by creating set types. 2015-11-10 21:30:08 +01:00
Dave Halter
eececf0f74 It seems like join completion was wrong before when used within the interpreter. 2015-11-10 21:25:40 +01:00
immerrr
f634db7a20 jedi.api.Script: document sys_path parameter and VIRTUAL_ENV variable 2015-10-26 13:37:18 +03: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
844a011193 Replacing the types list with a types set. Some tests are failing, though. 2015-10-13 18:03:36 +02:00
Dave Halter
bf3fa11f6f Name lookups shouldn't return duplicates. 2015-10-10 20:01:03 +02:00
Dave Halter
f77712ddf1 Test to assure that imports are not loaded twice. 2015-10-10 19:49:40 +02:00
Dave Halter
3a306a4f25 Fix comprehensions type issues. 2015-09-22 02:13:20 +02:00
Dave Halter
6477944934 Finally able to remove the get_executable_nodes function. 2015-09-21 14:50:51 +02:00
Dave Halter
fa82b9a9db Starting to replace the old API code for static analysis. 2015-09-21 14:21:29 +02:00
Dave Halter
e7528198d3 Fix an issue with raise statements in the linter. 2015-09-13 23:45:53 +02:00
Jonas Haag
b9902b22d6 Fix docstring 2015-08-18 11:44:01 +02:00
Sid Shanker
258d5aee4a Added support for correct continue & break autocompletion. 2015-05-16 14:55:04 -07:00
Dave Halter
c2a287c25a Usages on syntax should not return anything. 2015-04-28 17:35:26 +02:00
Dave Halter
126f490f1e Modules have now the name __main__ if they contain dots. 2015-04-28 17:29:42 +02:00
Dave Halter
836fcd6ea0 Small api.Script.goto cleanup. 2015-04-28 02:07:53 +02:00
Dave Halter
b8bb258677 Get rid of get_importer and clean up imports in general. 2015-04-28 01:41:01 +02:00
Dave Halter
265e6b2c35 Change parser and api to use tree instead of pr. 2015-04-27 23:38:48 +02:00
Dave Halter
06d134a7c1 Finished changing the import logic. The sys.path calculations within Jedi are clearer now. 2015-04-25 22:45:08 +02:00
Dave Halter
d038fba9df er.wrap -> Evaluator.wrap 2015-04-23 13:51:42 +02:00
Dave Halter
fbb960423e Remove legacy importer code. 2015-04-23 03:42:29 +02:00
Dave Halter
d04241b482 Goto should not include imports that cannot be followed. 2015-04-23 02:37:22 +02:00
Dave Halter
05554a1c89 Fix some issues with import path errors. 2015-04-21 18:45:12 +02:00
Dave Halter
df9452f210 Trying to change the import logic completely. We now have a sys.modules like cache. 2015-04-20 14:47:33 +02:00
Dave Halter
8fca3f78a1 Add a py__name__ call to modules. This makes listing the qualified names of modules possible (in combination with the module_name_cache). Fixes #519. 2015-04-14 17:36:20 +02:00
Dave Halter
4bb41b6096 A property can raise an Exception, therefore the interpreter completion should check for those exceptions, fixes #538. 2015-03-24 15:26:00 +01:00
Dave Halter
468ff59c1c Remove hasattr/next from _compatibility (not used anymore), thanks @dongweiming for noticing. 2015-03-06 00:25:42 +01:00
Dave Halter
e698e6aeeb Rework some of the analysis statement gathering. 2015-03-05 13:36:41 +01:00
Dave Halter
f273e314b6 Preparing for an eventual replacement of using expr_stmt for all nodes. 2015-03-05 00:07:50 +01:00
Dave Halter
a3c2108ecf Fix and test CallSignature.bracket_start. 2015-03-04 12:15:43 +01:00
Dave Halter
23fe08363d Simplify cache_call_signatures. 2015-02-27 12:20:55 +01:00
Dave Halter
ea8209d45e Call signatures should not fail when used on if(. 2015-02-27 12:17:44 +01:00