Commit Graph

5514 Commits

Author SHA1 Message Date
Dave Halter
60f89522a7 Forgot to add the examples folder 2018-01-30 00:08:17 +01:00
Dave Halter
c9fa335145 Fix a goto_assignments issue with a better internal API
Fixes #996.
2018-01-29 08:58:59 +01:00
Dave Halter
82dc83e150 Merge remote-tracking branch 'origin/master' into virtualenv 2018-01-29 00:56:55 +01:00
Dave Halter
febe65f737 Disable predefined name analysis (if stmts) for all non-analysis tasks
It's really buggy and caused quite a few issues
2018-01-29 00:56:29 +01:00
Dave Halter
8149eabdf9 Remove something that obviously never happened 2018-01-28 20:56:04 +01:00
Dave Halter
1304b4f9e8 Reorder some open flags for Python 2 2018-01-26 01:31:47 +01:00
Dave Halter
fc458a3c2a inspect.signature throws weird errors sometimes, just make it a bit simpler
Fixes #1031
2018-01-26 01:30:10 +01:00
Dave Halter
d44385c25e Fix the implicit namespace test 2018-01-26 01:16:08 +01:00
Dave Halter
68f15c90ac Undo most of the namespace changes and use module again
Is a module like every other module, because if you import an empty
folder foobar it will be available as an object:
<module 'foobar' (namespace)>.

See #1033.
2018-01-25 20:51:55 +01:00
Dave Halter
04fba28d35 Differentiate between namespace and module as a type
Also fixed a bug related to implicit namespace contexts, fixes #1033.
2018-01-25 20:35:54 +01:00
Dave Halter
33c9d21e35 Use Scripts for virtualenvs instead of bin for windows
Thanks @blueyed for the hint.
2018-01-25 19:55:10 +01:00
Daniel Hahler
6bab112bb7 test/completion/imports.py: fix typo in comment 2018-01-25 07:57:43 +01:00
Dave Halter
68f840de60 Refactor django path support 2018-01-24 19:13:05 +01:00
Dave Halter
e4559bef51 Fix project path finding 2018-01-23 20:30:27 +01:00
Dave Halter
e6f934de11 Add a repr for Project
Also remove setstate from it, since we intend to serialize it with json.
2018-01-23 19:21:50 +01:00
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
ddafe41bb6 Another merge with master 2018-01-20 22:01:57 +01:00
Dave Halter
98a3da674c Ahhh another bug... A bit stupid of me not to run the tests 2018-01-20 22:00:41 +01:00
Dave Halter
fc315108f0 Get rid of a cwd to tmpdir, because with the subprocess it doesn't behave the same depending on which tests you run first 2018-01-20 21:56:56 +01:00
Dave Halter
d3a5025635 Hopefully the last merge with master 2018-01-20 21:48:55 +01:00
Dave Halter
256f001480 Another small issue in the tests 2018-01-20 21:47:31 +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
27a3be3b42 Merge a commit that adds the build folder to the ignored paths 2018-01-20 20:38:56 +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
2b577fcd5c Clarity 2018-01-17 19:24:08 +01:00
Dave Halter
d61aa50399 Remove the get_default_project caching 2018-01-17 19:23:30 +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
bf0b6741aa At the moment, don't allow projects as an input to script 2018-01-17 09:57:58 +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
9b9587a9dd Refactor to make configuratios of sys paths easier 2018-01-16 19:20:55 +01:00
Dave Halter
ddaf175b11 Use the evaluate.project sys path stuff for api.project 2018-01-16 10:03:28 +01:00
Dave Halter
c6240d5453 Cache the default project 2018-01-16 00:20:33 +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