Commit Graph
100 Commits
Author SHA1 Message Date
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
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
Dave Halter 92a8a84ff2 Fix sys.path completions, #1298 2019-03-13 21:11:20 +01:00
Dave Halter 156e5f6beb Add two typeshed tests 2019-03-13 10:04:19 +01:00
Dave Halter 8e9a91abf8 Implement is_stub and goto_stubs for the API 2019-03-11 19:13:24 +01:00
Dave Halter 32d2397e64 Move test_stub to test_gradual 2019-03-10 12:02:51 +01:00
Dave Halter 087a58965b Add a typeshed test 2019-03-10 12:01:00 +01:00
Dave Halter b7a164afa8 Merge branch 'master' into typeshed 2019-03-08 18:59:33 +01:00
Dave Halter b659b20d27 Fix an issue between different subprocess versions 2019-03-08 18:20:00 +01:00
Dave Halter d77e43b57d Enforce unicode because of Python 2 2019-03-08 16:41:08 +01:00
Dave Halter bfd8ce475a Merge master into typeshed 2019-03-08 16:36:06 +01:00
Dave Halter 967d35e4be Correct a docstring 2019-03-08 16:35:15 +01:00
Dave Halter 0cad79ad18 Merge branch 'master' into typeshed 2019-03-08 16:25:45 +01:00
Dave Halter cd8c9436c5 Merge branch 'master' of github.com:davidhalter/jedi 2019-03-08 16:23:46 +01:00
Dave Halter f93134d4f8 Two simple test fixes 2019-03-08 16:23:37 +01:00
Dave Halter 5743f54d69 One more relative import fix 2019-03-08 16:01:56 +01:00
Dave Halter 1914d10836 Fix relative imports outside of the proper paths 2019-03-08 14:25:54 +01:00
Dave Halter 6b579d53ec Some more refactoring for relative imports 2019-03-08 10:54:28 +01:00
Dave Halter c1d65ff144 Start reworking the relative imports 2019-03-07 00:27:51 +01:00
Dave Halter 7374819ade Add a repr to ImplicitNamespaceContext 2019-03-06 08:36:50 +01:00
Dave Halter 9d19b060a9 Add a better comment for imports 2019-03-04 09:34:17 +01:00
Dave Halter 23d61e5e97 Restructure relative importing a bit and improve tests 2019-03-04 09:24:38 +01:00
Dave Halter 467c2e5def Merge branch 'master' into typeshed
There were quite a few conflicts, because there were two rewrites of the path
to dotted function.
2019-03-01 10:13:16 +01:00
Dave Halter ffd9a6b484 Make it possible to complete in non-Python files 2019-02-28 20:04:17 +01:00
Dave Halter 8aca357de6 Write a test for #1209
Relative imports were failing in nested Python packages. With the fix to
transforming paths to dotted paths this should already be a lot better,
still here's a regression test.
2019-02-28 09:51:47 +01:00
Dave Halter 1a32663f85 The calculation of dotted paths from normal paths was completely wrong 2019-02-28 09:42:56 +01:00
Dave Halter 2a9e678877 Merge branch 'master' into typeshed 2019-02-27 13:13:17 +01:00
Dave Halter 17136e03d2 Fix get_parent_scope 2019-02-27 13:08:21 +01:00
Dave Halter 94f2677752 Fix names selection and params, fixes #1283 2019-02-26 00:20:33 +01:00
Dave Halter eac69aef2b Infer names in the correct way, fixes #1286 2019-02-25 21:48:57 +01:00
Dave Halter 2dd2d06bca Add a todo 2019-02-25 00:27:27 +01:00
Dave Halter 5a2e3ee8e3 Filter self names in a more correct way, fixes #1275 2019-02-25 00:26:34 +01:00
Dave Halter 8ac7d1fdb6 Use the internal parse function to avoid UnicodeDecodeError in mixed, fixes #1277 2019-02-24 19:56:17 +01:00
Dave Halter 0bf8a69024 v13.3 release notes 2019-02-24 18:45:07 +01:00
Dave Halter 9bb8f335c9 A small improvement for environments
see comment in https://github.com/davidhalter/jedi/commit/8d313e014fa15eaec9fae38080ff19d462bfdf1e
2019-02-22 01:04:01 +01:00
Dave Halter 8d313e014f Check for specific Python versions first on unix, see davidhalter/jedi-vim#870 2019-02-22 00:34:03 +01:00
Dave Halter a79d386eba Cleanup SameEnvironment and use the same logic for creation in virtualenvs 2019-02-22 00:24:55 +01:00
Dave Halter 48b137a7f5 Revert "Remove an used function"
This reverts commit efd8861d62.
2019-02-21 17:54:01 +01:00
Dave Halter b4a4dacebd Fix embedded Python with Jedi (see comments in source code), fixes davidhalter/jedi-vim#870 2019-02-21 10:19:28 +01:00
Dave Halter efd8861d62 Remove an used function 2019-02-21 10:16:17 +01:00
Dave Halter 2f86f549f5 Improve an error message, see #1279 2019-02-16 04:32:03 +01:00
Dave Halter e3d5ee8332 Don't use a while loop in py__iter__ 2019-01-25 20:09:27 +01:00
Dave Halter 3c201cc36c Fix power operation for Python 2 2018-12-25 00:59:00 +01:00
Dave Halter f6983d6126 Add an empty init file for Python 2 2018-12-25 00:53:26 +01:00
Dave Halter 1c80705276 Fix power operation, fixes #1268 2018-12-25 00:51:22 +01:00
Dave Halter d3f205f634 Split up the typeshed file 2018-12-25 00:21:44 +01:00
Dave Halter b542b17d93 Remove old todo list for annotations 2018-12-24 21:44:54 +01:00
Dave Halter 59c7623769 Move annotation pep0484 file (about anontations) to gradual folder 2018-12-24 17:48:21 +01:00
Dave Halter e2ab4c060f Move all the gradual typing stuff into one folder 2018-12-24 17:40:47 +01:00
Dave Halter 025b8bba76 Fix a unicode path issue 2018-12-23 16:29:25 +01:00
Dave Halter 5e7ff808d4 Fix f-string evaluation, fixes #1248 2018-12-23 15:32:37 +01:00
Dave Halter 86fbf3fef6 Fixed a string deprecation warning, fixes #1261 2018-12-22 22:49:23 +01:00
Dave Halter 24174632d4 Fix some bugs of the last few commits 2018-12-22 22:08:54 +01:00
Dave Halter 1065768c77 Use ContextualizedNode instead of Node in get_calling_nodes
This improves working with these nodes by a lot.
2018-12-22 14:55:37 +01:00
Dave Halter ca784916bb Fix get_modules_containing_name 2018-12-22 14:33:24 +01:00
Dave Halter fcda3f7bc5 Properly handle no __getitem__ on CompiledObject 2018-12-20 00:34:15 +01:00
Dave Halter fcda62862c Fix calculate_dotted_path_from_sys_path. It was broken beyond stupid. 2018-12-18 09:30:49 +01:00
Dave Halter 881ffadb5c Python 3.7 was not disabled in the right way for travis 2018-12-16 19:24:10 +01:00
Dave Halter 7b20ad7749 Make a doctest simpler that only led to issues in the past 2018-12-16 19:22:17 +01:00
Dave Halter ddef626e66 Disable Python 3.7 on travis again for now 2018-12-16 19:17:46 +01:00
Dave Halter 50399935c9 Revert "Get rid of the fancy magic of preinstalling Python versions"
This reverts commit b561d1fc17.
2018-12-16 19:15:53 +01:00
Dave Halter 57587f71ab Make it possible that tests work also on Windows 2018-12-16 19:09:08 +01:00
Dave Halter b561d1fc17 Get rid of the fancy magic of preinstalling Python versions 2018-12-16 18:58:04 +01:00
Dave Halter ed90a69e2c Clone appveyor submodules recursively 2018-12-16 18:57:26 +01:00
Dave Halter 3703c43d62 Testing the nightly should use a more modern Python version 2018-12-16 18:27:47 +01:00
Dave Halter 30c2e64d9e py__name__ does not need to be defined 2018-12-16 18:24:10 +01:00
Dave Halter af12789762 Try to fix the appveyor config 2018-12-16 18:20:00 +01:00
Dave Halter 9bf2b9f6e4 Add Python 3.7 to appveyor 2018-12-16 18:18:00 +01:00
Dave Halter 50edd82268 Add 3.7 to to travis config 2018-12-16 18:16:50 +01:00
Dave Halter babf074448 Sometimes os_path_join is really too slow :( 2018-12-16 17:58:44 +01:00
Dave Halter 9d3043ee39 Cloning typeshed should be possible without git write access 2018-12-16 17:40:41 +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 af51c9cc33 Fix Python 3 with Python 2 environment issues 2018-12-16 17:13:02 +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 ba0d71bef1 Simplify tox.ini 2018-12-16 15:53:21 +01:00
Dave Halter add33f5f80 Fix grammar cache problems, because multiple grammars were potentially loaded 2018-12-16 13:14:05 +01:00
Dave Halter 79189f243a Upgrade typeshed version 2018-12-16 00:13:54 +01:00