Dave Halter
62a3f99594
Fix a wrong branch check, fixes #1128
2018-06-01 08:59:16 +02:00
Dave Halter
50812b5836
A simple yield should not cause an error, fixes #1117
2018-05-23 11:12:19 +02:00
Daniel Hahler
6748faa071
Fix _get_numpy_doc_string_cls: use cache
...
I've noticed that Jedi tries to import numpydoc a lot when using
jedi-vim's goto method in jedi_vim.py itself (via printing in Neovim's
VimPathFinder.find_spec).
This patch uses the cache before trying the import again and again.
2018-05-06 10:54:49 +02:00
Maxim Novikov
fc14aad8f2
Fix namespace autocompletion error
2018-05-03 09:12:17 +02:00
Daniel Hahler
b94b45cfa1
Environment._get_version: add msgs with exceptions
2018-05-02 00:09:40 +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
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