Commit Graph

6290 Commits

Author SHA1 Message Date
Dave Halter
3ba3d72d6b Fix a small issue 2019-04-12 12:09:03 +02:00
Dave Halter
44639ee50e Better py__getattribute__ for ContextSet 2019-04-11 22:59:54 +02:00
Dave Halter
0f037d0e6c Goto for stubs is now working better 2019-04-11 22:06:23 +02:00
Dave Halter
bb050eebed Move creating stub modules 2019-04-11 08:35:16 +02:00
Dave Halter
9f26c27b6d Start adding tests for goto_assignments on stubs 2019-04-10 20:41:05 +02:00
Dave Halter
31442ecb3b Merge branch 'master' into typeshed 2019-04-09 22:58:30 +02:00
Dave Halter
24a06d2bf9 Merge branch 'names-all-scopes-false-returns-class-fields' of https://github.com/immerrr/jedi 2019-04-09 22:58:03 +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
85fc799d62 Reintrodue a piece of sys_path code with test
This piece was thought to not be needed. It turns out it is
2019-04-08 10:05:12 +02:00
Dave Halter
3d5b13c25e Test function rename 2019-04-08 01:56:24 +02:00
Dave Halter
cccbf50a0e Fix an issue with transform_path_to_dotted 2019-04-08 01:56:05 +02:00
Dave Halter
e50f65527d Somehow removed a test when merging 2019-04-08 01:34:12 +02:00
Dave Halter
a356859e7e Got something small wrong with compatibility 2019-04-07 22:03:26 +02:00
Dave Halter
96d607d411 Cross Python version fixes for unicode/bytes things 2019-04-07 21:51:25 +02:00
Dave Halter
d6232e238a Merge branch 'master' into ts2 2019-04-05 15:44:25 +02:00
Nikhil Mitra
8d0c4d3cec Resolve path in get_cached_default_environment() in api/environment.py to
prevent unnecessary cache busting when using pipenv.
2019-04-05 15:21:46 +02:00
Dave Halter
e95f4c7aa5 Fix module loading in Python 2 2019-04-05 13:39:27 +02:00
Dave Halter
d222d78c7b Zip imports don't have to work in Python2 2019-04-05 12:31:24 +02:00
Dave Halter
aaae4b343e Errors in import module are now better reported 2019-04-05 12:21:05 +02:00
Dave Halter
7ccc0d9d7b Another Python2 fix 2019-04-05 12:20:46 +02:00
Dave Halter
02b01a8bc3 Fix an import error for Python 2 2019-04-04 13:20:41 +02:00
Dave Halter
c0f5c5f24c print_to_stderr can be replaced with a proper future import 2019-04-03 09:37:40 +02:00
Dave Halter
c997d568f3 Remove unused code 2019-04-03 09:30:22 +02:00
Dave Halter
87bcaadf40 Fix a 3.7 issue 2019-04-03 01:16:52 +02:00
Dave Halter
f4a6856e54 Fix some tests 2019-04-03 01:04:18 +02:00
Dave Halter
fa17681cf6 Goto definitions goto stubs now have a proper implementation 2019-04-03 00:28:15 +02:00
Dave Halter
7c56052d58 Make infer public on classes 2019-04-01 09:25:00 +02:00
Dave Halter
2fc53045c7 Goto stubs if on definition 2019-03-31 01:19:35 +01:00
Dave Halter
2f1ce2bbf9 Some test fixes 2019-03-28 19:23:55 +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
ab8d7e8659 Running a test should not fail if nothing is selected 2019-03-28 08:59:59 +01:00
Dave Halter
7cd79c440c Try to read bytes if possible, not unicode 2019-03-27 22:19: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
04095f7682 Uncomment previous zip tests that needed bugfixing first 2019-03-27 00:56:15 +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
993567ca56 Remove submodule dict issues from namespace packages 2019-03-26 18:42:47 +01:00
Dave Halter
e01d901399 Test zip imports that have nested modules 2019-03-26 09:33:54 +01:00
Dave Halter
a437c2cb02 Fix test_imports tests, now zip imports work again 2019-03-26 09:16:38 +01:00
Dave Halter
b6612a83c3 WIP import improvement, getting rid of bad old code 2019-03-21 23:22:19 +01:00
Dave Halter
151935dc67 Avoid property, because there's a __getattr__ on that class 2019-03-21 18:49:56 +01:00
Dave Halter
ad69daf1a3 Update the imports in zip file to be correct 2019-03-20 22:21:47 +01:00
Dave Halter
234f3d93cd Rewrite py__package__ to return a list 2019-03-18 10:01:18 +01:00
micbou
77a7792afc Fix transform_path_to_dotted tests on Windows
Convert paths to normalized absolute ones in transform_path_to_dotted
tests.
2019-03-16 17:34:00 +01:00
Dave Halter
e2fea0a5de Fix some tests because of stub_context changes 2019-03-16 01:09:30 +01:00
Dave Halter
fce37fa0e3 Remove a few prints 2019-03-16 00:23:52 +01:00
Dave Halter
7ab3586e52 Merge branch 'master' into typeshed 2019-03-14 09:26:25 +01:00