Dave Halter
d857668292
Add include_builtins to usages, fixes #1131 .
2018-07-03 22:53:19 +02:00
Dave Halter
9b17be9ecf
Cleanup some of the module cache stuff
2018-04-10 19:16:18 +02:00
Dave Halter
60da6034c0
Fix some code_lines issues
2018-03-17 19:41:26 +01:00
Dave Halter
90a226f898
All modules now have a code_lines attribute, see #1062
2018-03-16 10:20:26 +01:00
Dave Halter
a85f2d1049
Use the correct class for params when used in names. Fixes #1006
2018-03-07 09:59:31 +01:00
Dave Halter
074d0d6d07
Include __init__.py files in search for the project directory, fixes #773
2018-03-04 21:36:59 +01:00
Dave Halter
98761f6994
Get rid of an unused import
2018-02-16 21:16:43 +01:00
Dave Halter
88f521ad82
Add the name always to the script module
2018-02-16 21:15:53 +01:00
Dave Halter
6a11b7d89e
Generalize the use of smart import paths
...
Now a lot more parts of the current scripts path are used as a sys path.
2018-02-16 12:40:31 +01:00
Dave Halter
2a56323c16
Try to avoid CachedMetaClass for modules
2018-02-13 20:47:43 +01:00
Dave Halter
c9fa335145
Fix a goto_assignments issue with a better internal API
...
Fixes #996 .
2018-01-29 08:58:59 +01:00
Dave Halter
68f840de60
Refactor django path support
2018-01-24 19:13:05 +01:00
Dave Halter
d986c44b94
Merge with master
...
The deprecation of Python2.6 and the insertion of environments made it quite difficult to merge.
2018-01-20 19:32:59 +01:00
Dave Halter
877383b110
Add a test to avoid encoding issues. Fixes #1003
2018-01-20 18:28:29 +01:00
Dave Halter
16b463a646
Refactor to avoid having unicode decode errors by default
2018-01-19 19:23:11 +01:00
Dave Halter
2b577fcd5c
Clarity
2018-01-17 19:24:08 +01:00
Dave Halter
bf0b6741aa
At the moment, don't allow projects as an input to script
2018-01-17 09:57:58 +01:00
Dave Halter
9b5e3447d9
Make the new project API fully work in tests
2018-01-17 09:54:11 +01:00
Dave Halter
fe813292cf
Try to migrate to the new project API
2018-01-16 23:56:35 +01:00
Dave Halter
0ed9e1c249
The given sys_path gets converted to unicode now in py2
2017-12-30 03:40:01 +01:00
Dave Halter
da211aa63d
Use the Script fixture more generally
2017-12-29 18:40:17 +01:00
Dave Halter
37d282e67b
Always use the parser of the environment
2017-12-28 21:19:26 +01:00
Dave Halter
96a67f9a4c
Start using the correct parser for each environment
2017-12-19 19:19:35 +01:00
Dave Halter
fe3e8a0867
Refactor environments a bit
2017-12-17 18:47:28 +01:00
Dave Halter
d0732e58cc
api.virtualenv -> api.environment
2017-12-15 18:20:35 +01:00
Dave Halter
0d7f93c019
DefaultEnvironment -> get_default_environment
2017-12-15 18:13:21 +01:00
Dave Halter
3cd5fa3c20
Better support for searching python environments
2017-12-15 12:19:52 +01:00
Dave Halter
7263d8565b
Add an access abstraction (only array tests work, yet)
...
The access abstraction will be the new way of accessing builtin objects. This way it will be easier to move that to another process
2017-11-25 19:47:49 +01:00
Dave Halter
73576b2a8b
Progress when working with evaluators
2017-11-17 01:21:38 +01:00
Dave Halter
96149d2e6a
Make it possible to connect to a subprocess to get the sys path
2017-11-14 18:25:37 +01:00
Dave Halter
46b81dfa6d
Subprocess progress
...
Also add an enviornment variable to Script
2017-11-13 00:40:32 +01:00
Dave Halter
06004ad2f5
Some minor refactorings.
2017-10-09 20:32:28 +02:00
Dave Halter
bedff46735
Simplify usages. It should also work way better, now.
2017-10-08 20:13:24 +02:00
Dave Halter
4ddf7bf56d
Remove the disabling of dynamic flow information
...
We should be able to handle this anyway also in completions. Don't hide issues here.
2017-10-07 10:52:43 +02:00
Dave Halter
51d2ffb078
Use sys path mostly from project and move some sys path stuff around.
2017-10-05 10:06:28 +02:00
Dave Halter
383f749026
Move the initial sys path generation into a new project class.
2017-10-02 20:19:55 +02:00
Dave Halter
0762c9218c
Move arguments to a separate module.
2017-10-01 13:29:28 +02:00
Dave Halter
16011a91af
Move iterable to context/iterable.
2017-09-30 17:41:21 +02:00
Dave Halter
3c75f27376
Move the base Context stuff to another module to keep context free for imports.
2017-09-30 16:46:07 +02:00
Dave Halter
8f177eea07
Move the ModuleContext to a separate module.
2017-09-29 13:24:48 +02:00
Dave Halter
d99d4deebf
Merge branch 'values'
2017-09-28 16:19:38 +02:00
Dave Halter
d9d3aeb5bc
Move more functions to the syntax tree module.
2017-09-28 09:16:43 +02:00
Dave Halter
d6a04b2928
Remove the deprecated attributes from Jedi.
2017-09-20 18:27:29 +02:00
Dave Halter
0c01a3b823
The sys.modules implementation did not work properly with newly created files.
...
Fixes #886 .
2017-09-20 10:06:02 +02:00
Dave Halter
260aef943a
Increase Python's recursion limit
...
Currently there is still the possiblity that Jedi fails with a recursion error,
because the stack is too small. (see #861 ) By increasing it we improve the
situation.
Probably we should just be switching away from this extreme amount of recursion
and move to queueing which would also allow to use other algorithms such as
breadth-first-search.
2017-09-18 10:26:42 +02:00
Dave Halter
f4ba71f6a3
Move the recursion limit settings to the recursion module.
2017-09-17 14:08:39 +02:00
Dave Halter
5ff7e3dbbe
Actually do goto when follow_imports is used
...
Fixes #945 .
2017-09-13 00:28:49 +02:00
Dave Halter
4a544c29ea
Fix a follow_imports (goto) issue.
2017-09-11 23:32:10 +02:00
Dave Halter
619acbd2ca
Goto didn't work well on imports in __init__.py files.
...
Fixes #956 .
2017-09-11 21:48:37 +02:00
Dave Halter
882f8029ea
Use split_lines and python_bytes_to_unicode directly.
2017-09-03 18:38:00 +02:00