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
Dave Halter
106573f20d
Merge branch 'master' of github.com:davidhalter/jedi
2018-03-23 00:57:40 +01:00
Dave Halter
c8bb41662e
Merge the windows fixes
2018-03-23 00:55:23 +01:00
micbou
2283b67836
Specify executable extension to detect virtual environment on Windows
2018-03-22 23:17:23 +01:00
Dave Halter
4e5cbe8832
Some code cleanup
2018-03-20 01:40:16 +01:00
Dave Halter
e6a3a8882c
Fix another error that surfaced in pandas
2018-03-20 01:04:00 +01:00
Dave Halter
a61742728b
Fix an issue with docstrings that contain errors
2018-03-20 00:56:53 +01:00
Dave Halter
5c06d9871a
Somehow forgot about subscriptlist. Just ignore those for now.
...
Fixes #1010 .
2018-03-18 17:24:45 +01:00
Dave Halter
6042706922
Fix the first issue in #1010
...
Somehow it was still possible with lists to recurse.
2018-03-18 17:09:44 +01:00
Dave Halter
1672613d04
colorama should always color, even if it's not a shell
...
I need this for some_script.py | less -R
2018-03-18 01:05:59 +01:00
Dave Halter
60da6034c0
Fix some code_lines issues
2018-03-17 19:41:26 +01:00
Dave Halter
094affaf84
Remove stdout/stderr from subprocesses (redirected to /dev/null)
...
This means that the subprocess should now not crash anymore because of people
writing to stdout in c modules and stderr should be empty.
Fixes #793 .
2018-03-17 14:14:00 +01:00
Dave Halter
90a226f898
All modules now have a code_lines attribute, see #1062
2018-03-16 10:20:26 +01:00
Dave Halter
1eeb7cb6aa
And now remove a pep0484 function that is no longer needed
2018-03-14 21:51:06 +01:00
Dave Halter
053618edd0
Some more code to a function
2018-03-14 21:49:17 +01:00