1
0
forked from VimPlug/jedi
Commit Graph

387 Commits

Author SHA1 Message Date
Dave Halter baacb5ec0d Trying to use the import machinery to import jedi/parso in python3.4+
The problem was that adding stuff to sys.path is simply very risky, because it already caused import issues (because enum was installed in 2.7). It was bound to cause other issues
2018-01-21 15:25:59 +01:00
Dave Halter fef594373a Better reporting of internal errors 2018-01-20 22:56:51 +01:00
Dave Halter 41b24ab46b Better error handling for subprocesses
I don't really understand why this wasn't an issue before, but it looks like we have to
catch both IOError and and socket.error in Python2.
2018-01-20 22:56:26 +01:00
Dave Halter 94ce54e776 Merge with master again
Some bugs were still present in master
2018-01-20 21:45:55 +01:00
Dave Halter d986c44b94 Merge with master
The deprecation of Python2.6 and the insertion of environments made it quite difficult to merge.
2018-01-20 19:32:59 +01:00
Dave Halter 16b463a646 Refactor to avoid having unicode decode errors by default 2018-01-19 19:23:11 +01:00
Dave Halter 19b3580ba7 Get rid of some potential issues when using pandas interactively
The issue was that the python_object passed in was not hashable. Since it's not
used anyway and it doesn't make sense there, just ignore it.

Fixes #916, #875
2018-01-18 19:54:20 +01:00
Dave Halter 263989c0ab Add a comment about why the project is None in the subprocess 2018-01-17 19:12:58 +01:00
Dave Halter 4e4f75c882 evaluate.project doesn't exist anymore. Eliminated code that used it 2018-01-17 19:11:20 +01:00
Dave Halter 9b5e3447d9 Make the new project API fully work in tests 2018-01-17 09:54:11 +01:00
Dave Halter fe813292cf Try to migrate to the new project API 2018-01-16 23:56:35 +01:00
Dave Halter 2a0e8f91d3 A possible introduction for projects 2018-01-15 23:57:08 +01:00
Hugo 8cf708d0d4 Remove redundant parentheses 2018-01-07 10:40:06 +02:00
Dave Halter db1a4415b3 Some tests that involved jedi were actually a bit wrong and only worked in certain environments. 2018-01-05 00:48:40 +01:00
Dave Halter bcb3f02a01 If a subprocess gets killed by an OOM killer or whatever it should respawn and raise an InternalError 2018-01-02 00:56:22 +01:00
Dave Halter 7ff6871548 Merge Subprocess and CompiledSubprocess 2018-01-02 00:33:30 +01:00
Dave Halter 927aa2bd91 Try to recover from errors that are happening in subprocesses 2018-01-02 00:24:15 +01:00
Dave Halter 7de04fb28d Move the module name searching to the subprocess 2017-12-29 21:10:00 +01:00
Dave Halter a1051bd5f2 Better display of descriptors 2017-12-29 03:29:08 +01:00
Dave Halter 52298510ed Fixing more py27 stuff 2017-12-29 02:02:34 +01:00
Dave Halter 59c44fe499 Use force_unicode for all sys paths 2017-12-29 01:28:23 +01:00
Dave Halter 05b2906dcc Some more small improvements for Python 2 2017-12-28 23:58:19 +01:00
Dave Halter ba81aa16a2 Use unicode in way more cases 2017-12-28 23:19:17 +01:00
Dave Halter d1d4986667 Eliminate is_py3 usages 2017-12-28 01:55:39 +01:00
Dave Halter 6b6795c40c Don't use python_version directly on evaluator anymore 2017-12-28 01:44:59 +01:00
Dave Halter a8d3c46e9d Refactor some things regarding Python 2 support 2017-12-27 02:09:58 +01:00
Dave Halter 8a82a5237d Casting to str is not necessary 2017-12-26 15:32:25 +01:00
Dave Halter ab42e856fb Use unicode in compiled access 2017-12-26 03:24:26 +01:00
Dave Halter c3483344fe Refactor allowed_getattr_callback a bit to not raise random errors. 2017-12-24 12:55:32 +01:00
Dave Halter 993b0973c5 The default of one function was not actually used 2017-12-24 12:12:27 +01:00
Dave Halter 4a366ab728 Refactor a bit and force unicode in some places and use an appropriate function name for it 2017-12-24 04:05:02 +01:00
Dave Halter 085a9e0e33 More unicode conversions 2017-12-24 03:46:33 +01:00
Dave Halter ee099a4ff7 Don't use getattr, use the abstractions 2017-12-24 03:39:28 +01:00
Dave Halter 40f1354f67 More unicode conversions 2017-12-24 03:35:15 +01:00
Dave Halter 5a06ea2699 Start using a lot more unicode literals for Python 2 2017-12-24 03:11:28 +01:00
Dave Halter a38acdbe08 Use unicode sys paths always 2017-12-24 02:42:14 +01:00
Dave Halter 7bfca5bcd7 Don't cast bytes to strings when unpickling 2017-12-23 21:18:04 +01:00
Dave Halter 87666d72a1 Move the import logic to the subprocess 2017-12-23 17:59:56 +01:00
Dave Halter 96a67f9a4c Start using the correct parser for each environment 2017-12-19 19:19:35 +01:00
Dave Halter 6780eba157 Fix sys_path propagation for builtins load_module 2017-12-18 20:16:58 +01:00
Dave Halter fe3e8a0867 Refactor environments a bit 2017-12-17 18:47:28 +01:00
Dave Halter c3efde3bfa Add an optimization around compiled dir() 2017-12-14 22:28:22 +01:00
Dave Halter 9d094b68f3 Cache the subprocess results 2017-12-14 22:23:59 +01:00
Dave Halter e03afc60ef Make get_repr static in access. 2017-12-13 19:16:29 +01:00
Dave Halter 0acb7dcb18 There was a bug in creating modules in a subprocess 2017-12-12 18:08:49 +01:00
Dave Halter b196c6849b Don't try to pickle ellipsis 2017-12-11 20:55:34 +01:00
Dave Halter 3a7bc92863 Use builtins_module instead of BUILTINS 2017-12-10 18:52:51 +01:00
Dave Halter afb73876ac Don't use the pickler modification anymore. That doesn't work in other python versions and was in general a bit hard to do 2017-12-10 18:39:03 +01:00
Dave Halter aa7319dba5 Remove the last test failures. 2017-12-09 17:38:45 +01:00
Dave Halter 649225333f Get the subprocess mostly working 2017-12-08 09:44:12 +01:00