Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RomainMuller opened this issue Feb 2, 2022 · 2 comments
Open
Labels
effort/large Large work item – several weeks of effort feature-request A feature should be added or improved. language/python Related to Python bindings p1

Comments

@RomainMuller
Copy link
Contributor

RomainMuller commented Feb 2, 2022

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.

@frankwese
Copy link

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

@adriandelgg
Copy link

When will his be fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort/large Large work item – several weeks of effort feature-request A feature should be added or improved. language/python Related to Python bindings p1
Projects
None yet
Development

No branches or pull requests

3 participants