1
0
forked from VimPlug/jedi
Commit Graph

714 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
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
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
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
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
David Halter
7c8fee1257 removed a lot of the goto usages, used goto_assignments instead. Did the same also for a lot of definition uses 2013-05-03 21:26:29 +04:30
David Halter
edd0a08351 api_classes.RelatedName -> Usage 2013-05-03 21:06:56 +04:30
David Halter
efeeee9706 removed related_names occurences in favor of usages 2013-05-03 21:04:36 +04:30
David Halter
860cc5de04 make api_classes.BaseDefinition._definition private 2013-05-03 20:56:07 +04:30
David Halter
5d472e99ac more variables private in the same file 2013-05-03 20:51:24 +04:30
David Halter
150b7fc1d5 make some variables of the Completion class private 2013-05-03 20:41:18 +04:30
David Halter
49e51f5a1a deprecated api_classes.Completion.word in favor of name 2013-05-03 20:38:37 +04:30
David Halter
beae920177 Script.complete has been deprecated, therefore changed all usages / documatation to Script.completions 2013-05-03 20:28:11 +04:30
David Halter
c912428f78 deprecation process for a nice api design (as discussed in #124)
deprecate:

- definition
- goto
- complete
- related_names
- function_definition

in favor of:

- goto_definitions
- goto_assignments
- completions
- usages
- call_signatures

Thank you @dbrgn and @tkf for the fruitful discussion!
2013-05-03 20:15:36 +04:30
David Halter
c0bb6ff04b even more deletions (clean up for last commit) 2013-05-03 19:35:51 +04:30
David Halter
88e60b85e0 best patch in a long time, deleted all the part_parser stuff which was necessary for fast function_definitions, but with the new parser Jedi's fast enough -> fixes #136 2013-05-03 19:33:24 +04:30
David Halter
a2da599d6e fix a completion in dict problem 2013-05-03 18:31:05 +04:30
David Halter
55d2b19cc0 get rid of UncaughtAttributError, fixes #191 2013-05-03 17:22:48 +04:30
David Halter
4865505215 getattr is now also allowed on modules, fixes #116 2013-05-03 17:00:07 +04:30
David Halter
1d45105461 flows in classes shouldn't be a problem anymore, fixes #183 2013-05-03 16:29:34 +04:30
David Halter
c37515f938 included test from #162 (seems to be working), fixes #162 2013-05-03 15:01:30 +04:30
David Halter
300d43de19 PEP 3148 module formatting, fixes #207 2013-05-03 14:17:48 +04:30
David Halter
cc520530c0 changed module name checking (should only be in one place) 2013-05-03 14:09:46 +04:30
David Halter
da067c5c38 add _module to BaseDefinition api 2013-05-03 14:04:40 +04:30
David Halter
902e197c4e bump _ModulePickling number 2013-05-03 13:26:25 +04:30
David Halter
6204cb740b merge with dev branch 2013-05-03 01:28:50 +04:30
David Halter
302d06de85 fix end_pos stuff in parser (no (None, None) end_pos anymore 2013-05-03 01:14:41 +04:30
David Halter
4bb4176296 fixed a position problem 2013-05-02 18:56:22 +04:30
David Halter
b820d1ee27 set user_scope right in fast_parser 2013-05-02 17:58:06 +04:30
David Halter
aebfb3d162 fix pass indentation in functions 2013-05-02 11:33:14 +04:30
David Halter
f5aaeaa428 fast parser splitting is now working better 2013-05-01 14:31:41 +04:30
David Halter
fa32c0a765 fix a set_parent problem 2013-04-30 22:06:46 +04:30
David Halter
6bf64b2ed7 fixed speed problems 2013-04-30 21:41:46 +04:30
David Halter
f535267a9b fixed a memory leak 2013-04-30 21:24:44 +04:30
David Halter
0f3454f897 fix test problems, thx @tkf 2013-04-29 15:14:17 +04:30
David Halter
3eeecff1a1 fixed some position issues 2013-04-28 22:12:32 +04:30
David Halter
7ad156bde7 fixed a problem with 'None' returns 2013-04-28 21:19:05 +04:30