Dave Halter
ed43a68c03
Remove the precedence module in favor of the syntax tree module.
2017-09-27 19:09:30 +02:00
Dave Halter
a433ee7a7e
Move common to evaluate.utils.
2017-09-20 20:33:01 +02:00
Dave Halter
0c01a3b823
The sys.modules implementation did not work properly with newly created files.
...
Fixes #886 .
2017-09-20 10:06:02 +02:00
Dave Halter
e85000b798
Replace memoize_default with two nicer functions.
2017-09-05 18:46:16 +02:00
Dave Halter
ee6d68c3a8
Remove a get_definnition usage.
2017-09-02 17:59:09 +02:00
Dave Halter
b90589b62e
Some changes because parso has changed.
2017-05-22 15:42:42 -04:00
Dave Halter
f35f1b9676
Add the cache_path parameter to parso calls.
2017-05-20 10:08:48 -04:00
Dave Halter
9bca3d39f5
Actually use parso now instead of Jedi.
2017-05-19 14:20:14 -04:00
Dave Halter
a0b65b52c6
used_names -> get_used_names().
2017-04-12 08:56:11 +02:00
Dave Halter
6a9c2f8795
Start using ContextualizedNode for py__iter__.
2017-03-28 01:34:07 +02:00
Dave Halter
8a35a04439
Remove the module path from the parser tree.
...
Some static analysis tests are still failing.
2017-03-27 18:13:32 +02:00
Dave Halter
ac0d0869c9
Start using the parse function for caching as well.
2017-03-24 01:52:55 +01:00
Dave Halter
fb4cff8ef9
A small buildout script refactoring.
2017-03-23 14:22:27 -07:00
Dave Halter
26cce4d078
Add the grammar as an argument to saving the parser.
...
This makes collisions of different grammars when loading from the cache impossible.
2017-03-22 18:32:49 +01:00
Dave Halter
0f66a3c7a8
Remove the module attribute from the parser.
2017-03-18 03:53:34 +01:00
Dave Halter
448bfd0992
Move the python parser tree.
2017-03-16 17:20:32 +01:00
Dave Halter
7623b1e350
Removed tree.is_node.
...
It's not needed anymore, because we have Node/Leaf.type now.
2017-01-23 20:34:30 +01:00
Dave Halter
ae8e43d3c7
Move get_node() to tree_node and replace all the custom classdefs/funcdefs.
2017-01-05 23:43:12 +01:00
Dave Halter
5b9e5f96aa
Merge with master.
2017-01-02 13:05:45 +01:00
Dave Halter
ee1f077014
Some test refactorings.
2016-12-03 14:32:00 +01:00
Dave Halter
60234e68ca
Fixed sys path scanning again.
2016-11-29 18:28:28 +01:00
Daniel Hahler
f7f966805f
sys_path: prepend/prefer egg-link files
...
With `pip install -e` the generated .egg-link file gets preferred over
any normally installed distribution, and `pip uninstall` will first
remove the egg-link before the normal package.
2016-10-14 14:18:09 +02:00
Dave Halter
7ee08d01fd
Add a TODO.
2016-07-20 09:10:31 +02:00
Dave Halter
52c42c3392
Reenable call signature caching and move a lot of parser specific caching to the parser itself.
2016-06-28 08:46:29 +02:00
Claude
bf5acb4c7a
once more: python 3.5 uses atom_expr node in many places where previous python would use power node
2016-02-09 19:34:44 +01:00
Dave Halter
c4906e0e3f
Rework the parser so we can use arbitrary start nodes of the syntax.
...
This also includes a rework for error recovery in the parser. This is now just possible for file_input parsing, which means for full files.
Includes also a refactoring of the tokenizer. No more do we have to add an additional newline, because it now works correctly (removes certain confusion.
2015-12-20 22:25:41 +01:00
Dave Halter
cc3c538d9d
Merge branch 'buildout-unicode-decode-error' of https://github.com/mfussenegger/jedi into linter
2015-12-17 12:50:26 +01:00
Mathias Fussenegger
e0947a04eb
don't fail on UnicodeDecodeError in buildout script detection
...
This fixes #650
2015-12-13 21:50:09 +01:00
Dave Halter
76345c0b58
Final fixes for pure usage of py__iter__.
2015-12-04 00:15:48 +01:00
Dave Halter
9a2256f557
Fix issues with py__iter__types.
2015-12-02 07:11:36 +01:00
Dave Halter
306d274a3d
Merge dev into linter.
2015-11-10 21:52:18 +01:00
immerrr
cc139e8f70
evaluate.site: copy/adapt site-packages related functionality from stdlib
2015-10-26 13:03:42 +03:00
immerrr
da4dbe81a9
sys_path: order egg-link files for reproducible test results
2015-10-26 13:03:42 +03:00
immerrr
4eb3cf7921
Improve virtualenv support & egg-link resolution
...
- add sys_path= kwarg to Script & Evaluator constructors
- store sys_path for each evaluator instance
- replace get_sys_path with get_venv_path
- get_venv_path: use addsitedir to load .pth extension files
- get_venv_path: look for egg-link files in all directories in path
2015-10-26 13:03:42 +03:00
Dave Halter
22da402a7a
Replace the get_iterator_types function with a different interface, which enables Jedi to detect invalid for loop inputs that are not iterable.
2015-09-22 19:18:36 +02:00
Dave Halter
ef4b424cda
Replace pr with tree, #566 .
2015-04-28 01:34:31 +02:00
Dave Halter
06d134a7c1
Finished changing the import logic. The sys.path calculations within Jedi are clearer now.
2015-04-25 22:45:08 +02:00
Dave Halter
d04241b482
Goto should not include imports that cannot be followed.
2015-04-23 02:37:22 +02:00
Dave Halter
df9452f210
Trying to change the import logic completely. We now have a sys.modules like cache.
2015-04-20 14:47:33 +02:00
Mathias Fussenegger
67d9fbca81
run buildout detection only once per buildout script
...
in order to avoid running into the max recursion limit.
2015-04-09 08:51:25 +02:00
Dave Halter
a6c5d9f0a6
Merge branch 'add-egg-links-to-syspath-on-parser' of https://github.com/blueyed/jedi into dev
2015-03-06 01:06:17 +01:00
Dave Halter
d318d3c855
Fix a potential issue in sys path searching. However not tested. This is something that raised an error with sith that was not reproducible.
2015-02-26 13:56:28 +01:00
Daniel Hahler
8621aae73c
Add any .egg-link paths from VIRTUAL_ENV to sys.path
...
Adding test_get_sys_path required factoring out
`_get_venv_sitepackages`, because `sys.version_info` cannot be mocked
apparently.
2015-01-25 21:35:09 +01:00
Dave Halter
897c4cded6
Fix issues with sys.path modifications that directly assign the sys.path or use the slicing notation.
2014-12-10 19:18:53 +01:00
Dave Halter
9f45f18ad1
Added a grammar param to the parser.
2014-11-24 01:10:39 +01:00
Dave Halter
c152a1c58b
Actually replace tree with representation (in all the imports).
2014-11-23 19:46:52 +01:00
Dave Halter
fd16dfe2c7
Fix the first part of sys path checks.
2014-11-21 01:46:18 +01:00
Dave Halter
3add6e4289
Fix various bugs.
2014-09-26 12:22:56 +02:00
Dave Halter
f4c99259b5
Fix an issue with sys.path. Also moved the names closure for isinstance checks away (used for sys.path stuff) and use a get_code check instead, which is more flexible.
2014-09-25 12:35:53 +02:00
Dave Halter
b26f51ded2
Fix obvious UnboundLocalError.
2014-09-19 18:08:30 +02:00