immerrr
f634db7a20
jedi.api.Script: document sys_path parameter and VIRTUAL_ENV variable
2015-10-26 13:37:18 +03:00
immerrr
4eb3cf7921
Improve virtualenv support & egg-link resolution
...
- add sys_path= kwarg to Script & Evaluator constructors
- store sys_path for each evaluator instance
- replace get_sys_path with get_venv_path
- get_venv_path: use addsitedir to load .pth extension files
- get_venv_path: look for egg-link files in all directories in path
2015-10-26 13:03:42 +03:00
Kevin Kelley
8d8dcc2b6e
Fix bug in branch condition causing lambdas to be treated like scopes and not like functions.
2015-10-24 23:33:53 +00:00
Dave Halter
c2a287c25a
Usages on syntax should not return anything.
2015-04-28 17:35:26 +02:00
Dave Halter
126f490f1e
Modules have now the name __main__ if they contain dots.
2015-04-28 17:29:42 +02:00
Dave Halter
836fcd6ea0
Small api.Script.goto cleanup.
2015-04-28 02:07:53 +02:00
Dave Halter
b8bb258677
Get rid of get_importer and clean up imports in general.
2015-04-28 01:41:01 +02:00
Dave Halter
265e6b2c35
Change parser and api to use tree instead of pr.
2015-04-27 23:38:48 +02:00
Dave Halter
06d134a7c1
Finished changing the import logic. The sys.path calculations within Jedi are clearer now.
2015-04-25 22:45:08 +02:00
Dave Halter
d038fba9df
er.wrap -> Evaluator.wrap
2015-04-23 13:51:42 +02:00
Dave Halter
fbb960423e
Remove legacy importer code.
2015-04-23 03:42:29 +02:00
Dave Halter
d04241b482
Goto should not include imports that cannot be followed.
2015-04-23 02:37:22 +02:00
Dave Halter
05554a1c89
Fix some issues with import path errors.
2015-04-21 18:45:12 +02:00
Dave Halter
df9452f210
Trying to change the import logic completely. We now have a sys.modules like cache.
2015-04-20 14:47:33 +02:00
Dave Halter
8fca3f78a1
Add a py__name__ call to modules. This makes listing the qualified names of modules possible (in combination with the module_name_cache). Fixes #519 .
2015-04-14 17:36:20 +02:00
Dave Halter
74779f1a5d
Test and preparations for better call signatures with builtins, see #515 .
2015-04-10 03:05:38 +02:00
Dave Halter
ef855a5316
Param descriptions should not end with a comma.
2015-03-31 14:38:03 +02:00
Dave Halter
4bb41b6096
A property can raise an Exception, therefore the interpreter completion should check for those exceptions, fixes #538 .
2015-03-24 15:26:00 +01:00
Dave Halter
468ff59c1c
Remove hasattr/next from _compatibility (not used anymore), thanks @dongweiming for noticing.
2015-03-06 00:25:42 +01:00
Dave Halter
8f58258f4d
Writing a different Name.get_definition() implementation, returns the node, if there's no expr_stmt parent.
2015-03-05 15:17:08 +01:00
Dave Halter
e698e6aeeb
Rework some of the analysis statement gathering.
2015-03-05 13:36:41 +01:00
Dave Halter
f273e314b6
Preparing for an eventual replacement of using expr_stmt for all nodes.
2015-03-05 00:07:50 +01:00
Dave Halter
a3c2108ecf
Fix and test CallSignature.bracket_start.
2015-03-04 12:15:43 +01:00
Dave Halter
23fe08363d
Simplify cache_call_signatures.
2015-02-27 12:20:55 +01:00
Dave Halter
ea8209d45e
Call signatures should not fail when used on if(.
2015-02-27 12:17:44 +01:00
Dave Halter
53490991d7
Goto_definitions bug fix -> imports stuff.
2015-02-27 11:56:36 +01:00
Dave Halter
1bc9ac1c00
Goto bug fix.
2015-02-27 11:37:49 +01:00
Dave Halter
cdbe26786a
Trying to get ird of the weird param generation in the parser tree.
2015-02-10 15:49:26 +01:00
Dave Halter
8775d90173
Merge the master branch into the dev branch.
2015-02-09 14:41:41 +01:00
Dave Halter
c689573b0b
Removed the line_offset from tokenize, we have better ways to modify positions, now.
2015-02-05 14:00:58 +01:00
Dave Halter
3a4235eb33
The interpreter is not using the fast parser anymore.
2015-02-05 00:28:54 +01:00
Dave Halter
4d6afd3c99
Fix fast parser tests.
2015-01-24 00:06:16 +01:00
Dave Halter
cf223a71f5
Add a position modifier for the fast parser. Not yet in use though.
2015-01-15 13:57:56 +01:00
Dave Halter
c963706418
Delete legacy logic.
2015-01-15 02:19:48 +01:00
Dave Halter
e6b9111749
Python 2.7 compatibility.
2015-01-13 02:12:49 +01:00
Dave Halter
f59e05f8e7
Switch grammars depending on Python version.
2015-01-12 13:33:44 +01:00
Dave Halter
26ecb16e5f
CompiledObject.type resembles now the Node.type values.
2015-01-09 01:33:59 +01:00
Dave Halter
b75ba1e16c
interpreter documentation.
2015-01-08 18:34:55 +01:00
Dave Halter
81c4792349
Simplify the interpreter completion.
2015-01-08 18:30:49 +01:00
Dave Halter
ed7500bfaa
Delete deprecations from 0.6.0 and 0.5.0.
2015-01-08 18:22:38 +01:00
Dave Halter
7c6a6006fd
Delete commented code.
2015-01-08 18:19:54 +01:00
Dave Halter
301b4ca649
Deprecate NotFoundError, because it wasn't used anymore.
2015-01-08 18:17:37 +01:00
Dave Halter
8ec8a74a3f
Removed base in completions
2015-01-08 18:02:55 +01:00
Dave Halter
bd304d33c7
Get rid of Function's get_magic_function_X, they are not used anymore.
2015-01-08 14:17:33 +01:00
Dave Halter
a20fd12de9
Remove all scope_names_generator usages.
2015-01-08 13:24:01 +01:00
Dave Halter
705b569e32
Get rid of all get_names_of_scope calls.
2015-01-08 12:48:57 +01:00
Dave Halter
83a94c12c9
Correct global name issues.
2015-01-08 01:20:53 +01:00
Dave Halter
f5e687bc22
Use names_dicts now for all completions.
2015-01-07 23:49:13 +01:00
Dave Halter
c451c0b29e
Private variable filtering improved.
2015-01-07 14:44:19 +01:00
Dave Halter
987121ae5c
Filter names in a separate function so that it can be used for both completion and name lookups.
2015-01-07 13:56:35 +01:00