Dave Halter
13ba74515d
Catch parser errors instead of error recovery when splitting param comments
2018-03-14 09:49:59 +01:00
Dave Halter
afda309cb9
Merge branch 'function_comment' of https://github.com/wilfred/jedi into mypy-comments
2018-03-14 00:55:06 +01:00
Dave Halter
144a1def6c
Fix a few version issues in tests
2018-03-13 22:59:07 +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
Dave Halter
0dda740c5d
Add keyword argument test for #292
2018-03-13 19:09:33 +01:00
Dave Halter
d0b8f9e5a2
Fix an interpreter test in Python 2
2018-03-12 20:49:27 +01:00
Dave Halter
378a5846db
Clean up zombie subprocesses, fixes #1048
2018-03-12 20:06:02 +01:00
Dave Halter
5c1d979522
Fix an issue around __dir__ in the interpreter
...
Fixes #1027 .
2018-03-12 01:46:12 +01:00
Dave Halter
e0c682977c
Fix doctest for replstartup
2018-03-11 22:19:35 +01:00
Dave Halter
54a8db503d
Fix shell completion issues and documentation
...
This issue was raised in #990 . The completer was never used in Python3.4+,
because it was overwritten by Python's completer. Oddly enough it has always
worked in Python2.7/3.3.
The documentation was also slightly modified. os.path.join was always a
complex beast.
2018-03-09 22:39:00 +01:00
Dave Halter
c4be83759c
Merge branch 'master' of github.com:davidhalter/jedi
2018-03-08 10:09:08 +01:00
Dave Halter
51e0d5d12f
Fix issues with default parameters in functions and classes
...
Default parameters were resolved at the wrong starting position. Fixes #1044
2018-03-08 09:59:09 +01:00
Dave Halter
14ac6b11b9
Correct mistakes of lambda names
2018-03-08 09:52:35 +01:00
Dave Halter
23e7c5bd2a
eval_element -> eval_node
2018-03-07 20:11:19 +01:00
Dave Halter
a85f2d1049
Use the correct class for params when used in names. Fixes #1006
2018-03-07 09:59:31 +01:00
Dave Halter
72be3e5247
Get rid of a regex warning, where escaping was not properly used in a normal string
2018-03-05 10:56:27 +01:00
Dave Halter
9e9c62a5ab
Get rid of the imp library import in Python3 to avoid warnings, fixes #1001
2018-03-05 10:55:21 +01:00
Dave Halter
d063dadcf7
Don't need the tests from #122
2018-03-05 01:01:43 +01:00
Dave Halter
0144de1290
Refactor the namespace package tests
2018-03-05 00:55:35 +01:00
Dave Halter
074d0d6d07
Include __init__.py files in search for the project directory, fixes #773
2018-03-04 21:36:59 +01:00
Dave Halter
2885938e74
Add pytest cache to gitignore
2018-03-04 18:29:00 +01:00
Dave Halter
95d36473fc
Improve some documentation/a failing doctest
2018-03-04 18:29:00 +01:00
Dave Halter
d4af314b65
Fix the recursion error with globals
...
This generalizes the fix to actually fix a lot of potential recursion issues
with if_stmt.
2018-03-04 18:29:00 +01:00
Dave Halter
a3a39c0757
Always pop nodes in recursion detector
2018-03-04 18:29:00 +01:00
Dave Halter
c9a64bd1d3
Globals should be looked up with the same priority as other defined nodes.
2018-03-04 18:29:00 +01:00
Dave Halter
89c616a475
Add a few bits to the changelog
2018-03-02 08:59:28 +01:00
Dave Halter
4dc10e0d4b
Autocompletion in comments should at least not fail
...
Fixes #968
2018-03-01 08:57:32 +01:00
Dave Halter
cbcc95c671
Fix the last async issue
2018-02-28 23:47:59 +01:00
Dave Halter
2abcd0b6a6
Fix a few numpydocs tests
2018-02-28 23:44:50 +01:00
Dave Halter
3820111d1e
Fix some more await things
2018-02-28 23:30:20 +01:00
Dave Halter
dfa383c744
Fix a yield from test
2018-02-28 23:01:07 +01:00
Dave Halter
a41a4562d2
AbstractIterableMixin -> IterableMixin
2018-02-28 22:51:27 +01:00
Dave Halter
0d0213ee4c
Support generator returns when used with yield from.
2018-02-28 22:35:58 +01:00
Dave Halter
80ee3b8fcf
Show in a test that something doesn't work properly around async analysis
2018-02-27 18:19:46 +01:00
Dave Halter
6e24c120cf
A few documentation improvements
2018-02-27 18:06:47 +01:00
Dave Halter
eeacdc33a1
Try to make the whole Builtin overwriting more abstract
2018-02-26 23:09:18 +01:00
Dave Halter
8e26017a05
Fix a small remaining issue in Python 2
2018-02-21 01:38:30 +01:00
Dave Halter
4d980d8bd0
Reorder tests to make the async stuff pass on all python versions
2018-02-21 01:28:37 +01:00
Dave Halter
2d4636da5b
Fix for all python versions
2018-02-21 01:23:50 +01:00
Dave Halter
c1d06f4638
Getting more edget cases work in 3.6 for async
2018-02-21 01:11:59 +01:00
Dave Halter
de5d7961e8
Fix an issue with async for
2018-02-21 00:41:59 +01:00
Dave Halter
bc0210af70
Use the await method properly and just use it instead of some crazy things
2018-02-21 00:27:15 +01:00
Dave Halter
bf01b9d47c
Refactor the way builtins can be overwritten by jedi's own contexts
2018-02-21 00:09:41 +01:00
Dave Halter
5c8300e62a
Move all the asynchronous contexts to a separate module
2018-02-19 09:43:50 +01:00
Dave Halter
f1c2aef963
Fix the merge issues. Now async stuff should at least partially work
2018-02-19 01:35:37 +01:00
Dave Halter
8f4b68ae39
Merge the async branch
2018-02-18 13:45:08 +01:00
Dave Halter
98761f6994
Get rid of an unused import
2018-02-16 21:16:43 +01:00
Dave Halter
88f521ad82
Add the name always to the script module
2018-02-16 21:15:53 +01:00
Dave Halter
24adebb69d
Add the travere_parents function to a utility directory
2018-02-16 21:07:36 +01:00
Dave Halter
81a30d61d6
Fix Python 2 old-school relative imports
2018-02-16 20:53:31 +01:00
Dave Halter
5453566352
Use the project path as a prefix, because many times it's used as a higher priority than other stuff
2018-02-16 20:37:03 +01:00
Dave Halter
482b5e63db
Move the buildout_project stuff to a separate examples folder
2018-02-16 15:01:40 +01:00
Dave Halter
424b6ae907
Rename of buildout stuff
2018-02-16 14:56:49 +01:00
Dave Halter
ab212cb8aa
Small rename
2018-02-16 14:53:45 +01:00
Dave Halter
c23005f988
Use generators instead of complicated return of lists
2018-02-16 14:50:07 +01:00
Dave Halter
039e7ba07b
Some more sys path corrections.
...
The sys path should be defined more or less in the beginning and not be different for all modules
2018-02-16 14:39:01 +01:00
Dave Halter
6a11b7d89e
Generalize the use of smart import paths
...
Now a lot more parts of the current scripts path are used as a sys path.
2018-02-16 12:40:31 +01:00
Dave Halter
863fbb3702
Better handling of smart sys path
2018-02-16 11:57:58 +01:00
Dave Halter
30cfdee325
Some simplifications
2018-02-16 10:21:43 +01:00
Dave Halter
fa9364307f
Add comments to implicit namespaces and fix some minor things.
...
See #1005 .
2018-02-15 20:25:07 +01:00
Dave Halter
9177c120f4
Merge the implicit namespace improvement (pkgutils.itermodules modification)
...
There are still a few issues that need to be addressed.
2018-02-15 20:08:58 +01:00
Dave Halter
76df356628
Relative imports should be working again even when used in more special occasions. Fixes #973
...
There are more fixes needed. Some things are just very unclean and might lead to further bugs.
2018-02-15 14:10:01 +01:00
Dave Halter
276f2d0b52
parent_module is not needed for loading modules
2018-02-14 20:42:53 +01:00
Dave Halter
2a56323c16
Try to avoid CachedMetaClass for modules
2018-02-13 20:47:43 +01:00
Dave Halter
36699b77b2
DOn't check the parser cache, that's parso's responsibility
2018-02-13 19:19:00 +01:00
Dave Halter
a52b6edd01
Better module loading
2018-02-12 21:17:21 +01:00
Dave Halter
a33cbc8ae3
Try to put all module loading in one place including namespace packages
2018-02-12 20:49:45 +01:00
Dave Halter
9fec494e84
Unify load_module access
2018-02-12 20:39:42 +01:00
Dave Halter
514eaf89c3
Prepare a test to eventually solve a relative import problem
2018-02-12 20:33:48 +01:00
Dave Halter
26774c79fb
Add a module cache that has a bit more capabilites
2018-02-10 21:21:25 +01:00
Dave Halter
92c76537d6
print_to_stderr needs to be used with one argument
...
See #1010 .
2018-02-05 19:19:05 +01:00
Dave Halter
ac597815d7
Print errors that happen when importing certain objects
...
See also #1010 .
2018-02-04 23:50:28 +01:00
Dave Halter
1ca4d21359
Use unicode literals, to avoid potential issues
2018-02-04 00:55:45 +01:00
Dave Halter
a123d0ff3d
Merge branch 'master' of github.com:davidhalter/jedi
2018-02-03 23:28:57 +01:00
Dave Halter
fe0e41e9d6
Fix some more dict.get/dict.values stuff
2018-02-02 18:24:18 +01:00
Dave Halter
8028138e8c
Implememnt dict.values for FakeDict to avoid a recursion error. Fixes #1014 .
2018-02-02 09:34:40 +01:00
Dave Halter
e50609c48b
Add better error reporting
2018-02-01 09:58:28 +01:00
Dave Halter
a7e864638a
Use a better string
2018-02-01 01:21:59 +01:00
Dave Halter
2c945488b3
Add better debugging for an assert, see also #1010
2018-02-01 01:20:17 +01:00
Dave Halter
24b4e725b5
Make some things clearer about lazy contexts
2018-01-31 23:52:56 +01:00
Dave Halter
ebe8123b4c
Finding the autocompletion stack is a bit more complicated than I initially thought
...
Fixes #968 .
2018-01-31 08:45:01 +01:00
Dave Halter
522e7123ed
Move the ahead of time tests to the pep0526 file
2018-01-31 00:18:17 +01:00
Dave Halter
3ae0560f1c
Fix an issue where a default value was wrongly used
2018-01-31 00:11:30 +01:00
Dave Halter
2b9429be38
Update the ahead of time tests
2018-01-30 23:09:42 +01:00
Dave Halter
6b535c0503
Fix the last remaining issues with ahead of time annotations, see #982
2018-01-30 01:19:55 +01:00
Dave Halter
24561759f6
Fix a bug related to a wrong parametrization at one point
2018-01-30 01:17:09 +01:00
Dave Halter
d2c0de3eb0
Merge branch 'master' of https://github.com/johannesmik/jedi
2018-01-30 01:02:07 +01:00
Dave Halter
91d3c1f6d3
Force unicode on django paths
2018-01-30 00:40:50 +01:00
Dave Halter
60f89522a7
Forgot to add the examples folder
2018-01-30 00:08:17 +01:00
Dave Halter
c9fa335145
Fix a goto_assignments issue with a better internal API
...
Fixes #996 .
2018-01-29 08:58:59 +01:00
Dave Halter
82dc83e150
Merge remote-tracking branch 'origin/master' into virtualenv
2018-01-29 00:56:55 +01:00
Dave Halter
febe65f737
Disable predefined name analysis (if stmts) for all non-analysis tasks
...
It's really buggy and caused quite a few issues
2018-01-29 00:56:29 +01:00
Dave Halter
8149eabdf9
Remove something that obviously never happened
2018-01-28 20:56:04 +01:00
Dave Halter
1304b4f9e8
Reorder some open flags for Python 2
2018-01-26 01:31:47 +01:00
Dave Halter
fc458a3c2a
inspect.signature throws weird errors sometimes, just make it a bit simpler
...
Fixes #1031
2018-01-26 01:30:10 +01:00
Dave Halter
d44385c25e
Fix the implicit namespace test
2018-01-26 01:16:08 +01:00
Dave Halter
68f15c90ac
Undo most of the namespace changes and use module again
...
Is a module like every other module, because if you import an empty
folder foobar it will be available as an object:
<module 'foobar' (namespace)>.
See #1033 .
2018-01-25 20:51:55 +01:00
Dave Halter
04fba28d35
Differentiate between namespace and module as a type
...
Also fixed a bug related to implicit namespace contexts, fixes #1033 .
2018-01-25 20:35:54 +01:00
Dave Halter
33c9d21e35
Use Scripts for virtualenvs instead of bin for windows
...
Thanks @blueyed for the hint.
2018-01-25 19:55:10 +01:00