question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Intellisense in PyCharm does not work correctly with current code structure

See original GitHub issue

Describe the bug This only applies to commands. Code argument suggestions are all off by one, because self is considered to be an argument (which it shouldn’t be). Additionally, should you Ctrl-click on a method, PyCharm takes you to the Commands class and you have to Ctrl-click again to get to the actual method. This isn’t a huge issue but it hinders development.

I am not sure if this is PyCharm-exclusive or something experienced by other IDEs but I suspect it is not exclusive.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jgd10commented, Jun 29, 2021

Combining my original comments into one coherent one:

Ctrl-Alt-Click and Ctrl-Alt-B do not take me to the method definition, they only go to the declaration exactly as Ctrl-click does and I should say I am using vanilla PyCharm for shortcuts.

Here is an additional image explaining the argument shifting more clearly:

image

self should not be highlighted as the first argument is npt.

0reactions
akaszynskicommented, Jun 29, 2021

Agreed, it’s more pythonic. It wasn’t clear what the self parameter was. I’m going to merge.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Code completion | PyCharm Documentation - JetBrains
Start typing a code construct and press Ctrl+Shift+Enter . PyCharm automatically completes the construct and adds the required punctuation. The caret is placed ......
Read more >
Code completion in Pycharm is not working properly
**If code completion doesn't work, this may be due to one of the following reasons:** 1.The Power Save Mode is on (File |...
Read more >
Editing Python in Visual Studio Code
Autocomplete and IntelliSense are provided for all files within the current working folder. They're also available for Python packages that are installed in ......
Read more >
Modern IDEs are magic. Why are so many coders still using ...
Most importantly for users who didn't start coding in the last five ... that works even if my terminal isn't configured quite right...
Read more >
Meet Android Studio | Android Developers
Android Studio is the official Integrated Development Environment (IDE) for ... identify and correct problems with the structural quality of your code.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found