1
0
forked from VimPlug/jedi
Commit Graph

746 Commits

Author SHA1 Message Date
David Halter fbf17e3e5b Merge pull request #228 from tkf/fix-full_name
Fix full_name for import statements
2013-05-21 09:11:15 -07:00
Takafumi Arakaki 851238386f Fix tests for defined_names + full_name 2013-05-21 14:23:59 +02:00
Takafumi Arakaki 339ebbbf4e Fix TestFullNameWithCompletions.test_from_import 2013-05-21 12:30:21 +02:00
David Halter 5567a42334 fix another keyword problem 2013-05-21 10:59:28 +04:30
David Halter a9bf06987a completion on empty import problem 2013-05-19 21:13:32 +04:30
David Halter 384334ae06 goto on import statement (only import) raised an error 2013-05-19 20:40:54 +04:30
David Halter c5169b2d66 parsing.Parser.scope -> parsing.Parser._scope, fixes #224 2013-05-19 10:25:00 +04:30
David Halter ec061ea612 Merge pull request #222 from tkf/replstartup
Improve $PYTHONSTARTUP support
2013-05-18 21:51:26 -07:00
Takafumi Arakaki 6acf34efd3 Fix: api.defined_names was run against wrong scope
when there is only one class is defined in the module.
2013-05-19 05:08:18 +02:00
Takafumi Arakaki 200d29713e Make defined_names importable at top-level 2013-05-19 05:08:17 +02:00
Takafumi Arakaki 4bd03d0c74 Document JediRLCompleter 2013-05-19 00:52:41 +02:00
Takafumi Arakaki 3b3310ee3e Determine readline delims programmatically 2013-05-19 00:42:00 +02:00
Takafumi Arakaki 6a8a06fd0b Improve JediRLCompleter for minor cases 2013-05-19 00:42:00 +02:00
Takafumi Arakaki 0c85642e6b Add utils.JediRLCompleter 2013-05-19 00:41:58 +02:00
Takafumi Arakaki 27f8b342e1 Document utils.setup_readline 2013-05-19 00:41:48 +02:00
Takafumi Arakaki 5f2477d5bf Merge branch 'interpreter-api' into dev
Conflicts:
	jedi/__init__.py
	test/test_regression.py

See: #145
2013-05-18 22:28:56 +02:00
David Halter 15885e8685 preload_module function for IDEs, to control which modules to load on startup, refs #102 2013-05-13 09:13:59 +04:30
Takafumi Arakaki 3d6ef88795 Add simple PYTHONSTARTUP file 2013-05-12 08:21:55 +02:00
Takafumi Arakaki 52b3a326c4 Revert changes in jedi/modules.py in this branch 2013-05-11 22:01:48 +02:00
Takafumi Arakaki 19b3fef0c5 Remove fast option from api.Script 2013-05-11 21:59:39 +02:00
Takafumi Arakaki a870fece0f Use fast parser in api.Interpreter 2013-05-11 21:47:55 +02:00
Takafumi Arakaki 2846fe980b Remove api._quick_complete 2013-05-11 21:40:00 +02:00
Takafumi Arakaki 08f8dcfae4 Do not repeat defaults in Interpreter.__init__ 2013-05-11 21:37:53 +02:00
Takafumi Arakaki 6af2a0677d Compute default line/column/source_path in api.Script 2013-05-11 21:36:43 +02:00
Takafumi Arakaki 633f582184 Add jedi.interpret.ObjectImporter
and move scope manipulation functions in api.Interpreter to there.
2013-05-11 21:33:57 +02:00
David Halter 3a7c8af87f also normal imports should return the right user_stmt, similar case than #137 2013-05-09 12:16:54 +04:30
David Halter f3a4439285 import end_pos calculated differently, fixes #137 2013-05-09 11:54:08 +04:30
David Halter f4e8972157 end_pos issues, fixes #150 2013-05-07 23:55:58 +04:30
David Halter 0621a276b9 modules in modules (only possible with c_builtins) are now completable. however it's kind of hackish, I'm using a class instead of a real module, because this is the easiest way for jedi, fixes #126 2013-05-07 22:57:23 +04:30
David Halter 6cb0b1ed16 bump version to 0.6 2013-05-07 21:03:04 +04:30
Takafumi Arakaki 89edb73978 Fix failure due to rebase 2013-05-04 17:58:02 +02:00
Takafumi Arakaki 3d0458bca9 Export Interpreter class to top-level namespace 2013-05-04 17:50:42 +02:00
Takafumi Arakaki e8914e7856 Document api.Interpreter 2013-05-04 17:45:34 +02:00
Takafumi Arakaki 8fc396371c Respect settings.fast_parser 2013-05-04 17:44:59 +02:00
Takafumi Arakaki c2e9ccda2b Fix failing test: args for ModuleWithCursor 2013-05-04 17:44:59 +02:00
Takafumi Arakaki dc47d15de0 Use locals() for tests in TestInterpreterAPI
It is better to check that Interpreter does not fail with the
real name space.  Previously the doctest using locals() failed
because of the bug in _import_raw_namespace.
2013-05-04 17:44:59 +02:00
Takafumi Arakaki a93016db1b Python 2.5 compatibility fix 2013-05-04 17:44:59 +02:00
Takafumi Arakaki af10891096 Document api.Interpreter._genname 2013-05-04 17:44:59 +02:00
Takafumi Arakaki fc79f0e258 Support case like from os.path import join as pjoin 2013-05-04 17:44:59 +02:00
Takafumi Arakaki 6fb42e5f4b Document _import_raw_namespace more 2013-05-04 17:44:59 +02:00
Takafumi Arakaki 12ac71b1fd Document api.Interpreter 2013-05-04 17:44:59 +02:00
Takafumi Arakaki 45cad4c83b Fake imports should locate before fake statements 2013-05-04 17:44:59 +02:00
Takafumi Arakaki 06c03cafa2 Implement the case where raw object is an instance
There is still a bug in this implementation.
The corresponding test fails.
2013-05-04 17:44:58 +02:00
Takafumi Arakaki 11abd92d2b Support alias in _make_fakeimport 2013-05-04 17:44:58 +02:00
Takafumi Arakaki cf48d1272d Use proper interface to add fake Import object 2013-05-04 17:44:58 +02:00
Takafumi Arakaki 17770356e2 Implement the case where raw object is a module
Previously failing test_complete_raw_module is passed.
2013-05-04 17:44:58 +02:00
Takafumi Arakaki 3266aa2d00 Improve api.Interpreter docstring 2013-05-04 17:43:37 +02:00
Takafumi Arakaki 842fbfce8a Add api.Interpreter: Jedi API for Python REPLs 2013-05-04 17:43:37 +02:00
David Halter ae0dd1d72c fix docstr issue in the wrong place, fixes #210 2013-05-04 19:51:42 +04:30
David Halter 4d0417f591 change some definition usages to goto_definitions in tests and docs 2013-05-03 21:35:01 +04:30