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
Dima Gerasimov
ceb5509170
Include function return type annotation in docstring if it is present
2018-04-23 21:20:21 +02:00
Dave Halter
88243d2408
Don't catch IndexError where we don't have to
2018-04-20 01:46:32 +02:00
micbou
5f37d08761
Extend create_environment to accept an executable path
...
Assume environments specified by the user are safe.
2018-04-19 21:36:44 +02:00
Daniel Hahler
aa6857d22d
check_fs: handle FileNotFoundError
...
Ref: https://github.com/davidhalter/jedi-vim/pull/801
2018-04-17 23:40:25 +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
d2f9e83b25
Fix some references
2018-04-15 12:55:33 +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
940a8c7c9c
Don't call it the plugin API anymore, that's confusing
2018-04-15 11:35:58 +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
9b17be9ecf
Cleanup some of the module cache stuff
2018-04-10 19:16:18 +02:00
micbou
cf5f06f378
Do not cache unimportable compiled module ( #1079 )
...
From the issue:
The issue can be reproduced by getting the description of the QtBluetooth module from PyQt5 on Windows:
import jedi
completions = jedi.Script('import PyQt5.QtBlueTooth').completions()
completions[0].description
It's hard to write a test for it so we don't write one for it.
2018-04-10 19:10:05 +02:00
Dave Halter
81aa70b168
Merge branch 'master' of github.com:davidhalter/jedi
2018-04-10 09:19:55 +02:00
micbou
903bdf5fef
Fix virtual environment tests
2018-04-10 09:19:12 +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
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
micbou
b3b6b798ff
Find Python environments on Windows using the registry
2018-04-08 19:04:11 +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
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
micbou
c6635ccc55
Properly raise broken pipe exception
2018-03-24 12:02:06 +01:00
Dave Halter
b5bc25fc0b
Fix another windows issue
2018-03-23 01:21:07 +01:00