Aws-toolkit-jetbrains: Runtime is not filtered based on what the IDE supports/create function shows up even when there are no runtimes we can build for

Created on 11 Aug 2020  路  8Comments  路  Source: aws/aws-toolkit-jetbrains

Describe the bug
When creating a Lambda function, and when I choose any of the runtime languages (Ruby 2.5, Java, Go, NodeJs,) for the Runtime option, I am seeing, "Deploying using the runtime is not supported"

To reproduce

  1. Go to AWS Explorer and choose default config
  2. Right Click on 'Lambda
  3. Create new Lambda function
  4. In the Configuation Settings, enter all information except for Runtime
  5. After entering all the information, now select a runtime language.
  6. See Error

Expected behavior
I should be able to create the function without any issue.

Screenshots
Screen Shot 2020-08-11 at 12 36 38 PM

Your Environment

  • OS: Mac OS Catalina 10.15.6
  • JetBrains product: Rubymine
  • JetBrains product version: 2020.2
  • AWS Toolkit version: 1.17-202
  • SAM CLI version: SAM CLI, version 1.0.0
  • JVM/Python version: N/A

Additional context

bug

All 8 comments

@Kavin-Kannan We currently do not support Ruby (issue here: https://github.com/aws/aws-toolkit-jetbrains/issues/682). Can you take a screenshot of the java one?

@hunterwerlla Please see screenshot attached for Java runtimes as well.

Just to let you know, this is the issue for ANY runtime, not just for Ruby and Java.

Screen Shot 2020-08-11 at 3 48 58 PM
Screen Shot 2020-08-11 at 3 48 52 PM

@Kavin-Kannan Ah I missed that you are using Rubymine. This menu should not be available in Rubymine if you don't have any additional languages installed. We currently require building the lambda to deploy it.

@hunterwerlla I have python 2.7 installed, but I still see the same error.

Screen Shot 2020-08-11 at 4 26 02 PM

It is based on the languages installed into the IDE. I do not think Python plugin can be installed to RubyMine, but JavaScript can.

Ideally yes, we need to filter than runtime selector combo box

I'm going to reopen this as an issue to track the UI issue.

Installed Nodejs, (both in the IDE and in the system)
Chose NodeJs 10.x
Created an index.js with the example given in aws - https://docs.aws.amazon.com/lambda/latest/dg/nodejs-handler.html
Now when I try to create the lambda, I see the below error.

Screen Shot 2020-08-11 at 4 55 57 PM

@Kavin-Kannan The handler format can be confusing, in that case it would be index.lambda_handler. If you have any further issues, please file them separately.

Was this page helpful?
0 / 5 - 0 ratings