Dave Halter
f2d35c3ff1
Reenable star import caching.
2014-12-15 15:19:22 +01:00
Dave Halter
77fdbac234
static analysis: Import tests working again.
2014-12-11 16:25:18 +01:00
Dave Halter
6818d3affa
Implement Import.is_nested method.
2014-12-11 16:17:07 +01:00
Dave Halter
003d1249c5
empty import statement completion.
2014-12-11 15:24:19 +01:00
Dave Halter
220610bbf4
Importer now handles follow rest as well.
2014-12-11 02:28:55 +01:00
Dave Halter
48d2e99e55
os.path handling.
2014-12-11 01:49:59 +01:00
Dave Halter
243fb8ef34
Small import fix.
2014-12-11 00:14:03 +01:00
Dave Halter
034d782e65
Last few on_import fixes.
2014-12-08 14:15:21 +01:00
Dave Halter
6cc4d71822
Import completion improvements.
2014-12-08 13:47:23 +01:00
Dave Halter
8868b87d42
Make imports stuff in API classes work. Now goto on imports follows even aliases.
2014-12-08 12:04:09 +01:00
Dave Halter
e3ab56504e
Fixed and simplified flask imports.
2014-12-07 18:11:05 +01:00
Dave Halter
db636c35ae
Error recovery should not delete parts of simple_stmt.
2014-12-07 18:04:55 +01:00
Dave Halter
33b39c2b5d
Don't use the old setup_function/teardown_function pytest stuff. It's very implicit and hard to understand.
2014-12-07 17:21:52 +01:00
Dave Halter
49b34b4d01
Stuff mostly related to namespace packages.
2014-12-07 16:51:54 +01:00
Dave Halter
f24a3bf997
Fix on_import tests.
2014-11-26 03:07:41 +01:00
Dave Halter
a940c31a86
Improvments to on import completion.
2014-11-26 02:13:24 +01:00
Dave Halter
149b4d8ad5
Import completion on syntactically correct imports.
2014-11-26 01:15:40 +01:00
Dave Halter
499c62df43
Fixes for os.path import
2014-11-25 19:39:14 +01:00
Dave Halter
5d82b11f59
First implementation to be ready to complete corrupt imports. Working ok.
2014-11-25 19:35:27 +01:00
Dave Halter
fae0a7b0c4
Small fixes for past mistakes.
2014-11-24 01:56:54 +01:00
Dave Halter
9f45f18ad1
Added a grammar param to the parser.
2014-11-24 01:10:39 +01:00
Dave Halter
c152a1c58b
Actually replace tree with representation (in all the imports).
2014-11-23 19:46:52 +01:00
Dave Halter
e6364fdd8b
Fix os.path issues.
2014-11-19 18:40:28 +01:00
Dave Halter
ba0e61d99f
Star imports are now part of the ModuleWrapper.
2014-11-19 18:09:49 +01:00
Dave Halter
bb9d6b4832
Temporarily disable on import completion. Not sure if we're going to do it with the normal parser.
2014-11-19 13:24:45 +01:00
Dave Halter
c71646a9a0
Fixed relative imports.
2014-11-19 13:13:06 +01:00
Dave Halter
e630eeb397
Care for import aliases better.
2014-11-19 12:45:39 +01:00
Dave Halter
3c6d5dafb1
Split Import, now there is ImportFrom and ImportName as it exists in the python grammar.
2014-11-19 00:40:16 +01:00
Dave Halter
535a69e499
Small improvments to from imports
2014-11-18 18:43:16 +01:00
Dave Halter
a4a767f8bb
Import improvements.
2014-11-18 17:19:15 +01:00
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