Spyder: Tab-completion of keyword arguments makes paranthesis

Created on 15 Apr 2020  路  4Comments  路  Source: spyder-ide/spyder

Problem Description

If I press to autocomplete a keyword, instead of an = I get a () as a suggestion

What steps reproduce the problem?

def test(argument=True):
    pass

# now write
test(argu<tab>

# expected
test(argument=

# instead
test(argument()

This worked fine in previous version. Is this a bug on my side?

  • Spyder version: 4.1.2
  • Python version: 3.7
  • Operating System name/version: Win 10
Code Completion Editor Bug

Most helpful comment

I checked out the error in PyLS, and it seems that this is fixed by upgrading jedi to 0.17. So this issue should be fixed when PR https://github.com/spyder-ide/spyder/pull/12792 is merged.

jedi

All 4 comments

I am facing the same issue.
Spyder 4.2.0.dev0 (Commit: 755acb75f)
Python 3.7.7 64-bit | Qt 5.9.6 | PyQt5 5.9.2 | Linux 5.4.0-26-generic

I can confirm this bug.

Screen Shot 2020-05-04 at 22.29.37.png

I think this is a bug in the PyLS.

@steff456, please take a look at this one.

I checked out the error in PyLS, and it seems that this is fixed by upgrading jedi to 0.17. So this issue should be fixed when PR https://github.com/spyder-ide/spyder/pull/12792 is merged.

jedi

Was this page helpful?
0 / 5 - 0 ratings