1
0
forked from VimPlug/jedi
Commit Graph

2951 Commits

Author SHA1 Message Date
Dave Halter 4f6368e7eb Now ErrorLeaf and ErrorNode are part of the syntax tree. This makes probably sense. The documentation will follow once it's clear how they will shape out. 2016-05-30 00:34:58 +02:00
Dave Halter daa68b66ad Fix a few issues caused by the refactoring. 2016-05-29 19:49:35 +02:00
Dave Halter feef45f4bb Fixed all on_import tests. 2016-05-29 12:08:53 +02:00
Dave Halter 2700c2cca4 Make it possible to import Jedi in Python 2 again. 2016-05-28 20:20:45 +02:00
Dave Halter 4714b464a6 Further import completion improvements. 2016-05-28 02:08:43 +02:00
Dave Halter e4fe2a6d09 Now some other tests are working again. 2016-05-26 00:35:56 +02:00
Dave Halter cbba314286 Progress and actually passing a few tests. 2016-05-26 00:10:54 +02:00
Dave Halter d4a10929e2 Starting to create a way of how context sensitive completions can be made.
This involves playing heavily with the parser pgen2. We use its stack to check for all possible tokens/keywords.
2016-05-23 18:11:44 +02:00
Dave Halter 36a135c347 pgen2: Don't overwrite type 2016-05-21 16:08:12 +02:00
Dave Halter 479b3cfab2 More completion refactoring. Getting the structure for filtering names right. 2016-05-19 12:41:59 +02:00
Dave Halter 5059febed4 Fix an issue with a wrongly refactored name. 2016-05-19 11:49:59 +02:00
Dave Halter 055ff8be23 Readability for completion parts. 2016-05-19 11:33:17 +02:00
Dave Halter 323581e253 Refactor the completion module. 2016-05-19 11:13:42 +02:00
Dave Halter cfa65a22fa Move the completion specific parts to api/completion.py. 2016-05-19 11:08:37 +02:00
Dave Halter 2e33394adb Move the type inference call of the api to inference.py 2016-05-19 10:40:22 +02:00
Dave Halter da6486dc6d Start moving api stuff to the inference module. 2016-05-19 10:25:36 +02:00
Matthias Bussonnier e96cccb81c Document a bit more 2016-05-18 16:48:08 -07:00
Dave Halter a08ad2d53d Further improvements to the interpreter refactoring. 2016-05-19 01:41:06 +02:00
Dave Halter 1bb8d32084 Improve interpreter tests. 2016-05-18 11:56:33 +02:00
Dave Halter d93d31feb8 Make a first test working with mixed objects. 2016-05-18 11:49:50 +02:00
Matthias Bussonnier 4ba6000f92 Initialize colorama lazily
Will prevent colorama from wrapping stderr/out if not in debug mode,
which leads to some errors.
2016-05-17 16:49:57 -07:00
Dave Halter ef314a5c38 Complete writing the full mixed objects module. 2016-05-17 17:44:22 +02:00
Dave Halter 5595fb3e2f Start adding a module that mixes compiled and parser objects. 2016-05-16 13:12:45 +02:00
Dave Halter 33accb3dc6 It should be possible to pass class.__dict__ to Jedi. 2016-05-16 09:52:45 +02:00
Dave Halter 818730d6ea Fix descriptions for REPL. 2016-05-15 23:32:16 +02:00
Dave Halter 50f6bb0299 When we are working with CompiledObjects and instances there should never be a case where class values are returned. 2016-05-15 23:06:07 +02:00
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
Claude 795a72a866 add typing.cast() to the todo list 2016-02-15 18:13:47 +01:00
Claude 71ab855802 update list of things that are completed 2016-02-15 17:56:14 +01:00
Claude 641fb80773 add support for 'with-assignment' hints 2016-02-15 17:52:21 +01:00
Claude 3a1b2e7104 add support for 'for-assignment' hints 2016-02-15 17:37:03 +01:00
Claude 8b28678d19 support tuple-assignment 2016-02-15 17:04:19 +01:00
Claude a658f7940c typehints for variables in comments 2016-02-15 16:03:23 +01:00
Claude daeee4ba0c simple typehints in comments 2016-02-15 15:12:07 +01:00
Claude ca08b8270b combine power-or-atom_expr statements into one statement 2016-02-15 10:20:25 +01:00
Claude d5f08f8bdd opting for skipping PEP492 backwards compatibility magic, instead directly making await and async keywords
See discussion at
https://github.com/davidhalter/jedi/pull/691#issuecomment-182815864
2016-02-11 19:30:01 +01:00
Claude 7077d0b762 Using python 3.7-like parser, instead of python 3.5 magic.
See https://github.com/davidhalter/jedi/pull/691#issuecomment-182815864
Revert "Update tokenizer to adhere to PEP492 magic"

This reverts commit 65187930bd.
2016-02-11 19:14:31 +01:00
Claude 65187930bd Update tokenizer to adhere to PEP492 magic 2016-02-09 21:07:18 +01:00
Claude bf5acb4c7a once more: python 3.5 uses atom_expr node in many places where previous python would use power node 2016-02-09 19:34:44 +01:00
Claude 8819b2133a further fix for *-arguments in arglist 2016-02-09 18:23:24 +01:00
Claude a09611197b add ATEQUAL token for python < 3.5 2016-02-09 18:17:31 +01:00
Claude 0ed149070a add python 3.5 '@' operator to tokenizer 2016-02-09 17:13:25 +01:00
Claude de98cda2d7 python3.5 uses 'argument' node type, not 'arglist' for * and ** arguments 2016-02-09 17:12:26 +01:00
Claude 3b0dcb3fcb move file_input to top of file, as mentioned in 19acdd32b7 2016-02-09 11:47:01 +01:00
Claude 241abe9cf3 python 3.5 uses atom_expr node in many places where previous python would use power node 2016-02-09 11:42:53 +01:00
Claude 3fb5fe8c77 allow empty bodies for better autocompletion 2016-02-09 11:22:17 +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 1f4c95918f Add @= ATEQUAL token 2016-02-09 11:14:56 +01:00
Dave Halter 17a1a0ebfd Colorama 0.3.6 is buggy, so just don't import it if it's not there. 2016-01-28 14:39:18 -02:00