1
0
forked from VimPlug/jedi
Commit Graph

80 Commits

Author SHA1 Message Date
Dave Halter 0def3afaaa A move function for Nodes. 2014-10-12 23:37:46 +02:00
Dave Halter 660124aca1 Get an example running: 'import json; json.dump'. 2014-10-12 22:37:23 +02:00
Dave Halter 09a7317bc9 Merge branch 'dev' of github.com:davidhalter/jedi into dev 2014-10-06 17:55:46 +02:00
Dave Halter 3638d5149d Change time_cache, to also host the star_import_cache. 2014-10-06 17:37:34 +02:00
ColinDuquesnoy 42596dba15 Merge remote-tracking branch 'upstream/dev' into fix_runtime_error
Conflicts:
	jedi/evaluate/imports.py
2014-09-29 11:53:35 +02:00
ColinDuquesnoy d1ae447362 Simplify code 2014-09-29 09:50:49 +02:00
Dave Halter 03e01631cc Remove NamePart from existance and rename it to Name. 2014-09-26 16:29:53 +02:00
Dave Halter 9ecf3774a0 Import issues again. 2014-09-24 21:59:08 +02:00
Dave Halter dae1a48d70 Remove a lot of the old Name.names usages in favor of a direct NamePart usage. 2014-09-22 22:34:33 +02:00
Dave Halter 78bd775889 Only real modules should be added in get_modules_containing_name. 2014-09-19 18:05:57 +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 1fb9b4bc6b Completion now always takes a NamePart as input. 2014-09-10 18:59:08 +02:00
Dave Halter 0eea30f227 NamePart migration of Definition is complete. Now Completion. 2014-09-10 18:29:10 +02:00
Dave Halter 18204c4c19 By trying to get rid of search_name in usages, we had to fix an issue with imports:
If used like 'follow(is_goto)', it could return a ModuleWrapper instead of a Name, which is what we actually want.
2014-09-03 19:30:00 +02:00
Albertas Agejevas ab486ba84f List old-style flask extensions, too. 2014-07-27 17:00:17 +02:00
Albertas Agejevas 733eee94b6 Fix breaking tests. 2014-07-27 16:18:24 +02:00
Albertas Agejevas 7f45bfe689 More on #361: enumerate new-style flask extensions. 2014-07-27 16:08:26 +02:00
Albertas Agejevas 5edd2274b2 Fix an exception in the flask ext code. 2014-07-27 15:04:55 +02:00
Albertas Agejevas 13c1f79d5c A stab at davidhalter/jedi#361 (Flask extension imports)
Both new-style and old-style extensions work, but only when imported
with a 'from'.  There are two skipped tests of the full dotted name
imports.

Also, our fixture has a normal flaskext package, whereas in practice
the flaskext module is injected from a pth file and does not have
__init__.py, we need to figure out to handle that.
2014-07-27 15:04:31 +02:00
Akinori Hattori 5b15c0ba84 fix package detection for Windows 2014-07-19 10:34:15 +09:00
Dave Halter 22e5574a91 Remove some get_defined_names methods, that are not needed anymore. 2014-07-03 12:12:50 +02:00
Dave Halter 8d395a2ef1 scope_names_generator now works with modules perfectly well. 2014-07-02 12:41:16 +02:00
Dave Halter 0d3ea4dfb4 fix a ModuleWrapper with StarImports. Now all modules are wrapped. 2014-06-29 21:04:52 +02:00
Dave Halter 47205dd7f3 change the implementation of compiled.load_module and always use the sys.modules cache after an import, because it's easier. Doesn't require any logic. 2014-06-25 18:57:07 +02:00
Dave Halter e5efd6e5c8 add a setting auto_import_modules to fix autocompletion for modules that use setattr and companions a lot. fixes #151 2014-06-25 17:14:31 +02:00
Dave Halter 01869e4100 make a translation from file system paths to dotted paths possible 2014-06-25 16:33:25 +02:00
Dave Halter 718df569ea memoize sys_path modifications 2014-06-25 15:04:48 +02:00
Dave Halter 034a818863 repr improvements 2014-06-24 13:42:40 +02:00
Dave Halter 08b48807e9 a (temporary) solution for the __file__ access issues in imported modules, see #408 2014-05-19 01:01:56 +02:00
Dave Halter ca2cc65686 improved import positioning errors in static analysis 2014-05-16 17:20:45 +02:00
Dave Halter 9bf50e6022 better knowledge in the importer where the import names originate from 2014-05-16 17:05:43 +02:00
Dave Halter 70d85d1b3a strip_imports -> follow_imports 2014-05-12 11:18:47 +02:00
Dave Halter e5fe726862 imports cleanup & documentation 2014-05-12 11:15:17 +02:00
Dave Halter 13949ec145 move is_nested check from evaluate.imports to the parser 2014-05-12 11:02:57 +02:00
Dave Halter c59a8dce28 ImportError detection 2014-05-11 01:54:25 +02:00
Dave Halter 60971245d6 star imports now have their own class, which will be important for AttributeError detection 2014-05-10 16:53:27 +02:00
Dave Halter 358472b21f improved star import support preparation 2014-05-10 14:12:36 +02:00
Dave Halter d0b2a2ce4f fixed NestedImportModule 2014-05-09 11:52:10 +02:00
Dave Halter 2d48c72340 introduce a NestedImportModule class 2014-05-08 13:22:41 +02:00
Dave Halter fcd8b25d3d the parser in general now cares for carriage return/new line combinations 2014-05-04 12:32:02 +02:00
Dave Halter ef62904af3 python 2 compatibility (also with the new travis build) 2014-05-04 11:50:13 +02:00
Dave Halter c44b88adc3 Error token handling with dots in front. 2014-05-03 12:39:20 +02:00
Dave Halter e5326acf8f ImportPath -> ImportWrapper 2014-04-30 17:15:59 +02:00
Jorgen Schaefer 9ed0dc4861 Always load source files in binary mode.
Source files can be in any coding system, provided Python can
read a coding: line at the beginning of the file. So source files
should be loaded in binary format and decoded according to that
line, not assumed to be in the default coding system.

Fixes #398.
2014-04-24 11:10:59 +02:00
Dave Halter 50c4b7bfd9 memoize problems with defaults in combination with raised exceptions 2014-04-20 14:14:30 +02:00
Dave Halter 547ec56bd3 remove NamePart.string, can be done by casting it to unicode 2014-04-18 14:40:28 +02:00
Dave Halter 237af765b7 start to get rid of the get_set_vars/get_defined_names distinction 2014-04-14 12:28:24 +02:00
Dave Halter edeebd0bb9 Name initialization should always take the same param types as input 2014-04-13 15:00:49 +02:00
Dave Halter a6bfb1b3ad fix issues with os.path completions 2014-04-11 10:33:32 +02:00
Dave Halter 840a806246 generalize import optimizations and make them behave more like sys.modules 2014-04-10 15:21:23 +02:00