1
0
forked from VimPlug/jedi
Commit Graph

5065 Commits

Author SHA1 Message Date
Laurens Van Houtven
7eff1bbf06 Don't mess with the path if the import is absolute 2013-06-23 22:00:23 +02:00
Laurens Van Houtven
e82e3eaa0d Don't assume every module has a namespace 2013-06-23 21:59:58 +02:00
Laurens Van Houtven
cb4acccfe5 More PEP8, minor cleanup 2013-06-22 09:54:18 +02:00
Laurens Van Houtven
5701ac1a10 Add absolute import detection 2013-06-21 17:02:17 +02:00
David Halter
248931d9f3 Merge pull request #250 from lvh/master
Cleanup in _compatibility
2013-06-20 14:37:48 -07:00
Laurens Van Houtven
fd87e8af2a Refactor the way module_path, module_file and is_package are computed to be a bit more legible 2013-06-20 22:36:16 +02:00
Laurens Van Houtven
1b0822743c Clean up find_module_py33 loader finding 2013-06-20 22:05:08 +02:00
Laurens Van Houtven
f171617766 Raise a nicer exception instance instead of raising an exception class 2013-06-20 21:40:37 +02:00
Laurens Van Houtven
44b1390d80 Clean up find_module_pre_py33 2013-06-20 21:35:56 +02:00
Laurens Van Houtven
68f9cdd884 Pick find_module implementation statically 2013-06-20 21:08:33 +02:00
Laurens Van Houtven
e201f89a77 Remove double reduce import 2013-06-20 21:08:33 +02:00
Takafumi Arakaki
5de63873df Fix and improve settings.cache_directory document
fixes #244
2013-06-19 15:38:24 +02:00
Takafumi Arakaki
1f3c4700c9 Fix get_path_until_cursor for empty path + continuation 2013-05-24 22:48:40 +02:00
Takafumi Arakaki
05564c23d5 Fix the error 2013-05-24 21:06:48 +02:00
David Halter
b0116b0d7c Merge pull request #232 from tkf/unicode-has-no-generate_call_path
Fix: 'unicode' object has no attribute 'generate_call_path'
2013-05-23 22:33:02 -07:00
David Halter
4e3fe88141 Merge pull request #234 from tkf/None.isinstance
Fix: 'NoneType' object has no attribute 'isinstance'
2013-05-23 21:15:19 -07:00
Takafumi Arakaki
b896f352ad Support "a = b = 1"-style assignment 2013-05-23 23:41:26 +02:00
Takafumi Arakaki
636b10ab8e Fix: 'NoneType' object has no attribute 'isinstance' 2013-05-23 22:41:36 +02:00
Takafumi Arakaki
a4922774c0 Fix the previous error 2013-05-23 15:32:32 +02:00
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