1
0
forked from VimPlug/jedi
Commit Graph

116 Commits

Author SHA1 Message Date
Claude 626fa60d03 Revert "clean out the last_* fields of sys before importing it."
This reverts commit be399c81c3.
Will break python 2.6 (possibly 2.7) tests; this is expected behaviour.
See https://github.com/davidhalter/jedi/pull/661#discussion_r47543815
2015-12-14 22:37:20 +01:00
Claude be399c81c3 clean out the last_* fields of sys before importing it.
The system gets confused if there were uncaught errors in previous
tests without this. Particularly, it crashes (at least 2.6) if any tests during
test_integrations were skipped.
2015-12-14 00:52:36 +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
Dave Halter 84c43bf2dc Correct issues with slices and some more subtle bugs. 2015-11-01 21:30:41 +01:00
Dave Halter 607f43290f The backwards tokenizer sometimes parsed not only string literals but also normal names. 2015-04-28 18:10:08 +02:00
Dave Halter d16da33b9b Small test fix. 2015-04-23 04:11:28 +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 2f64a83e3c Rename test_api_classes -> test_classes. 2015-04-13 15:17:44 +02:00
Dave Halter e2455eb670 Call signatures should work better for builtin classes (ducktyping). Fixes #515. 2015-04-10 13:45:23 +02:00
Dave Halter 74779f1a5d Test and preparations for better call signatures with builtins, see #515. 2015-04-10 03:05:38 +02:00
Dave Halter 47bf1c5daf Issue with numbers after names in call signatures. It would cause Jedi to stop analysing call signatures. Fixes #510 2015-04-10 02:17:12 +02:00
Dave Halter ef855a5316 Param descriptions should not end with a comma. 2015-03-31 14:38:03 +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 b036c88b73 True in Python 2 is still not a keyword, but a name. 2015-03-06 00:42:57 +01:00
Dave Halter a3c2108ecf Fix and test CallSignature.bracket_start. 2015-03-04 12:15:43 +01:00
Dave Halter 1ce96f2581 More fixes for ExprStmt docstrings. 2015-03-03 18:08:24 +01:00
Dave Halter 40e61fc96d Fix ExprStmt docstring bugs. 2015-03-03 17:42:49 +01:00
Dave Halter ea8209d45e Call signatures should not fail when used on if(. 2015-02-27 12:17:44 +01:00
Dave Halter 53490991d7 Goto_definitions bug fix -> imports stuff. 2015-02-27 11:56:36 +01:00
Dave Halter 1bc9ac1c00 Goto bug fix. 2015-02-27 11:37:49 +01:00
Dave Halter 8c08a4e574 Call signatures again: function definitions and other things that cannot be a part of call signatures stop the process of scanning for them. Also strings get replaced and simplified. 2015-02-25 13:33:09 +01:00
Dave Halter 48392a7dac Fix some issues in call signatures. 2015-02-24 16:55:33 +01:00
Dave Halter b8386d29d5 Whitespace before brackets should still show call signatures. 2015-02-24 01:48:25 +01:00
Dave Halter 6e5ba3de87 Fix remaining issue siwh the Param refactoring. 2015-02-11 01:40:18 +01:00
Dave Halter 28d3ba6c04 Fix a test about regex goto, don't know how that one even worked in the first place. 2015-02-09 12:35:20 +01:00
Dave Halter e6b9111749 Python 2.7 compatibility. 2015-01-13 02:12:49 +01:00
Dave Halter ef0958a43c Temporarily change the behavior of a defined names test. Hard to say how we really want it to behave. 2014-12-11 00:44:31 +01:00
Dave Halter bb7bbf51ec Deprecate jedi.defined_names in favor of jedi.names. 2014-12-11 00:41:36 +01:00
Dave Halter 7cc2a07cd3 Small full_name improvements. 2014-12-08 12:38:59 +01:00
Dave Halter 8868b87d42 Make imports stuff in API classes work. Now goto on imports follows even aliases. 2014-12-08 12:04:09 +01:00
Dave Halter 0ad6aeba6b Fix some API classes issues. Among them call signature generation and Definition.parent() issues. 2014-12-08 02:32:43 +01:00
Dave Halter 6ad9c5ee76 Small fixes to the parser tests. 2014-12-08 00:58:28 +01:00
Dave Halter 0c77e9960a NotFoundError doesn't really exist anymore. We're deprecating it, so change the corresponding tests. 2014-12-08 00:48:06 +01:00
Dave Halter b24bf29fc2 Fixed named argument call signature stuff and issues with classes and call signature params. 2014-12-07 23:55:44 +01:00
Dave Halter ab254bbcba Call signature search progress. 2014-12-05 00:23:59 +01:00
Dave Halter 8ca48f03db Tests for imports and is_definition. 2014-10-02 11:14:03 +02:00
Dave Halter 99d35e57b6 Fix alias usages in goto_assignments. 2014-09-19 13:42:47 +02:00
Dave Halter ed56f73836 Care for nested imports in goto_assignments. 2014-09-19 12:14:29 +02:00
Dave Halter fc5f73861c Fix issues with the os module.
Using a try/finally assures that the recursion checkers work the right way.
2014-09-19 10:59:24 +02:00
Dave Halter 83d2af5138 First imports are working with goto. 2014-09-19 01:21:17 +02:00
Dave Halter 610b2fc832 tests for goto on imports. 2014-09-19 00:49:22 +02:00
Dave Halter 7b0bb83d16 Change the behavior of eval_statement_element and follow_call_path. Arrays should only be looked at in the latter. 2014-09-18 23:44:11 +02:00
Dave Halter 69e6139527 Goto on named params in class calls is now working. 2014-09-18 20:11:58 +02:00
Dave Halter ba80e35204 Test for an issue with named params in class calls (instead of functions). 2014-09-18 13:30:52 +02:00
Dave Halter 9fa6a86a19 Tests for Definition.is_definition(). 2014-09-17 18:17:22 +02:00
Dave Halter 0eea30f227 NamePart migration of Definition is complete. Now Completion. 2014-09-10 18:29:10 +02:00
Dave Halter 2aa538999e Removed an old test from the days where it was allowed to add Keywords to Definitions. 2014-09-10 18:05:04 +02:00
Dave Halter 43cf1d451f Python 2/3 compatibility issues that were not resolved in the latest commit. 2014-09-09 17:51:39 +02:00
Dave Halter 87aa76678a Goto should work on named params, too. 2014-09-09 16:48:53 +02:00
Dave Halter 740fd0657f Add a goto_assignments test for named params 2014-09-09 00:06:24 +02:00