Dave Halter
c3d40949b1
Make it possible to access properties again
...
This time we catch all exceptions and try to avoid issues for the user.
This is only happening when working with an Interpreter. I don't feel this is
necessary otherwise.
See #1299
2019-08-11 16:24:19 +02:00
Dave Halter
dea887d27d
Refactor the plugin registry
2019-07-16 12:48:54 +02:00
Dave Halter
8329e2e969
Remove classes from plugins and use decorators instead
2019-07-16 10:23:19 +02:00
Dave Halter
ebdae87821
goto should always goto definitions, fixes #1304
2019-06-24 01:25:26 +02:00
Dave Halter
097b073d20
Undo the tensorflow speedups, because they seem to cause more harm than good, see #1116
2019-06-12 10:00:45 +02:00
Dave Halter
c8937ccdbf
Add only_stubs and prefer_stubs as parameters to goto_assignments/goto_definitions
2019-06-10 15:59:12 +02:00
Dave Halter
abba305f64
Better debugging
2019-06-10 03:19:32 +02:00
Dave Halter
a555def6ca
Use a different function signature instead of a separate goto_stubs function
2019-06-10 02:27:22 +02:00
Dave Halter
42b6e20729
Changes for 3.8: sync_comp_for instead of comp_for
...
Please also look at the changes for parso in its b5d50392a4058919c0018666cdfc8c3eaaea9cb5 commit
2019-06-09 18:05:34 +02:00
Dave Halter
07f9f241c6
py__call__ is now always available
2019-06-06 10:04:48 +02:00
Dave Halter
b24e782b7d
Cleaned up create_context for methods
...
Some improvements made a lot of things clearer about function/method contexts, therefore
the code is now clearer.
2019-06-05 10:11:51 +02:00
Dave Halter
9c40c75136
Add file_io for Jedi for listdir
2019-05-31 21:25:48 +02:00
Dave Halter
9a713bc36f
Fix create_context for param default arguments/annotations
2019-05-31 00:21:35 +02:00
Dave Halter
3ef99863ee
Even more indent increases for debugging
2019-05-28 18:58:58 +02:00
Dave Halter
11f3eece6d
Preparations for some async changes
2019-05-27 09:41:50 +02:00
Dave Halter
cbd16e6d6b
Bump latest grammar from 3.6 to 3.7
2019-05-19 14:03:29 +02:00
Dave Halter
8b1d4a7824
Fix call signatures, use stubs if possible
2019-05-11 12:44:20 +02:00
Dave Halter
079783e3a1
Move trying to resolve stubs to a different place
2019-05-10 22:33:49 +02:00
Dave Halter
a6a71c59f4
Move some contents of gradual.stub_contexts to gradual.conversion
2019-05-10 01:24:58 +02:00
Dave Halter
1430ac2675
Remove more unused code that was used for goto a long time ago
2019-05-10 01:12:03 +02:00
Dave Halter
be6760e427
Introduce get_qualified_names for names, it's easier to implement goto like this
2019-05-10 01:07:21 +02:00
Dave Halter
895eae1d54
Move all Name classes to a separate file
2019-05-07 00:30:16 +02:00
Dave Halter
ee86b58ab9
Remove a usage of load_stubs, because we are already using stubs
2019-05-06 19:48:15 +02:00
Dave Halter
afced5014c
Cleanup stub imports / caching
2019-05-05 22:52:48 +02:00
Dave Halter
202b1784a1
Remove with_stub_context_if_possible
2019-05-05 16:04:24 +02:00
Dave Halter
87fd56859d
Remove stubify
2019-05-05 16:02:18 +02:00
Dave Halter
44b9b8787a
Some Bugfixes
2019-05-05 15:59:37 +02:00
Dave Halter
4d3a698a12
Refactor things so goto is working in both directions
2019-05-05 01:16:52 +02:00
Dave Halter
0e42df2da7
Refactor Jedi so we use stub modules as much as possible
2019-05-01 00:52:02 +02:00
Dave Halter
2f562040ac
Fix a few remaining issues about the current branch
2019-04-14 18:44:58 +02:00
Dave Halter
6ced926db0
Try to get some more stub to definitions working and vice versa
2019-04-14 17:37:48 +02:00
Dave Halter
ad0000886d
Use MethodContext in create_context
2019-04-14 00:17:14 +02:00
Dave Halter
3bef9a67b8
Refactor a bit of create_context
2019-04-12 12:34:07 +02:00
Dave Halter
0f037d0e6c
Goto for stubs is now working better
2019-04-11 22:06:23 +02:00
Dave Halter
9f26c27b6d
Start adding tests for goto_assignments on stubs
2019-04-10 20:41:05 +02:00
Dave Halter
e61e210b41
Remove some weird changes about importing again
2019-04-09 21:48:57 +02:00
Dave Halter
255d0d9fb5
Fix builtin import issues
2019-04-09 21:15:33 +02:00
Dave Halter
8c9ac923c6
Fix import names from sys path generation
2019-04-08 19:35:58 +02:00
Dave Halter
7ccc0d9d7b
Another Python2 fix
2019-04-05 12:20:46 +02:00
Dave Halter
fa17681cf6
Goto definitions goto stubs now have a proper implementation
2019-04-03 00:28:15 +02:00
Dave Halter
2fc53045c7
Goto stubs if on definition
2019-03-31 01:19:35 +01:00
Dave Halter
aa37f6f738
Fixes for _follow_error_node_imports_if_possible
2019-03-28 10:12:23 +01:00
Dave Halter
2ad652a071
Fix a few more goto_definition error_node imports
2019-03-28 09:34:57 +01:00
Dave Halter
a4b5950495
Make it possible to use the parse functions without file_io
2019-03-27 01:05:45 +01:00
Dave Halter
1c105b5c68
Follow error node imports properly in goto assignments as well
2019-03-27 00:53:35 +01:00
Dave Halter
f4c17e578c
Make it possible to use goto_definition on "broken" imports
2019-03-27 00:39:51 +01:00
Dave Halter
a437c2cb02
Fix test_imports tests, now zip imports work again
2019-03-26 09:16:38 +01:00
Dave Halter
33b73d7fbc
Typing does not need to be installed for Jedi to work, vendored typeshed is enough
2018-12-16 17:26:56 +01:00
Dave Halter
f55da1e1d6
Fix isues with Python 2.7 running a 3.6 env
2018-12-16 15:53:42 +01:00
Dave Halter
3940fd8eff
Restructure eval_annotation so that it's more understandable
2018-12-09 20:48:18 +01:00