Commit Graph

2793 Commits

Author SHA1 Message Date
David Halter
b08390c136 some parser end positions changed 2013-04-15 10:22:27 +04:30
David Halter
bafb17001b fix encoding problems with terminal 2013-04-13 15:57:28 +04:30
David Halter
eeb8e0e21d first test working again with new fast_parser 2013-04-13 13:50:50 +04:30
Danilo Bargen
fb96f9bf3d Missing semicolon in .travis.yml 2013-04-10 23:52:57 +02:00
Danilo Bargen
1a41f92a0d Added .coveragerc (refs #196) 2013-04-10 23:41:25 +02:00
Danilo Bargen
26cabd581c Added coverage report to README 2013-04-10 22:20:37 +02:00
Danilo Bargen
0b4e8e09a3 Merge pull request #198 from tkf/coveralls
Run coveralls task separately on travis-ci (fixes #196, refs #197)
2013-04-10 13:12:36 -07:00
David Halter
967d01d490 fast parser produces now trees that are correct 2013-04-10 23:50:39 +04:30
David Halter
5dd05eff1a a basic approach to the new fast parser 2013-04-10 22:33:49 +04:30
Takafumi Arakaki
944b3200a0 Fix allow_failures syntax
allow_failures.env requires a string when matrix/global is not used?
Also, indent is changed to fit with other entries.
2013-04-10 17:28:15 +02:00
Takafumi Arakaki
658bcb6421 Install coveralls only when needed 2013-04-10 17:23:50 +02:00
Takafumi Arakaki
8e4a76ca1b Allow TOXENV=cov to fail in travis-ci 2013-04-10 17:09:36 +02:00
Takafumi Arakaki
af22409059 Separate tox env for coverage check 2013-04-10 17:08:20 +02:00
Danilo Bargen
798136787f Configuration to run coveralls on py33 2013-04-10 16:30:32 +02:00
Danilo Bargen
be7cecef00 Typos in docs 2013-04-10 16:04:56 +02:00
Danilo Bargen
327a1ded17 Note about testing in README 2013-04-10 15:47:44 +02:00
Danilo Bargen
492a6c5704 Added specific "Programming Language" trove classifiers (fixes #194) 2013-04-05 11:18:53 +02:00
David Halter
3c73a744c3 Merge pull request #187 from Astrac/python-3.3
Python 3.3
2013-03-27 10:21:15 -07:00
Aldo Stracquadanio
124595de6e Making it nicer
Fixed typo in docstring and added some comments in find_module_py33

Removed a test that is not compatible with python 3.3

Better variable names in find_module implementation(s)

Removed variable assignation in favor of direct return statement
2013-03-27 10:49:43 +00:00
Aldo Stracquadanio
0b67a08e48 Using PathFinder rather than find_loader to correctly handle paths
Using PathFinder rather than find_loader to correctly handle from ... import ...

Moved away from find_loader in favour of PathFinder also when using sys.path
2013-03-27 10:49:21 +00:00
Aldo Stracquadanio
07ec134bc9 Adding python 3.3 to test environment, mani fixes
Added python 3.3 to test-suite

Removed unused import

Removed unused import

Migrated to EAFP for attribute checking

Bumped version of ModulePickling for migration to hashlib

Added py33 environment to tox

Fixed issue with package importing on python 3.3
2013-03-27 10:48:56 +00:00
Aldo Stracquadanio
3ef564847d Simplified code for readability
Splitted import compatibility function definition for better readability

Simplified code for python 3.3 load_module implementation
2013-03-27 10:48:26 +00:00
Aldo Stracquadanio
be8ef33b69 Fixed caching issues
Fixed exception raised during cache reading

Switched cache hashing to hashlib

In python 3.3 the hash function is returning different hashes during
different executions of the application.
2013-03-27 10:48:13 +00:00
Aldo Stracquadanio
de849fbe8a Fixed follow_definition test 2013-03-27 10:48:12 +00:00
Aldo Stracquadanio
d481a7aae4 Created find_module helper to handle compatibility with python 3.3
Moved package checking logic in follow_str function

Created find_module compatibility helper method

Conditional implementation of load_module for python 3.3
2013-03-27 10:47:29 +00:00
David Halter
a99d9541bd on the way to a better fast_parser - improved a lot of the positioning stuff 2013-03-24 22:51:17 +04:30
David Halter
6c998067e8 Merge pull request #177 from tkf/Generator-object-has-no-attribute-start_pos
Generator object has no attribute start_pos (added a failing test)
2013-03-21 11:06:21 -07:00
David Halter
6c65eaf14d Merge pull request #186 from tkf/versioned-cache
Remove old version of FS cache automatically
2013-03-20 09:05:37 -07:00
Takafumi Arakaki
aca1cbfa4b Use "jedi/cpython-27" instead of "jedi/2.7" for FS cache 2013-03-20 16:46:55 +01:00
Takafumi Arakaki
27d007adba Compare version using "!="
Cache is not forward compatible.
2013-03-20 12:21:22 +01:00
Takafumi Arakaki
942b66ba5b Separate directory for each Python version 2013-03-20 12:21:22 +01:00
Takafumi Arakaki
f8d3339f2f Remove old version of FS cache automatically 2013-03-20 12:21:22 +01:00
David Halter
960dd38e2c Merge pull request #185 from tkf/cPickle
Use cPickle if available
2013-03-19 21:32:22 -07:00
Takafumi Arakaki
8734e0efe2 Use cPickle if available 2013-03-19 20:33:15 +01:00
David Halter
09f39d891a remove __all__ from api, because not needed, fixes #180 2013-03-18 08:25:14 +04:30
Takafumi Arakaki
d1150cfdae List allowed attributes in Generator.__getattr__ 2013-03-17 13:56:54 +01:00
David Halter
8c1ccd2800 Merge pull request #182 from tkf/Fix-Completion.follow_definition
Fix Completion.follow_definition
2013-03-17 03:48:22 -07:00
David Halter
e8d34c574f Merge pull request #178 from tkf/no-duplicate-module
Add a test to make sure that the import hack works
2013-03-17 03:39:45 -07:00
David Halter
66fb7915c2 Merge pull request #179 from tkf/remove-known-failures-tag
Remove tags for known failures due to the import hack
2013-03-17 03:35:55 -07:00
Takafumi Arakaki
2cc6edfa7c Fix Completion.follow_definition 2013-03-16 22:57:31 +01:00
Takafumi Arakaki
6a2e535bcb Add er.Generator.__getattr__ 2013-03-16 21:50:05 +01:00
Takafumi Arakaki
c25ee531a2 AttributeError: 'Generator' object has no attribute 'start_pos'
Running py.test raises this error:
```tb
test/test_api_classes.py:50: in <module>
>   @pytest.mark.parametrize('definition', make_definitions())
test/test_api_classes.py:38: in make_definitions
>       definitions += script.definition()
jedi/api_classes.py:44: in wrapper
>       result = func(*args, **kwds)
jedi/api.py:274: in definition
>                   if not isinstance(s, imports.ImportPath._GlobalNamespace)])
jedi/api_classes.py:418: in __init__
>       super(Definition, self).__init__(definition, definition.start_pos)
E       AttributeError: 'Generator' object has no attribute 'start_pos'
```
2013-03-16 21:50:05 +01:00
Takafumi Arakaki
febc65be6f Skip test_no_duplicate_modules for jedi.__init__ 2013-03-16 21:28:27 +01:00
Takafumi Arakaki
4aac06eb86 Remove tags for known failures due to the import hack 2013-03-16 21:18:37 +01:00
Takafumi Arakaki
f5fee5f0df Fix wrong imports
- "from _compatibility import ..." (not in circular imports)
- "from jedi import builtin" (one of circular imports)
- "api_classes = api.api_classes"
  ("from jedi import api_classes" is not supported)
2013-03-16 21:03:34 +01:00
Takafumi Arakaki
07ba6658dd Add test_no_duplicate_modules 2013-03-16 20:44:00 +01:00
David Halter
df058b93c2 improve get_code of parsing_representation scopes 2013-03-16 23:26:20 +04:30
David Halter
841b0be19a improved parents in fast parser 2013-03-15 23:03:59 +04:30
David Halter
cd513590ab Merge pull request #176 from tkf/basedefinition-type
More detailed BaseDefinition.type (fixes #169)
2013-03-15 10:36:53 -07:00
David Halter
89b6741539 Merge pull request #175 from davidhalter/absolute-import
Use Absolute Imports
2013-03-15 10:35:28 -07:00