aws / jsii

jsii allows code in any language to naturally interact with JavaScript classes. It is the technology that enables the AWS Cloud Development Kit to deliver polyglot libraries from a single codebase!
https://aws.github.io/jsii
Apache License 2.0
2.59k stars 243 forks source link

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

Open RomainMuller opened 2 years ago

RomainMuller commented 2 years ago

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 commented 4 months ago

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 commented 3 weeks ago

When will his be fixed?