davidji99 / terraform-provider-split

Terraform Split provider
https://registry.terraform.io/providers/davidji99/split/latest
Mozilla Public License 2.0
23 stars 8 forks source link

Running cdktf get is raising an error #198

Open timothypgny opened 2 weeks ago

timothypgny commented 2 weeks ago

Hi there,

Terraform Version

Run terraform -v to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.

root@231fb07b5460:/app# terraform -v
Terraform v1.8.1
on linux_arm64

Affected Resource(s)

Please list the resources as a list, for example:

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

cdktf get

Terraform Configuration Files

{
    "language": "python",
    "app": "poetry run python main.py",
    "terraformProviders": [ "davidji99/split@0.13.2"],
    "terraformModules": [],
    "codeMakerOutput": "imports",
    "context": {
        "excludeStackIdFromLogicalIds": "true",
        "allowSepCharsInLogicalIds": "true"
    },
    "projectId": "xyz"
}

Debug Output

Please provider a link to a GitHub Gist containing the complete debug output: https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the debug output in the issue; just paste a link to the Gist. Please MAKE SURE to mask any sensitive values.

root@231fb07b5460:/app/infrastructure# ../node_modules/.bin/cdktf get NOTE: Temp directory retained due to an error: /tmp/temp-7QaSct Error: jsii compilation failed with non-zero exit code: 1 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | !! !! | !! The 5.2 release line of jsii has reached End-of-Support. !! | !! We strongly recommend you upgrade to the current release line (5.4) at your earliest convenience. !! | !! !! | !! Other actively supported release lines include: !! | !! - 5.3 (planned End-of-Support date: 2024-10-15T00:00:00.000Z) !! | !! !! | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | [2024-07-02T15:17:43.649] [ERROR] jsii/compiler - Compilation errors prevented the JSII assembly from being created | warning JSII6: A "peerDependency" on "constructs" at "10.3.0" means you should take a "devDependency" on "constructs" at "10.3.0" (found "undefined") | warning JSII6: A "peerDependency" on "cdktf" at "0.18.2" means you should take a "devDependency" on "cdktf" at "0.18.2" (found "undefined") | warning JSII3: There is no "README.md" file. It is required in order to generate valid PyPI (Python) packages. | providers/split/user/index.ts:69:14 - error JSII1001: Non-primitive types without a symbol cannot be processed. | 69 public get 2Fa() { | ~ | providers/split/user/index.ts:69:15 - error TS1351: An identifier or keyword cannot immediately follow a numeric literal. | 69 public get 2Fa() { | ~~ +---------------------------------------------------------------------------------- | Command: /app/node_modules/jsii/bin/jsii --silence-warnings reserved-word | Workdir: /tmp/temp-7QaSct +---------------------------------------------------------------------------------- at p (/app/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:98:1581) at ChildProcess. (/app/node_modules/cdktf-cli/bundle/bin/cmds/handlers.js:101:112) at Object.onceWrapper (node:events:632:26) at ChildProcess.emit (node:events:517:28) at ChildProcess.emit (node:domain:489:12) at ChildProcess._handle.onexit (node:internal/child_process:292:12) ⠇ downloading and generating modules and providers... Error: jsii compilation failed with non-zero exit code: 1 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | !! !! | !! The 5.2 release line of jsii has reached End-of-Support. !! | !! We strongly recommend you upgrade to the current release line (5.4) at your earliest convenience. !! | !! !! | !! Other actively supported release lines include: !! | !! - 5.3 (planned End-of-Support date: 2024-10-15T00:00:00.000Z) !! | !! !! | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | [2024-07-02T15:17:43.649] [ERROR] jsii/compiler - Compilation errors prevented the JSII assembly from being created | warning JSII6: A "peerDependency" on "constructs" at "10.3.0" means you should take a "devDependency" on "constructs" at "10.3.0" (found "undefined") | warning JSII6: A "peerDependency" on "cdktf" at "0.18.2" means you should take a "devDependency" on "cdktf" at "0.18.2" (found "undefined") | warning JSII3: There is no "README.md" file. It is required in order to generate valid PyPI (Python) packages. | providers/split/user/index.ts:69:14 - error JSII1001: Non-primitive types without a symbol cannot be processed. | 69 public get 2Fa() { | ~ | providers/split/user/index.ts:69:15 - error TS1351: An identifier or keyword cannot immediately follow a numeric literal. | 69 public get 2Fa() { | ~~ +---------------------------------------------------------------------------------- | Command: /app/node_modules/jsii/bin/jsii --silence-warnings reserved-word | Workdir: /tmp/temp-7QaSct +----------------------------------------------------------------------------------

We have a few other providers and they are working fine. It is only the split provider that is causing issue above.

Panic Output

If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the crash.log.

Expected Behavior

What should have happened?

cdktf get command should return with python code generated so we can start using it.

Actual Behavior

What actually happened?

cdktf get command is raising an error

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. use cdktf.json above
  2. run cdktf.get to get error generated

Important Factoids

I am running this on my laptop.

References

Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example: