Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ValueError with cmdline call signatures #431

Merged

Conversation

blueyed
Copy link
Collaborator

@blueyed blueyed commented Jun 26, 2015

Commit 8016665 (PR #360) escaped the newlines in text, which requires to use the
escaped version with text.index and len, too.

This fixes the following error:

Traceback (most recent call last):
  File "…/jedi/jedi_vim.py", line 110, in wrapper
    return func(*args, **kwargs)
  File "…/jedi/jedi_vim.py", line 414, in cmdline_call_signatures
    left = text.index(params[index])
ValueError: substring not found

/cc @wilywampa (author of PR #360)

Commit 8016665 escaped the newlines in `text`, which requires to use the
escaped version with `text.index` and `len`, too.

This fixes the following error:

    Traceback (most recent call last):
      File "…/jedi/jedi_vim.py", line 110, in wrapper
        return func(*args, **kwargs)
      File "…/jedi/jedi_vim.py", line 414, in cmdline_call_signatures
        left = text.index(params[index])
    ValueError: substring not found
@blueyed blueyed added the bug label Jun 26, 2015
davidhalter added a commit that referenced this pull request Jul 1, 2015
Fix ValueError with cmdline call signatures
@davidhalter davidhalter merged commit b3978bc into davidhalter:master Jul 1, 2015
@davidhalter
Copy link
Owner

Thanks @blueyed! Please test @wilywampa.

@wilywampa
Copy link
Contributor

This was definitely needed and works.

@blueyed blueyed deleted the fix-valueerror-cmdline-callsigs branch July 1, 2015 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants