Typing a closing a parenthesis no longer overwrites the auto-completed right parenthesis

I am not sure if this is a bug from a more recent version of PyCharm (at least since 2018.3.3 Professional Edition), and I also don't know if it is specific to SQL. 

When I type a left parenthesis, the closing right parenthesis always autocompletes. In the past, typing the closing right parenthesis would overwrite or skip over the already-existing right parenthesis. Now, however, typing a right parenthesis in this case only inserts an additional closing right parenthesis so I have to delete the extra. This only started occurring for me in the past few months, and it also happens for a colleague of mine. Further, it happens most, but not all, of the time. (e.g. if I open several parentheses, the closing parentheses do not pile up if I try closing them -- only the last one won't get overwritten)

3 comments
Comment actions Permalink

Hi Tim,

This behavior isn't reproduced for me in the latest PyCharm version (and actually never reproduced in all the previous versions I was using).

So, typing `(` would result in `()`

But typing `()` would also result in `()`

Instead of going on a wild goose chase through the settings, I suggest to temporarily rename your configuration directory (https://intellij-support.jetbrains.com/hc/en-us/articles/206544519), start PyCharm from scratch and try to reproduce the issue. After the test, rename the directory back to restore your settings.

1
Comment actions Permalink

Edit: Not sure what happened, but after renaming the configuration directory back to the original name, issue is resolved. Thanks again, Andrey!

 

Andrey, I really appreciate the suggestion. I gave it a shot and, surprisingly, it's still happening with completely reset settings. Maybe not a PyCharm specific issue? I'm pretty stumped.

 

0
Comment actions Permalink

Hmm, this indicates the issue indeed was in your settings, but unfortunately I can't find a good explanation. If you'll have a way to reproduce the issue, I would be grateful if you let us know.

0

Please sign in to leave a comment.