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
Dave Halter
5a3ee02399
Use ExprStmt pretty much everywhere where it should be used.
...
ExprStmt is now really a normal statement. All the other statements are from now on considered legacy code. As a side effect this increases the parser pickling version.
2014-09-06 11:13:58 +02:00
Dave Halter
42d6b57599
precedence._is_string -> precedence.is_string
2014-09-04 14:13:26 +02:00
Dave Halter
7b2e11d71b
Rewrote sys_path._paths_from_assignment.
2014-09-04 14:12:10 +02:00
Dave Halter
8006d6f190
Change implementation of StatementElement.
...
Instead of having both next and execution as attributes, we now only have next, because it's an execution if there's an array.
2014-08-18 22:25:55 +02:00
Dave Halter
08f7a439c0
merged dev and linter
2014-07-17 23:17:49 +02:00
Dave Halter
3264a1815e
Merge pull request #407 from hattya/dev
...
fix virtualenv support
2014-07-02 21:16:51 +04:30
Dave Halter
718df569ea
memoize sys_path modifications
2014-06-25 15:04:48 +02:00
Mathias Fussenegger
bf43fcf1c6
detect buildout and add buildout eggs to sys.path
2014-06-18 18:30:11 +02:00
Akinori Hattori
9f3542903d
fix virtualenv support
2014-05-08 18:09:05 +09:00
Dave Halter
240b0c9581
NamePart doesn't have an __eq__ method anymore
2014-04-18 14:36:10 +02:00
Dave Halter
fdabca20e9
fix get_code method for Operator (still ugly, though)
2014-02-26 22:23:21 +01:00
Dave Halter
682e1c2708
debug.dbg and debug.warning now take a string and format args parameters to make debugging a little bit cleaner
2014-01-13 16:16:07 +01:00
Dave Halter
9523e70a71
sys_path stuff has its own module, now.
2014-01-05 13:07:37 +01:00