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
Daniel Hahler
e621e8590c
Improve IntegrationTestCase.__repr__
...
Having the path (together with the line only) makes it easy to go to the
actual test.
2017-12-14 22:44:24 +01:00
Dave Halter
94e2e92888
Remove unit test class from speed tests
2017-12-13 19:22:45 +01:00
Dave Halter
8003d30b06
Fix the Python 2.7 tests
2017-12-11 21:39:30 +01:00
Dave Halter
b196c6849b
Don't try to pickle ellipsis
2017-12-11 20:55:34 +01:00
Dave Halter
aa7319dba5
Remove the last test failures.
2017-12-09 17:38:45 +01:00
Dave Halter
649225333f
Get the subprocess mostly working
2017-12-08 09:44:12 +01:00
Dave Halter
a210be8198
Don't use the create function anymore in compiled
...
Now the whole creation of builtin objects is abstract and was moved to subprocesses etc.
2017-12-06 15:26:29 +01:00
Dave Halter
13f8f37547
Use even more subprocess accesses
2017-12-06 15:16:27 +01:00
Dave Halter
42fb93dc01
Use the subprocess access to create acceses
2017-12-06 15:06:48 +01:00
Dave Halter
f09ca9fc20
Use access handles everywhere
2017-12-06 14:46:27 +01:00
Dave Halter
543f4f7ff2
Move some stuff from compiled to context
2017-11-29 01:03:01 +01:00
Dave Halter
47114178e9
Fake context python code is now not the base for a lot of things anymore. It just gets executed.
2017-11-28 18:26:12 +01:00
Dave Halter
accf20226d
Fix a few more tests
2017-11-26 22:07:13 +01:00
Dave Halter
e71f0062dd
Get a lot of tests passing
2017-11-26 17:48:00 +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
1a7fc512bc
Eliminate CompiledObject.type
2017-11-23 21:50:18 +01:00
Dave Halter
87452639ad
Exceptions now also work over the subprocess.
2017-11-17 01:54:05 +01:00
Dave Halter
4a7d715a57
Finally got compiled_objects and the access to them working
2017-11-17 01:42:27 +01:00
Dave Halter
73576b2a8b
Progress when working with evaluators
2017-11-17 01:21:38 +01:00
Dave Halter
4136dcaf08
Make the subprocesses work and return the right sys paths for the different versions
2017-11-15 08:58:13 +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
Robin Roth
dc43eba07b
Support async/await syntax
2017-11-01 13:44:38 +01:00
Johannes Mikulasch
d9dc4ac840
Merge branch 'master' of https://github.com/johannesmik/jedi
2017-10-31 14:02:35 +01:00
Johannes Mikulasch
a1b60a978d
add testcases for pep0484 ahead of time annotations
2017-10-31 13:57:10 +01:00
Robin Roth
88cf592c95
Make goto work with await
...
Created together with @langsamer and @davidhalter
2017-10-28 14:10:05 +02:00
Dave Halter
752b7d8d49
One more usages test.
2017-10-15 21:11:49 +02:00
Dave Halter
2b138b3150
Usages fix for more complex situations
2017-10-09 21:09:04 +02:00
Dave Halter
bedff46735
Simplify usages. It should also work way better, now.
2017-10-08 20:13:24 +02:00
Dave Halter
21531abd1e
Fix a small test error
2017-10-05 20:43:31 +02:00
Dave Halter
7019ca643e
Remove a possible security issue
...
sys paths are not executed anymore and use static analysis now.
2017-10-05 19:57:50 +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
32917d5565
Remove the function context to a separate module.
2017-09-29 15:28:17 +02:00
Dave Halter
95930d293c
Move instance module to the context package.
2017-09-29 15:14:56 +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
ee52cc7501
Fix most dynamic array issues.
2017-09-26 17:26:33 +02:00
Dave Halter
d6a04b2928
Remove the deprecated attributes from Jedi.
2017-09-20 18:27:29 +02:00
Dave Halter
c7dbf95344
Fix recursion issues.
...
Completely refactored the recursion checker and changed some settings.
Fixes #861 .
2017-09-17 21:54:09 +02:00
Dave Halter
c51634b8d4
dict_values should be accessible for CompiledObjects.
2017-09-17 02:48:09 +02:00
Dave Halter
8fcb468539
Jedi was able to go crazy and loop endlessly in certain if/self assignment combinations.
...
Here we limit type inferance per tree scope. I'm still not sure this is the way
to go, but it looks okay for now and we can still go anther way in the future.
Tests are there.
Fixes #929 .
2017-09-17 02:04:42 +02:00
Dave Halter
9dd2027299
Way better support for instantiated classes in REPL
...
Fixes several issues:
- It was not possible to correctly trace where instances were coming from in a
REPL. This led to them being pretty much ignored.
- Instances were then just treated as classes and not as actual instances in
MixedObjects. (However since they were ignored in the first place this
wasn't really an issue).
- Avoiding the repr bug https://github.com/python/cpython/pull/2132/files in
Jedi is working a bit differently. We're just never accessing Objects
directly. This should work around 99.99% of the cases were people are using
this stuff.
Fixes #872
2017-09-15 01:55:18 +02:00
Dave Halter
63edbdcc5b
Better context completions for finally/except/else/elif
...
Fixes #837
2017-09-15 00:48:56 +02:00
Dave Halter
e389c61377
Relative imports with more than one level did not work
...
Fixes #784 .
2017-09-14 22:06:08 +02:00
Dave Halter
ab84030ad2
full_name was buggy when used on import error names
...
Fixes #873 .
2017-09-14 20:41:25 +02:00
Dave Halter
2210b11778
Fix some issues with import completion
...
Fixes #759
2017-09-14 20:09:13 +02:00
Dave Halter
4c2d1ea7e7
Understand context managers correctly
...
Fixes #812 .
2017-09-13 11:00:34 +02:00
Dave Halter
a8a15114ac
Fix namedtuple support
...
There were a couple issues:
- namedtuple with one member didn't work
- namedtuple content access was never possible
- operator.itemgetter didn't work properly. Corrected py__bool__ for FakeSequence
Fixes #730 .
2017-09-12 11:06:39 +02:00