Dave Halter
8a9202135b
Move import logic around a bit
2018-07-23 03:54:10 +02:00
Dave Halter
7711167052
Start enabling the Typeshed plugin, even though it doesn't do anything, yet.
2018-07-23 02:40:18 +02:00
Dave Halter
e7635b40d5
Remove some unused code
2018-07-22 18:02:53 +02:00
Dave Halter
f5cbb5de49
Some refactoring in the stdlib plugin
2018-07-22 03:49:36 +02:00
Dave Halter
2cd1ae73ed
Move stdlib content to the stdlib plugin
2018-07-22 03:45:02 +02:00
Dave Halter
061489ec9a
Move the stdlib executions into a plugin
2018-07-22 03:38:12 +02:00
Dave Halter
df55f62ad8
Add a plugin infrastructure
2018-07-21 15:03:05 +02:00
Dave Halter
7d2b7bb3c1
Add typeshed as a submodule
2018-07-21 09:50:25 +02:00
Dave Halter
4b276bae87
The import resolution for namespace packages was wrong
...
With this change we can now include all parents of the script, which will make
relative imports always work.
Now the whole meta_path is scanned and not just importlib's PathFinder.
Fixes #1183 .
2018-07-21 00:16:10 +02:00
Dave Halter
ad5170a37a
Add a way to use the interpreter environment for tests
2018-07-20 19:16:02 +02:00
Dave Halter
d292333dab
MergedExecutedParams -> DynamicExecutedParams
2018-07-18 10:02:57 +02:00
Dave Halter
a408fb3211
Fix a recursion error, fixes #1173
2018-07-18 10:01:41 +02:00
Dave Halter
3cabc4b969
Remove two recursion tests again that will belong into a commit at a point where it is not failing anymore
2018-07-17 18:34:42 +02:00
Dave Halter
fb360506fb
Don't merge params if it's just one param
2018-07-17 09:53:26 +02:00
Dave Halter
fe1799d125
Add a repr for AnonymousArguments
2018-07-17 09:48:27 +02:00
Dave Halter
733919e34c
Fix a doctest
2018-07-17 00:47:42 +02:00
Dave Halter
1e796fc08d
Environments are now always created on request
...
The issue was that if something changed about the environment (e.g. version
switch) or sys.path change, re-creating the environment was possible, but did
not involve the change. The environments have now a __del__ function that
deletes the subprocess after every time an Environment is garbage collected.
2018-07-15 17:49:17 +02:00
Dave Halter
f6bc166ea7
Add max line length 100 to the config for flake8
2018-07-13 09:25:51 +02:00
Dave Halter
3a62d54403
Don't test Python 3.3 on appveyor anymore, it's getting really hard to get all the right dependencies for it, because 3.3 is deprecated everywhere.
2018-07-12 21:21:40 +02:00
Dave Halter
748946349f
Mention that it's ok to have a line length of 100 characters in our files.
2018-07-12 21:18:54 +02:00
Dave Halter
71cea7200b
Don't use invalid escape sequences in regex, see https://github.com/davidhalter/jedi-vim/issues/843
2018-07-12 21:13:26 +02:00
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