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

Runtime is not filtered based on what the IDE supports/create function shows up even when there are no runtimes we can build for #1980

Closed
Kavin-Kannan opened this issue Aug 11, 2020 · 8 comments
Labels
bug We can reproduce the issue and confirmed it is a bug.

Comments

@Kavin-Kannan
Copy link

Kavin-Kannan commented Aug 11, 2020

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<language_name> 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

@Kavin-Kannan Kavin-Kannan added the bug We can reproduce the issue and confirmed it is a bug. label Aug 11, 2020
@hunterwerlla
Copy link
Contributor

@Kavin-Kannan We currently do not support Ruby (issue here: #682). Can you take a screenshot of the java one?

@Kavin-Kannan
Copy link
Author

Kavin-Kannan commented Aug 11, 2020

@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

@hunterwerlla
Copy link
Contributor

@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.

@Kavin-Kannan
Copy link
Author

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

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

@abrooksv
Copy link
Contributor

abrooksv commented Aug 11, 2020

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

@hunterwerlla
Copy link
Contributor

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

@hunterwerlla hunterwerlla reopened this Aug 11, 2020
@Kavin-Kannan
Copy link
Author

Kavin-Kannan commented Aug 11, 2020

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

@hunterwerlla hunterwerlla changed the title Runtime not supported Runtime is not filtered based on what the IDE supports/create function shows up even when there are no runtimes we can build for Aug 11, 2020
@hunterwerlla
Copy link
Contributor

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug We can reproduce the issue and confirmed it is a bug.
Projects
None yet
Development

No branches or pull requests

3 participants