Commit Graph
100 Commits
Author SHA1 Message Date
David Halter 4b4681d285 re-enable test, probably related to #131 2013-05-08 00:01:22 +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 2e0d0bb4f5 test for #210 2013-05-04 13:44:15 +04:30
David Halter 698ee7af28 removed an old part_parser test 2013-05-03 21:35:28 +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 fd4eb5f0a6 add test of #183 2013-05-03 15:16:09 +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 88f39a01cb Merge pull request #208 from davidhalter/fast
New improved Fast Parser
2013-05-02 14:11:05 -07:00
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 01be114386 renaming tests are now possible outside of renaming.py 2013-05-01 21:07:37 +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 841f4d8423 skip one regression test 2013-04-28 22:24:19 +04:30
David Halter 3eeecff1a1 fixed some position issues 2013-04-28 22:12:32 +04:30
David Halter 56ca0cbfaa skip unit test until this will be fixed 2013-04-28 21:30:26 +04:30
David Halter 7ad156bde7 fixed a problem with 'None' returns 2013-04-28 21:19:05 +04:30
David Halter 4b36fb2f6f corrected some doctest problems 2013-04-28 21:10:29 +04:30
David Halter 9988c49097 fix pushback problem with tokenizer 2013-04-28 00:24:52 +04:30
David Halter c675706877 clean up a little bit 2013-04-27 23:47:18 +04:30
David Halter 3feac63468 fix global_vars 2013-04-27 23:45:48 +04:30
David Halter aab3b1c627 also remove old start_pos stuff 2013-04-27 22:49:45 +04:30
David Halter 26ce32ec6b fix some end_pos problems 2013-04-27 22:47:26 +04:30
David Halter 792808d835 fix another IndexError, due to empty files (e.g. __init__.py) 2013-04-27 21:47:54 +04:30
David Halter 3627263cbe fixed an IndexError 2013-04-27 21:36:57 +04:30
David Halter 4839f3d80e fix a scope problem with the new fast parser 2013-04-27 21:25:42 +04:30
David Halter e99f7a25fe exceptions should produce errors even in alternate run display 2013-04-27 20:55:51 +04:30
David Halter 199d80fa02 fix most rename tests 2013-04-27 20:22:28 +04:30
David Halter 45f29bfa31 fixed a problem with non used decorators when splitting parts 2013-04-24 12:52:45 +04:30
David Halter ddc5b248f1 use correct parents 2013-04-21 23:32:31 +04:30
David Halter 80cbed2f9f fixed some decorator stuff. 2013-04-21 23:06:39 +04:30
David Halter 43306429f9 fixed some little testing problems 2013-04-21 22:55:12 +04:30
David Halter e494be2537 Merge branch 'dev' into fast 2013-04-21 00:20:25 +04:30
David Halter 406e70d51a Merge pull request #204 from davidhalter/testing
Make run.py testing reusable
2013-04-20 12:49:30 -07:00
David Halter 07075a7264 running tests again from run.py works. 2013-04-21 00:04:51 +04:30
David Halter d16f5f6a4c refactored test_integration, so that those tests can be called from multiple places. 2013-04-20 21:55:08 +04:30
David Halter 2b1ea33fe8 reintroduce old testing mode for run.py 2013-04-20 21:22:08 +04:30
David Halter cf49bdc9ab merge of tokenizer/dev branch 2013-04-20 19:23:15 +04:30
David Halter 336d35eb71 Merge pull request #203 from davidhalter/tokenizer
Tokenizer
2013-04-20 03:14:19 -07:00
David Halter d27dc0d58e remove py2.5 from travis - this also removes python 2.5 support 2013-04-20 14:37:18 +04:30
David Halter 8c56fba1e9 fix a problem with statements without parents 2013-04-20 14:12:15 +04:30
David Halter a7308fa51d removed more unused code 2013-04-20 14:11:46 +04:30
David Halter d4428c497a use tokenizer instead of tokenize in all modules 2013-04-20 09:52:54 +04:30
David Halter e2a6562384 tokenizer: removed raised errors 2013-04-20 09:51:52 +04:30
David Halter 0d385563a5 tokenizer: removed encoding 2013-04-20 09:28:32 +04:30
David Halter 6b2619a844 tokenizer removed unused functions 2013-04-20 09:23:27 +04:30
David Halter 06da7ddeec tokenizer py27 support 2013-04-20 09:21:22 +04:30
David Halter fa53579950 Merge branch 'dev' into tokenizer 2013-04-20 08:55:02 +04:30
David Halter 3b0f4b87cf removed unnecessary stuff for the jedi tokenizer 2013-04-19 23:59:33 +04:30
David Halter a28bc7195f added tokenizer of the standard library to jedi, because in the future it shall replace tokenize 2013-04-19 23:50:28 +04:30
David Halter 4e27e7d335 fixed a positioning bug in the own tokenizer 2013-04-17 23:37:21 +04:30
David Halter d82f315ea6 don't use SubModule's in the scope list if it has a parent 2013-04-17 13:39:02 +04:30
David Halter 9181410c47 fixed a problem with functions in the beginning of a module 2013-04-17 10:07:15 +04:30
David Halter 188ed33c4f fixed parser change problems 2013-04-15 11:50:05 +04:30
David Halter b08390c136 some parser end positions changed 2013-04-15 10:22:27 +04:30
David Halter bafb17001b fix encoding problems with terminal 2013-04-13 15:57:28 +04:30
David Halter eeb8e0e21d first test working again with new fast_parser 2013-04-13 13:50:50 +04:30
David Halter 967d01d490 fast parser produces now trees that are correct 2013-04-10 23:50:39 +04:30
David Halter 5dd05eff1a a basic approach to the new fast parser 2013-04-10 22:33:49 +04:30
David Halter 3c73a744c3 Merge pull request #187 from Astrac/python-3.3
Python 3.3
2013-03-27 10:21:15 -07:00
David Halter a99d9541bd on the way to a better fast_parser - improved a lot of the positioning stuff 2013-03-24 22:51:17 +04:30
David Halter 6c998067e8 Merge pull request #177 from tkf/Generator-object-has-no-attribute-start_pos
Generator object has no attribute start_pos (added a failing test)
2013-03-21 11:06:21 -07:00
David Halter 6c65eaf14d Merge pull request #186 from tkf/versioned-cache
Remove old version of FS cache automatically
2013-03-20 09:05:37 -07:00
David Halter 960dd38e2c Merge pull request #185 from tkf/cPickle
Use cPickle if available
2013-03-19 21:32:22 -07:00
David Halter 09f39d891a remove __all__ from api, because not needed, fixes #180 2013-03-18 08:25:14 +04:30
David Halter 8c1ccd2800 Merge pull request #182 from tkf/Fix-Completion.follow_definition
Fix Completion.follow_definition
2013-03-17 03:48:22 -07:00
David Halter e8d34c574f Merge pull request #178 from tkf/no-duplicate-module
Add a test to make sure that the import hack works
2013-03-17 03:39:45 -07:00
David Halter 66fb7915c2 Merge pull request #179 from tkf/remove-known-failures-tag
Remove tags for known failures due to the import hack
2013-03-17 03:35:55 -07:00
David Halter df058b93c2 improve get_code of parsing_representation scopes 2013-03-16 23:26:20 +04:30
David Halter 841b0be19a improved parents in fast parser 2013-03-15 23:03:59 +04:30
David Halter cd513590ab Merge pull request #176 from tkf/basedefinition-type
More detailed BaseDefinition.type (fixes #169)
2013-03-15 10:36:53 -07:00
David Halter 89b6741539 Merge pull request #175 from davidhalter/absolute-import
Use Absolute Imports
2013-03-15 10:35:28 -07:00