Skip to content

Fix #14: jedi>=0.10 compatibility#15

Merged
parente merged 4 commits intoadtech-labs:masterfrom
parente:fix-14-jedi-update
Mar 4, 2017
Merged

Fix #14: jedi>=0.10 compatibility#15
parente merged 4 commits intoadtech-labs:masterfrom
parente:fix-14-jedi-update

Conversation

@parente
Copy link
Contributor

@parente parente commented Mar 1, 2017

Standing on the shoulders of metakernel giants:
https://github.com/Calysto/metakernel/pull/129/files

(Thanks @blink1073)

path = UserContext(text, position).get_path_until_cursor()
path, dot, like = completion_parts(path)
before = text[:len(text) - len(like)]
interpreter = jedi.Interpreter(text, [self.env])
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if jedi is not available in the environment, isn't this going to raise a Type error? Something along the lines of None type has no attribute Interpreter. Perhaps this needs a if jedi is not None somewhere in here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a check further up in the function

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦‍♂️

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codecov
Copy link

codecov bot commented Mar 4, 2017

Codecov Report

Merging #15 into master will increase coverage by 0.03%.
The diff coverage is 88.88%.

@@            Coverage Diff             @@
##           master      #15      +/-   ##
==========================================
+ Coverage   85.24%   85.28%   +0.03%     
==========================================
  Files           6        6              
  Lines         427      428       +1     
==========================================
+ Hits          364      365       +1     
  Misses         63       63

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cf8e67a...7e9b041. Read the comment docs.

@parente parente merged commit 86658c5 into adtech-labs:master Mar 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants