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

Bug: Error: The runtime 'provided.al2023' is unsupported. (golang) #7139

Closed
aallbrig opened this issue Jun 6, 2024 · 6 comments
Closed

Bug: Error: The runtime 'provided.al2023' is unsupported. (golang) #7139

aallbrig opened this issue Jun 6, 2024 · 6 comments

Comments

@aallbrig
Copy link

aallbrig commented Jun 6, 2024

Description:

I'm seeing "Error: The runtime 'provided.al2023' is unsupported." when trying to run my golang lambda function in Intellij IDEA.

Screenshot 2024-06-06 at 9 34 57 AM

I made sure I have the latest AWS toolkit plugin and am on the latest version of SAM.
Screenshot 2024-06-06 at 9 33 21 AM
Screenshot 2024-06-06 at 9 31 39 AM

Just trying to get debug breakpoints hitting from my lambda function on my M2 macbook pro. I realize being on ARM may be why I was having previous issues: #5412

Steps to reproduce:

Screenshot 2024-06-06 at 9 30 51 AM Followed from https://aws.amazon.com/blogs/compute/migrating-aws-lambda-functions-from-the-go1-x-runtime-to-the-custom-runtime-on-amazon-linux-2/

Observed result:

Screenshot 2024-06-06 at 9 34 57 AM

Expected result:

Able to debug my golang based lambda function via jetbrains IDEA on my M2 macbook pro

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

{
  "version": "1.118.0",
  "system": {
    "python": "3.8.13",
    "os": "macOS-13.6-arm64-arm-64bit"
  },
  "additional_dependencies": {
    "docker_engine": "26.1.1",
    "aws_cdk": "Not available",
    "terraform": "1.5.7"
  },
  "available_beta_feature_env_vars": [
    "SAM_CLI_BETA_FEATURES",
    "SAM_CLI_BETA_BUILD_PERFORMANCE",
    "SAM_CLI_BETA_TERRAFORM_SUPPORT",
    "SAM_CLI_BETA_RUST_CARGO_LAMBDA"
  ]
}

@aallbrig aallbrig added the stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. label Jun 6, 2024
@aallbrig
Copy link
Author

aallbrig commented Jun 6, 2024

Would love some detailed instructions on getting breakpoints breaking when running golang based lambda functions on M2 macbook. For now, I've downgraded back to intel based MBP 2020 so I can have the pain free debugging experience using go.1 runtime but seems like I'll have to migrate to provided.al or provided.al2023 anyways. I'd love to get back to my M2 MBP if possible.

Has anyone been able to get their golang based lambda functions working locally with breakpoints on an ARM based laptop?

@hnnasit
Copy link
Contributor

hnnasit commented Jun 6, 2024

Hi @aallbrig, provided.al2023 runtime for golang is support by SAM CLI. We also have init templates for this runtime. The issue seems to be originating from the intellij toolkit side. I am not able to transfer the issue, but could you close this issue and open the issue on the aws jetbrains toolkits repository?

@hnnasit hnnasit added area/debugging and removed stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. labels Jun 6, 2024
@aallbrig
Copy link
Author

aallbrig commented Jun 6, 2024

Sure!

@aallbrig
Copy link
Author

aallbrig commented Jun 9, 2024

Done: aws/aws-toolkit-jetbrains#4567

@hnnasit
Copy link
Contributor

hnnasit commented Jun 9, 2024

Thank you, closing this issue. Please open a new issue if you have questions or concerns the team can help with.

@hnnasit hnnasit closed this as completed Jun 9, 2024
Copy link
Contributor

github-actions bot commented Jun 9, 2024

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants