Commit Graph
100 Commits
Author SHA1 Message Date
Dave Halter c82691a12b Make goto_definitions a lot simpler. 2016-06-11 23:13:04 +02:00
Dave Halter 9930ab5056 Small fixes to make the tests pass again. 2016-06-11 16:50:05 +02:00
Dave Halter 4c711339dd The integration test runner is now using a different way of getting the supposed results.
This is needed, because goto_definition will not work in comments anymore.
2016-06-11 16:33:56 +02:00
Dave Halter 99a03da8de .gitignore: Ignore all vim backups. 2016-06-07 22:17:16 +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 ed152e440e Merge master into the away branch. The merge conflict that was resolved was to get 'debug.py' working again. 2016-06-07 08:55:27 +02:00
Dave Halter 23ff395754 Merge dev and the away branch. 2016-06-07 08:45:26 +02:00
Dave Halter 6b9f96ce13 Keyword completion is now possible in a semantic way. This includes better testing and documentation. 2016-06-06 18:32:00 +02:00
Dave Halter 028d0a2509 After as ther should not follow any completions. 2016-06-06 18:08:45 +02:00
Dave Halter a74d3d6e9a Remove more unused code. 2016-06-06 09:29:05 +02:00
Dave Halter 87a75fdfe4 Remove old unused code. 2016-06-06 09:27:43 +02:00
Dave Halter 7a170532d9 Now finally all tests are running again (except the repl completion, which is a separate issue). 2016-06-06 09:22:50 +02:00
Dave Halter 4ec72d8f24 Finally fix the last remaining fast parser issue. 2016-06-06 08:55:10 +02:00
Dave Halter 436f7dffe0 Fix another very annoying fast parser issue. 2016-06-06 08:37:40 +02:00
Dave Halter dd85fc6ffd Add error token in a normal way to the syntax tree as ErrorLeaf. 2016-06-05 14:49:57 +02:00
Dave Halter aa97e4e714 Fix the fast parser issue #589. 2016-06-05 14:42:32 +02:00
Dave Halter 0b31614025 Merge pull request #728 from sadovnychyi/master
Encoding isn't set for imported modules
2016-06-04 12:02:55 +02:00
Dave Halter 12f878a4f7 Test for the issue #589. 2016-06-04 01:06:13 +02:00
Dave Halter 6b63b9cf54 Further fixes for failing tests. 2016-06-04 00:59:17 +02:00
Dave Halter c3ffaab8af The fast parser had some splitting issues. 2016-06-04 00:50:36 +02:00
Dave Halter e60c06b691 In every case of a new line the tokenize position should be correct. 2016-06-04 00:34:00 +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
Dave Halter 0c7894b3e6 Fix a few fast parser tests. 2016-06-02 08:24:52 +02:00
Dave Halter ad8d730a57 More test fixes. 2016-05-31 01:12:07 +02:00
Dave Halter c12dbe0b9e Fix a few tests that failed, because they were not correct python (the context was wrong). 2016-05-30 20:10:17 +02:00
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 97c51cb812 Merge pull request #725 from Carreau/lazy-colorama
Initialize colorama lazily
2016-05-21 15:44:14 +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
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
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 e21b3024e0 Writing tests for the upcoming side effect fixes in the interpreter completion. 2016-05-16 09:36:54 +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
Dave Halter 6266678064 Merge pull request #719 from isamert/master
Add gedit to supported editors list
2016-04-15 14:06:25 +02:00
Dave Halter da657fb132 Merge pull request #711 from WoLpH/python35
Enabled python 3.5 support
2016-03-31 10:47:31 +02:00
Dave Halter 935aec7b71 Merge pull request #701 from mfussenegger/vscode
Add vscode to editors using jedi
2016-03-22 18:58:50 +01:00
Dave Halter ea099e514b Merge pull request #709 from davidhalter/debug-docs
Enhance docs about debugging
2016-03-21 11:30:05 +01:00
Dave Halter c0242cf5be Merge pull request #705 from tbradshaw/patch-2
Update unsupported features list with "implicit namespace packages"
2016-03-10 12:12:26 +01:00
Dave Halter 9c0f3f9535 Merge pull request #699 from mfussenegger/py35
add python 3.5 classifier to setup.py
2016-03-01 00:44:23 +01:00
Dave Halter e4c959944f Merge pull request #696 from reinhrst/documentation
update documentation
2016-02-16 23:34:49 +01:00
Dave Halter 4a6c2f8de7 Merge pull request #664 from reinhrst/typehints-in-comments
simple typehints in comments
2016-02-16 09:34:15 +01:00
Dave Halter a0ac1e6390 Merge pull request #691 from reinhrst/python35
python 3.5 support status
2016-02-16 00:01:57 +01:00
Dave Halter 3ac1427242 Merge pull request #693 from chergert/patch-1
Add GNOME Builder to README.rst
2016-02-12 13:18:44 +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
Dave Halter 7fe5280bda Forgot to include all tox dependencies. 2016-01-27 19:01:33 -02:00
Dave Halter c09a916ab5 Didn't load grammar for Python 2.6 correctly. 2016-01-27 17:52:42 -02:00
Dave Halter a307bc384c Merge pull request #689 from sergeyglazyrindev/master
fix for #122
2016-01-26 22:53:54 -02:00
Dave Halter 257009d238 Skip pep0484 tests when using Python 2.6. 2016-01-26 15:59:27 -02:00
Dave Halter 633e5aa76f The typing library only works in Python >= 2.7. 2016-01-26 15:05:58 -02:00
Dave Halter f9a64fd637 Fix some issues in Python 2.7 2016-01-26 14:59:40 -02:00
Dave Halter 3816f28dfa Merge pull request #663 from reinhrst/typing
PEP 484 typing library
2016-01-26 11:30:47 -02:00
Dave Halter beeffd2dcd Some pgen2 tests were always skipped. 2016-01-07 18:55:10 +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 06cb82830a builtin_methods calculation of iterable works now with the mro. 2016-01-07 15:41:20 +01:00
Dave Halter 8216ff3b11 Merge branch 'linter' of github.com:davidhalter/jedi into linter 2016-01-07 12:30:45 +01:00
Dave Halter 438ba3e14a Ellipsis is still be valid in 2.6/2.7 (for now). 2016-01-07 11:01:00 +01:00
Dave Halter cb7ee00c75 Forgot to include precedence tests. 2016-01-07 10:43:31 +01:00
Dave Halter 43ad4cfeb8 Ellipsis comparisons are working now. Ellipsis was previously ignored. 2016-01-07 10:41:34 +01:00
Dave Halter 5cc27f632d Improve dict comprehension support. 2016-01-02 21:46:14 +01:00
Dave Halter 0acc5256ea Implement imitate_items(), which helps if you use {}.items(). 2016-01-01 12:43:07 +01:00
Dave Halter e193017163 Merge pull request #669 from reingart/master
Update API doc for completions
2015-12-30 12:34:44 +01:00
Dave Halter 4e93fb344b Dict.values is working now on dict literals. 2015-12-27 23:53:56 +01:00
Dave Halter 48f41c5231 Create a way to register builtin methods the iterable module.
With this it's possible to e.g. register a function Array.dict_values as 'dict.values' with all the proper name resolution stuff.
2015-12-27 23:02:37 +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 b479e157fc Fix an issue in YieldExpr. 2015-12-26 11:39:37 +01:00
Dave Halter ef3a83a74e Add a link in the finder docstring on how to understand name resolution. 2015-12-26 10:41:26 +01:00
Dave Halter e34c0b336c Add an acknowledgement section in the README. Thank @tkf, @dbrgn and @gvanrossum for their contributions. 2015-12-26 03:32:50 +01:00
Dave Halter cd5701cd41 Clean up licensing a bit. 2015-12-26 03:24:01 +01:00
Dave Halter 2a691eefff Including pgen2 tests from the cpython repo. 2015-12-26 03:15:09 +01:00
Dave Halter 507ddfa4b0 Add the Python 3.5 syntax file. 2015-12-26 03:10:59 +01:00
Dave Halter ab5d0ed72b Starting with Python 3.4 from is not a token that always is a "new" statement. 2015-12-26 02:47:22 +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 6bad5a924b Making it possible for static analysis tests to be skipped if the python version doesn't match. 2015-12-22 17:37:28 +01:00
Dave Halter 515d096d33 The alternative test runner script shouldn't run on skipped tests. 2015-12-22 11:45:24 +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 ac294244cf Remove legacy code from FunctionExecution. 2015-12-22 07:37:09 +01:00
Dave Halter 8201fdc5af Merge branch 'pep484' into linter 2015-12-20 23:19:10 +01:00
Dave Halter c15551ccc1 Errortokens should also make the parser fail in the normal parser. 2015-12-20 23:11:52 +01:00