Commit Graph
100 Commits
Author SHA1 Message Date
Dave Halter d06e55aab5 The sys path might be lazy or not in a venv 2018-07-10 10:07:18 +02:00
Dave Halter cef769ecd8 The encoding parameter should be used again (includes test), fixes #1167 2018-07-09 18:25:28 +02:00
Dave Halter aa4dcc1631 Remove source_encoding from documentation (see #1167) 2018-07-09 18:12:27 +02:00
Dave Halter a59e5a016f Actually use the fast_parser setting again 2018-07-05 21:31:03 +02:00
Dave Halter 37a40d53a8 Use an import name list as long as possible 2018-07-05 18:11:58 +02:00
Dave Halter d8c0d8e5d2 Different _load_module API 2018-07-05 10:15:49 +02:00
Dave Halter 508ed7e5b8 Directly load modules if possible, with this it's not necessary anymore to use dotted_from_fs_path, also fixes #1013. 2018-07-05 10:03:05 +02:00
Dave Halter a12d62e9c9 Don't mutate the sys.path. This is pretty nasty bug that fixes #1148 2018-07-04 08:40:05 +02:00
Dave Halter 2500112f6c Don't follow builtin imports anymore by default when follow_imports is on (goto) 2018-07-04 00:01:03 +02:00
Dave Halter 6cdc1bcd8a Add a changelog entry for the include_builtins change 2018-07-03 23:00:46 +02:00
Dave Halter 80831d79c2 additional_module_paths in usages never actually worked 2018-07-03 22:54:47 +02:00
Dave Halter d857668292 Add include_builtins to usages, fixes #1131. 2018-07-03 22:53:19 +02:00
Dave Halter f4aad8bbfe Finally make it possible to use auto_import_modules for packages
This means that you can now write 'from gi.repository import Gtk' and Gtk completions work.

It also means that other libraries could be used like that for speed or other reasons.

Fixes #531
2018-07-03 00:58:43 +02:00
Dave Halter 5b7984c4d4 Test auto_import_modules in a very basic way 2018-07-02 09:57:18 +02:00
Dave Halter 2b1cbe4d42 Fix a bug about fstring completion 2018-07-02 01:26:17 +02:00
Dave Halter 8ffdf6746f Comprehensions are also possible arguments. Fixes 1146 2018-07-01 03:33:24 +02:00
Dave Halter a79a1fbef5 Merge branch 'parso' 2018-06-30 14:27:30 +02:00
Dave Halter 58141f1e1e Don't use requirements for now, and use the git version instead in tox 2018-06-30 14:14:52 +02:00
Dave Halter e0e2be3027 Add a better comment about why people need to upgrade parso 2018-06-29 18:17:29 +02:00
Dave Halter 1e7662c3e1 Prepare release of 0.12.1 2018-06-29 18:10:41 +02:00
Dave Halter 68974aee58 Don't use internal parso APIs if possible 2018-06-29 10:04:03 +02:00
Dave Halter c208d37ac4 Remove code that is no longer used, because parso was refactored. 2018-06-29 09:56:56 +02:00
Dave Halter 38474061cf Make jedi work with the next parso release 2018-06-29 09:54:57 +02:00
Dave Halter 5dab97a303 Add an error message, see also #1139. 2018-06-07 21:01:41 +02:00
Dave Halter e2cd228aad Dict comprehension items call should now work, fixes #1129 2018-06-07 21:00:23 +02:00
Dave Halter 62a3f99594 Fix a wrong branch check, fixes #1128 2018-06-01 08:59:16 +02:00
Dave Halter 6ebe3f87a3 Drop 3.3 tests from travis
They are causing only problems now that Python3.3 is deprecated. See e.g. https://travis-ci.org/davidhalter/jedi/jobs/381881020.
Also as a solution approach: https://github.com/davidhalter/jedi/pull/1125.
2018-05-23 11:24:39 +02:00
Dave Halter 50812b5836 A simple yield should not cause an error, fixes #1117 2018-05-23 11:12:19 +02:00
Dave Halter a95274d66f None/False/True are atom non-terminals in the syntax tree, fixes #1103 2018-05-01 23:43:49 +02:00
Dave Halter 8d48e7453a When searching submodules, use all of __path__, fixes #1105 2018-05-01 23:17:42 +02:00
Dave Halter 91499565a9 Specially crafted docstrings sometimes lead to errors, fixes #1103 2018-04-25 21:04:05 +02:00
Dave Halter ba96c21f83 Follow up from the last async issue, fixes more related things about #1092. 2018-04-24 01:02:31 +02:00
Dave Halter 8494164b22 Fix an async funcdef issue, fixes 1092. 2018-04-24 00:41:18 +02:00
Dave Halter 4075c384e6 In some very rare cases it was possible to get an interpreter crash because of this bug. Fixes #1087 2018-04-23 21:26:51 +02:00
Dave Halter 0bcd1701f0 Start using our own monkeypatch function for some things 2018-04-23 21:26:51 +02:00
Dave Halter 88243d2408 Don't catch IndexError where we don't have to 2018-04-20 01:46:32 +02:00
Dave Halter bd7c65d963 Finally fix all the get_system_environment issues 2018-04-15 16:43:53 +02:00
Dave Halter fe0ad8f1da Fix a test 2018-04-15 16:23:29 +02:00
Dave Halter a21d77e8ad There's really no bin/activate needed for an environment to work 2018-04-15 16:15:20 +02:00
Dave Halter ed2a0a8218 Document get_sys_path and change the signature of get_system_environment a bit 2018-04-15 16:12:07 +02:00
Dave Halter 22b0c0f1fe Rework the time cache. 2018-04-15 15:51:16 +02:00
Dave Halter a972d49e88 Cache default environment 2018-04-15 15:28:05 +02:00
Dave Halter bcd05f560e Require parso 0.2.0 at least 2018-04-15 14:06:21 +02:00
Dave Halter c7c95e7e6d Set a release date 2018-04-15 13:54:27 +02:00
Dave Halter 9dece93c13 Don't install the latest pip version anymore in appveyor
It caused problems. Somehow appveyor (or pip?) changed something. By removing
the update mechanism it all works again. I don't really see why we need to
update anyway, so I guess I'm fine with how it is now.

Passing:
https://ci.appveyor.com/project/davidhalter/jedi/build/32

Not Passing anymore:
https://ci.appveyor.com/project/davidhalter/jedi/build/36
2018-04-15 13:40:26 +02:00
Dave Halter d2f9e83b25 Fix some references 2018-04-15 12:55:33 +02:00
Dave Halter 28004a9ed9 Mention Virtualenv support in readme and features 2018-04-15 12:18:17 +02:00
Dave Halter 92cd9a30e2 Title case for Mänu :) 2018-04-15 12:12:32 +02:00
Dave Halter a711c29b59 Better overview over functions in the documentation 2018-04-15 12:11:06 +02:00
Dave Halter b531b6f4fd A small docs correction 2018-04-15 11:56:24 +02:00
Dave Halter 97b5dd9312 Remove the old static analysis stuff. It was never really used 2018-04-15 11:53:07 +02:00
Dave Halter 7b15c70551 Fix a lot of old docs code that doesn't exist anymore 2018-04-15 11:52:45 +02:00
Dave Halter 698d50b65b Remove the old parser documentation (that's now part of parso) 2018-04-15 11:42:34 +02:00
Dave Halter 940a8c7c9c Don't call it the plugin API anymore, that's confusing 2018-04-15 11:35:58 +02:00
Dave Halter 9465eb7881 Reorder some functions 2018-04-15 11:30:35 +02:00
Dave Halter bb979a040d Adda lot of environment documentation to sphinx 2018-04-15 11:25:46 +02:00
Dave Halter 336087fcf8 find_python_environments -> find_system_environments 2018-04-14 15:46:16 +02:00
Dave Halter 45fb770033 A small refactoring 2018-04-14 15:38:32 +02:00
Dave Halter 9f07e7e352 Remove from_executable, were not really using it, yet. 2018-04-14 15:13:02 +02:00
Dave Halter 43ab9563e2 For the second time in a row it's called creationflags not creation_flags 2018-04-14 11:06:24 +02:00
Dave Halter db21942c61 Refactor something small 2018-04-14 01:48:52 +02:00
Dave Halter 737154d657 Remove an unnecessary else 2018-04-14 01:47:17 +02:00
Dave Halter 81771264e0 CREATE_NO_WINDOW was introduced in Python 3.7 and didn't exist before 2018-04-13 22:05:08 +02:00
Dave Halter fac773a60d The SameEnvironment should not load by default if it's a portable
find_python_environments should only find Python versions if they are actually installed on the system. If people copy virtualenvs around etc. it will find nothing instead.
2018-04-13 21:53:06 +02:00
Dave Halter 8af4fc5728 Do binary comparisons to get virtualenvs working and not just venvs 2018-04-13 21:45:07 +02:00
Dave Halter ed80ed9437 Use the correct parameter name for creation flags 2018-04-13 19:04:53 +02:00
Dave Halter 83d635cbac Add a way to generalize Popen 2018-04-13 10:17:30 +02:00
Dave Halter 81623c6b5d Check the windows environments in a better way 2018-04-12 14:26:17 +02:00
Dave Halter 27419be56d Fix some issues with the latest changes 2018-04-12 14:24:18 +02:00
Dave Halter b8e879bc53 DefaultEnvironment -> SameEnvironment 2018-04-12 09:00:19 +02:00
Dave Halter f4317dadc4 Better docs for Environment 2018-04-12 08:59:18 +02:00
Dave Halter bf0169480d Some docstrings 2018-04-12 08:58:06 +02:00
Dave Halter 5bb3b8c122 Make the Environment clearly non-public 2018-04-12 08:56:07 +02:00
Dave Halter 9ac7182fea Make some names public 2018-04-12 08:52:24 +02:00
Dave Halter 93a28c4230 Make sure Windows environments are safe 2018-04-12 08:50:31 +02:00
Dave Halter 323a85db7c Fix the module_name issue again 2018-04-10 21:27:47 +02:00
Dave Halter 1c91cfa9d6 Write a test for #1079 to avoid a regression in the future. 2018-04-10 19:23:20 +02:00
Dave Halter 9b17be9ecf Cleanup some of the module cache stuff 2018-04-10 19:16:18 +02:00
Dave Halter 81aa70b168 Merge branch 'master' of github.com:davidhalter/jedi 2018-04-10 09:19:55 +02:00
Dave Halter 764b67d232 Multiple inheritance completion in Python 2 did not work
Fixes #1071.
2018-04-10 08:58:30 +02:00
Dave Halter 777d9defc5 Give the run.py script an environment parameter 2018-04-10 08:42:58 +02:00
Dave Halter b74ba7cd01 Fix an import 2018-04-09 01:47:31 +02:00
Dave Halter 519f54321e Merge the environment changes for Windows 2018-04-09 01:43:57 +02:00
Dave Halter f4c14864a5 Better tests for venvs 2018-04-09 01:28:43 +02:00
Dave Halter 81d8c49119 Write a test for venvs 2018-04-08 23:04:57 +02:00
Dave Halter 0c19219143 Obviously Python 3 syntax cannot be used in Python 2 2018-04-08 21:38:03 +02:00
Dave Halter aa9f7fd304 Update the changelog about f-strings 2018-04-08 01:38:09 +02:00
Dave Halter 7fca4c332d Use the latest parso version from master. 2018-04-07 16:06:29 +02:00
Dave Halter 806ae13b71 Better goto definition for fstrings 2018-04-07 12:40:52 +02:00
Dave Halter ec1c6e1e4d Fix an issue around the new grammar 2018-04-05 09:52:08 +02:00
Dave Halter 567c8b8097 Fix some fstring issues for now 2018-04-05 01:11:04 +02:00
Dave Halter af956d70a3 Make a few modifications to always use the latest environment available. 2018-04-04 09:53:23 +02:00
Dave Halter 6b75519145 Better tests for fstrings 2018-03-31 18:38:09 +02:00
Dave Halter 43df60ff7d With the changes in parso, f-strings are now completable
Parso now uses one syntax tree for f-strings and the classic syntax tree.
2018-03-31 17:51:27 +02:00
Dave Halter 27655db8a9 With the changes in parso, f-strings are now completable 2018-03-31 17:07:47 +02:00
Dave Halter 538996d8d3 Fix lambda dynamic param searches, fixes #1070 2018-03-25 23:54:43 +02:00
Dave Halter f5ba6de38c Cleanup the namespace lookups so that it also works for Python 3.7 2018-03-25 23:25:23 +02:00
Dave Halter a6b47141cc Add a note about the fixed Windows tests in the changelog 2018-03-24 23:27:14 +01:00
Dave Halter 49235f8910 Add micbou to AUTHORS 2018-03-24 23:25:49 +01:00
Dave Halter 73d0506fb0 Add a badge for AppVeyor. Running tests for Windows 2018-03-24 23:16:08 +01:00