Giter VIP home page Giter VIP logo

awesome-pycharm's Introduction

JetBrains team project Awesome

Awesome PyCharm

A curated list of resources for learning and using PyCharm, an IDE for Python.

Inspired by awesome-python.

Contents


Articles

Tutorials

Videos

English

Spanish

Portuguese

Plugins

  • Database and Frameworks
    • MongoDB Plugin for IntelliJ integrates MongoDB Servers with database/collections tree, Query Runner and Shell console. (2017-12-12)
    • JS GraphQL provides GraphQL support directly inside PyCharm.
  • Editor
    • CodeGlance provides a minimap for your editor, similar to Sublime.
    • Open in Splitted Tab adds a PyCharm command to open a definition in a new splitted tab.
  • Code Analysis
    • Sourcery provides a list of refactoring recommendations to simplify your codebase. [freemium]
    • Grazie provides grammar and advanced spell checking.
    • Python Security helps you spot security problems in libraries and code.
  • Integration
  • File Type Support
    • Requirements adds extra support for requirements.txt files.
    • Idealog views log files.
    • .ignore provides support for .gitignore and other ignore file lists.
    • .env support for .env environment variable definitions.
    • Pug template support plugin.
    • Extra Icons provides icons for a lot more file types.

Live Templates

  • Flask PyCharm Templates Collection of live templates to help you develop Flask web applications. (2017-10-08, Michell Stuttgart)

Themes

  • PyCharm Color Schemes Collection of themes adapted to use with this IDE. (2019-10-01, Michell Stuttgart)

Contributing

Your contributions are always welcome! Please take a look at the contribution guidelines first.

awesome-pycharm's People

Contributors

borisuvarov avatar kkinder avatar leonardofurtado avatar mstuttgart avatar obestwalter avatar pauleveritt avatar srijannnd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

awesome-pycharm's Issues

Class redefinition

Initial Code:

class A:
    def __init__(self):
        self.x = 0

    @staticmethod
    def parse(json: str) -> A:
        print('Executed')
        return A()

a = A()
a.parse('')

Problem (when run in Python):

Traceback (most recent call last):
File "c:\dev\test\python\t.py", line 1, in
class A:
File "c:\dev\test\python\t.py", line 6, in A
def parse(json: str) -> A:
NameError: name 'A' is not defined

Solution:

class A:
    pass

class A:
    def __init__(self):
        self.x = 0

    @staticmethod
    def parse(json: str) -> A:
        print('Executed')
        return A()

a = A()
a.parse('')

This solution solves the problem in Python, but create many others in PyCharm.

Still I think that it is a problem with Python - that only include a class name in available classes after parses the entire code of the class, instead of when the line with the class definition was found - I think that PyCharm would suppor it.

Problem with this solution in PyCharm:

Appear the messages in problems saying:

Redeclared 'A' defined above without usage

And sometimes:

Unresolved attribute reference 'x' for class 'A'

And there are no way to remove these messages.

It occurs because PyCharm uses the stub defined, instead of the full class defined after, to find properties and methods for the class, and, because it, PyCharm will point that method 'parse' is not defined and property 'x' is an unresolved attribute reference.

PyCharm would take the last class definition instead of the first one (the stub) as reference to find their properties and methods.

Copy + paste failed

Pycharm version:pycharm-community-2023.3.3
Hard Device: Linux version 3.10.0-693.el7.x86_64

I opened up Pycharm through terminal commad line: /path/to/pycharm/bin/.pycharm.sh

I want to copy texts from terminal and paste, however, it failed. I am wondering why this happed.

java.util.concurrent.CompletionException: java.lang.IllegalStateException: failed to create a child event loop

I am getting this error while trying to launch pycharm community 2020.3.4

Internal error. Please refer to https://jb.gg/ide/critical-startup-errors

java.util.concurrent.CompletionException: java.lang.IllegalStateException: failed to create a child event loop
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1702)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.IllegalStateException: failed to create a child event loop
at io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:88)
at io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:58)
at io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:47)
at io.netty.channel.MultithreadEventLoopGroup.(MultithreadEventLoopGroup.java:59)
at io.netty.channel.nio.NioEventLoopGroup.(NioEventLoopGroup.java:86)
at io.netty.channel.nio.NioEventLoopGroup.(NioEventLoopGroup.java:81)
at io.netty.channel.nio.NioEventLoopGroup.(NioEventLoopGroup.java:68)
at org.jetbrains.io.BuiltInServerKt.multiThreadEventLoopGroup(BuiltInServer.kt:144)
at org.jetbrains.io.BuiltInServerKt.access$multiThreadEventLoopGroup(BuiltInServer.kt:1)
at org.jetbrains.io.BuiltInServer$Companion.start(BuiltInServer.kt:54)
at org.jetbrains.io.BuiltInServer.start(BuiltInServer.kt)
at com.intellij.idea.SocketLock.lambda$lockAndTryActivate$2(SocketLock.java:171)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
... 7 more
Caused by: io.netty.channel.ChannelException: failed to open a new selector
at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:175)
at io.netty.channel.nio.NioEventLoop.(NioEventLoop.java:142)
at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:146)
at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:37)
at io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:84)
... 19 more
Caused by: java.io.IOException: Unable to establish loopback connection
at java.base/sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:94)
at java.base/sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:61)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/sun.nio.ch.PipeImpl.(PipeImpl.java:171)
at java.base/sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:50)
at java.base/java.nio.channels.Pipe.open(Pipe.java:155)
at java.base/sun.nio.ch.WindowsSelectorImpl.(WindowsSelectorImpl.java:142)
at java.base/sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:44)
at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:173)
... 23 more
Caused by: java.net.ConnectException: Connection timed out: connect
at java.base/sun.nio.ch.Net.connect0(Native Method)
at java.base/sun.nio.ch.Net.connect(Net.java:476)
at java.base/sun.nio.ch.Net.connect(Net.java:468)
at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:694)
at java.base/java.nio.channels.SocketChannel.open(SocketChannel.java:194)
at java.base/sun.nio.ch.PipeImpl$Initializer$LoopbackConnector.run(PipeImpl.java:127)
at java.base/sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:76)
... 31 more


Your JRE: 11.0.10+8-b1145.96 amd64 (JetBrains s.r.o.)
E:\PYCHARM\PyCharm Community Edition 2020.3.4\jbr
1

Error in debug

"C:\Program Files\Python39\python.exe" "C:\Program Files\JetBrains\PyCharm Community Edition 2020.3.5\plugins\python-ce\helpers\pydev\pydevd.py" --multiproc --qt-support=auto --client 127.0.0.1 --port 51159 --file C:/dev/test/python/fastapi/code/test.py
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.3.5\plugins\python-ce\helpers\pydev_pydevd_bundle\pydevd_console_integration.py", line 4, in
from code import InteractiveConsole
ImportError: cannot import name 'InteractiveConsole' from 'code' (C:\dev\test\python\fastapi\code_init_.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.3.5\plugins\python-ce\helpers\pydev\pydevd.py", line 45, in
from _pydevd_bundle.pydevd_comm import CMD_SET_BREAK, CMD_SET_NEXT_STATEMENT, CMD_STEP_INTO, CMD_STEP_OVER,
File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.3.5\plugins\python-ce\helpers\pydev_pydevd_bundle\pydevd_comm.py", line 91, in
from _pydevd_bundle import pydevd_console_integration
File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.3.5\plugins\python-ce\helpers\pydev_pydevd_bundle\pydevd_console_integration.py", line 6, in
from _pydevd_bundle.pydevconsole_code_for_ironpython import InteractiveConsole
File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.3.5\plugins\python-ce\helpers\pydev_pydevd_bundle\pydevconsole_code_for_ironpython.py", line 305
exec code in self.locals
^
SyntaxError: Missing parentheses in call to 'exec'

I don't know why he is trying to import Interactive console from my __init__.py

pyqt support

Hello jetbrain community, I am a software practitioner. I now hope that the pycharm software can add a function that I cannot name. I can only briefly explain its functional indicators. I am a pyqt developer and user myself. I often use pyqt to build some small tools that I use. But I hope that pyqt can play a role in pycharm. Just like django, pycharm can automatically create a project directory and the like. My simplest idea now is to add it to a new project, and pycharm can natively support such libraries and tool integration. Similar to qt creater. There may be some copyright issues, but I have no way of knowing, and I have no other way to gain access to the development community. I can only raise my own pull to ask questions. I think I can also support it in pycharm.

Why can't I rename file in Pycharm?

Please fix this:

I'm using the Pycharm Professional edition. I days ago, I remained file clicked on file then right clicked a mouse

>> Refactore >> Rename

Now, I can't rename files using the same way. Is there any other way to rename a file?

how to restore all windows when open pycharm again

I usually use 1 pycharm window for one project.

I need to shut down the computer every day.

Is there any way to restore all closed windows when I continue the work the next day?

I am using window10.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.