Skip to content

Generated python modules are too large for some IDEs to support #3365

Open
@RomainMuller

Description

@RomainMuller

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/largeLarge work item – several weeks of effortfeature-requestA feature should be added or improved.language/pythonRelated to Python bindingsp1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions