jsii icon indicating copy to clipboard operation
jsii copied to clipboard

Generated python modules are too large for some IDEs to support

Open RomainMuller opened this issue 4 years ago • 2 comments

The generated code for Python modules can be large enough to have IDEs refuse to process them (e.g: for IntelliSense support) unless the user tweaks some advanced parameters of their IDE.

In particular, we have reports of JetBrains IDEs (PyCharm, etc...) require tweaking idea.max.intellisense.filesize in order to enjoy code completion from the IDE with the aws_cdk.aws_ec2 module, as it is larger than the 2500 bytes limit that is the default.

In order to address this, the modules should be broken down into smaller files.

While this is certainly possible, doing so requires care, as it could lead to causing import cycles.

RomainMuller avatar Feb 02 '22 13:02 RomainMuller

Just for reference and to help others, that found this issue via a search engine: For changing this property in IntelliJ Idea refer to: https://www.jetbrains.com/help/idea/tuning-the-ide.html#common-platform-properties

Go to Help | Edit Custom Properties I had to set idea.max.intellisense.filesize to more than 6000

frankwese avatar Mar 01 '24 12:03 frankwese

When will his be fixed?

adriandelgg avatar Jun 27 '24 03:06 adriandelgg