Dave Halter
4653c30fa4
Use the PathFinder, because the FileFinder doesn't work without suffixes
...
This feels more like importlib was intended to be used anyway.
2018-01-21 23:52:44 +01:00
Dave Halter
7fcbf7b5f0
Create the importer stuff Python2.7 and 3.3
2018-01-21 15:46:40 +01:00
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
20d64cf2b3
Fix issues with a recent refactoring
2018-01-20 21:21:58 +01:00
Dave Halter
9c0b344962
Small mistake when opening a file
2018-01-20 20:30:44 +01:00
Dave Halter
1476551257
Add better error reporting for potential issues
2018-01-20 19:33:47 +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
877383b110
Add a test to avoid encoding issues. Fixes #1003
2018-01-20 18:28:29 +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
c1394a82b5
Better error reporting, see #944
2018-01-18 19:12:32 +01:00
Dave Halter
609f59ce41
Fix issues with random tuples in TreeArgument.
...
Thanks @micbou for noticing it.
b92c7d3351
2018-01-18 09:54:19 +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
9b4abeac4e
Remove the old project
2018-01-17 09:55:53 +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
Dave Halter
b92c7d3351
Some cleaning up of code
2018-01-13 18:59:03 +01:00
micbou
3a0ac37ee8
Fix error when using generators with variable-length arguments
2018-01-13 18:56:34 +01:00
Hugo
cc623218e5
Replace function call with set literal
2018-01-07 10:40:06 +02:00
Hugo
8cf708d0d4
Remove redundant parentheses
2018-01-07 10:40:06 +02:00
Hugo
a7ac647498
Remove redundant character escape
2018-01-07 10:40:06 +02:00
Hugo
7821203d8e
Use automatic formatters
2018-01-07 10:40:05 +02:00
Hugo
7c31ea9042
Drop support for EOL Python 2.6
2018-01-07 10:40:05 +02:00
Dave Halter
f36f5ec234
Merge with master
2018-01-06 12:31:29 +01: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
b716fb7dc6
Use the parser to check for certain namedtuple features
...
This fixes tests that are used with python 2 but a different environment
2017-12-30 04:41:19 +01:00
Dave Halter
7de04fb28d
Move the module name searching to the subprocess
2017-12-29 21:10:00 +01:00
Dave Halter
ed57f6172f
Correct the two last unicode issues
2017-12-29 12:59:06 +01:00
Dave Halter
2ba46759fc
Some repr went crazy
2017-12-29 03:58:02 +01:00
Dave Halter
95bf858669
Make it more clear for debugging where dynamic search ended
2017-12-29 03:54:12 +01:00
Dave Halter
d7de3f3fec
Fix pep0484 comments
2017-12-29 03:29:29 +01:00
Dave Halter
a1051bd5f2
Better display of descriptors
2017-12-29 03:29:08 +01:00
Dave Halter
35158f693d
Remove some of the last py27 errors that were caused in combination with 3.6
2017-12-29 02:45:11 +01:00
Dave Halter
ec9b8e8c02
Forgot to cast a map to a list
2017-12-29 02:39:35 +01:00
Dave Halter
52298510ed
Fixing more py27 stuff
2017-12-29 02:02:34 +01:00
Dave Halter
b4f301e082
More unicode literals
2017-12-29 01:42:22 +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
4b72a89379
There were a few bugs in the previous commit
2017-12-28 23:25:09 +01:00
Dave Halter
ba81aa16a2
Use unicode in way more cases
2017-12-28 23:19:17 +01:00
Dave Halter
5755d5a4ee
Use unicode always for getting special objects
2017-12-28 22:41:20 +01:00
Dave Halter
2d3b15b485
Fix potential issues with py2 analysis
2017-12-28 02:19:42 +01:00