Dave Halter
cc331d62e0
Get closer to fixing a lot of issues with the completion for repl.
2016-05-15 14:26:22 +02:00
Dave Halter
4e93fb344b
Dict.values is working now on dict literals.
2015-12-27 23:53:56 +01:00
Dave Halter
03eaf8455f
Dict comprehensions are working partially.
2015-12-27 17:20:49 +01:00
Dave Halter
eb2e41f771
Grammar versioning has now a smoother interface.
2015-12-25 19:30:25 +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
9a93d599da
Fix: __module__ doesn't need to be properly defined.
2015-12-20 02:35:23 +01:00
Dave Halter
7141158484
Merge master into linter.
2015-12-15 12:28:38 +01:00
ColinDuquesnoy
6e3b5dfb23
Add memoize_function to cache and use it in fake.get_faked
...
The previously added test should now pass.
Fix #591
2015-12-13 20:10:09 +01:00
Dave Halter
8d3be10270
Fix issues in Python 2.7.
2015-12-10 17:20:21 +01:00
Dave Halter
1189868593
Use CheckAttribute descriptor more in CompiledObject to avoid duplicate code.
2015-12-10 16:43:42 +01:00
Dave Halter
5087584fdc
evaluator is now used only as an attribute in CompiledObject.
2015-12-10 16:40:56 +01:00
Dave Halter
9e8da17688
Remove py__class__ evaluator param from representation objects.
2015-12-10 16:39:27 +01:00
Dave Halter
afb1d6c3b8
Remove evaluator param from py__call__.
2015-12-10 16:20:46 +01:00
Dave Halter
506d5a4f31
Remove evaluator param from py__bases__.
2015-12-10 16:16:30 +01:00
Dave Halter
98b1845784
Remove evaluator param from py__mro__.
2015-12-10 16:12:43 +01:00
Dave Halter
3a975db0d7
Get completely rid of get_index_types.
2015-12-10 04:41:21 +01:00
Dave Halter
e23f453a11
Fix all remaining issues from the compiled refactoring except static analysis.
2015-12-10 01:48:08 +01:00
Dave Halter
86037222b4
Fix: stdlib issues with the latest CompiledObject changes.
2015-12-10 00:02:06 +01:00
Dave Halter
c9a5caa96e
Fix: dicts lookups were not working in all cases.
2015-12-08 22:37:30 +01:00
Dave Halter
bef5fca516
Refactor compiled.CompiledObject so it always owns an evaluator instance.
2015-12-08 02:19:33 +01:00
Dave Halter
21faf2431a
Added isinstance type checks in the linter.
2015-12-03 16:14:26 +01:00
Dave Halter
8daa0b8784
Introduce an additional node parameter for py__iter__ which helps static analysis.
2015-12-03 11:52:54 +01:00
Dave Halter
37c21726e7
Fix: py__iter__ in dynamic list/set usages with empy params.
2015-12-01 18:35:12 +01:00
Dave Halter
306d274a3d
Merge dev into linter.
2015-11-10 21:52:18 +01:00
Dave Halter
ee51b0a62f
More issues from the list of types to set of types conversion.
2015-10-30 10:32:17 +01: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
844a011193
Replacing the types list with a types set. Some tests are failing, though.
2015-10-13 18:03:36 +02:00
Dave Halter
3ac8f02841
Type tests and implementation for functions.
2015-07-01 14:54:23 +02:00
Dave Halter
93500c3f72
Merge pull request #578 from squidarth/554_support_enumerate
...
Added in support for autocompleting `enumerate`.
2015-05-04 18:46:47 +02:00
Sid Shanker
20061fcf2e
Added in support for autocompleting enumerate.
...
Resolves #554
2015-05-04 00:19:14 -07:00
Dave Halter
126f490f1e
Modules have now the name __main__ if they contain dots.
2015-04-28 17:29:42 +02:00
Dave Halter
cbd3a8a59a
Restructured loading of compiled __init__ files.
2015-04-28 02:30:32 +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
df9452f210
Trying to change the import logic completely. We now have a sys.modules like cache.
2015-04-20 14:47:33 +02:00
Dave Halter
74779f1a5d
Test and preparations for better call signatures with builtins, see #515 .
2015-04-10 03:05:38 +02:00
Dave Halter
79caa2186e
list(open().read()) should work now, fixes #412 .
2015-04-09 00:46:31 +02:00
Dave Halter
8b1c033fc4
Remove old commented code.
2015-03-06 11:22:38 +01:00
Dave Halter
eb146adcc1
Modules that are not importable shouldn't cause Jedi to stop working (just issue a warning). Fixes #468 , #71 .
2015-03-06 11:13:04 +01:00
Dave Halter
0ceadf69a3
Fake objects don't need an ExprStmt for the docstring anymore.
2015-03-05 14:24:19 +01:00
Dave Halter
1520ebf557
Fixed an issue with ArrayInstances that were using name lookups, which it doesn't have.
2015-03-03 02:39:02 +01:00
Dave Halter
a998c36fa3
Fix an attribute error in static analysis code.
2015-02-26 14:40:33 +01:00
Dave Halter
6e5ba3de87
Fix remaining issue siwh the Param refactoring.
2015-02-11 01:40:18 +01:00
Dave Halter
8125d5f562
Remove asserts and calculate them dynamically.
2015-02-05 20:16:55 +01:00
Dave Halter
cf223a71f5
Add a position modifier for the fast parser. Not yet in use though.
2015-01-15 13:57:56 +01:00
Dave Halter
26ecb16e5f
CompiledObject.type resembles now the Node.type values.
2015-01-09 01:33:59 +01:00
Dave Halter
144c20579b
Get rid of get_defined_names in compiled modules.
2015-01-08 17:53:20 +01:00
Dave Halter
a20fd12de9
Remove all scope_names_generator usages.
2015-01-08 13:24:01 +01:00
Dave Halter
ec76d57679
Start using names_dicts for completion as well.
2015-01-07 01:49:38 +01:00
Dave Halter
9178d314b0
Add search_global to names_dicts calls.
2015-01-06 15:30:59 +01:00
Dave Halter
9de4a5479c
Start using names_dicts instead of scope_names_generator.
2015-01-01 23:27:03 +01:00