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
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
8ffdf6746f
Comprehensions are also possible arguments. Fixes 1146
2018-07-01 03:33:24 +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
micbou
282c6a2ba1
Use highest possible pickle protocol
2018-06-23 14:45:34 +02:00
micbou
70c2fce9c2
Replace distutils.spawn.find_executable with shutil.which
...
The distutils.spawn.find_executable function is not available on stock system
Python 3 in recent Debian-based distributions. Since shutil.which is a better
alternative but not available on Python 2.7, we include a copy of that function
and use it in place of find_executable.
2018-06-07 21:07:22 +02:00
Dave Halter
5dab97a303
Add an error message, see also #1139 .
2018-06-07 21:01:41 +02:00
Daniel Hahler
b94b45cfa1
Environment._get_version: add msgs with exceptions
2018-05-02 00:09:40 +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
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
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
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
737154d657
Remove an unnecessary else
2018-04-14 01:47:17 +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
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
9b17be9ecf
Cleanup some of the module cache stuff
2018-04-10 19:16:18 +02:00
micbou
903bdf5fef
Fix virtual environment tests
2018-04-10 09:19:12 +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
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
106573f20d
Merge branch 'master' of github.com:davidhalter/jedi
2018-03-23 00:57:40 +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
60da6034c0
Fix some code_lines issues
2018-03-17 19:41:26 +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
5d36114be4
Use inspect.Parameter.kind for better differentiation between param types
...
Refs #292
2018-03-13 22:47:08 +01:00
Dave Halter
f9ec989835
Fix REPL completion param name completion
...
There were two issues:
1. The filter for parameters was wrong
2. In general the equal sign would not be added in some circumstances
2018-03-13 21:36:04 +01:00