aws / aws-toolkit-jetbrains

AWS Toolkit for JetBrains - a plugin for interacting with AWS from JetBrains IDEs
https://plugins.jetbrains.com/plugin/11349-aws-toolkit
Apache License 2.0
767 stars 224 forks source link

Support for using Windows Subsystem Linux (WSL) SAM executable #1893

Open georgematthew opened 4 years ago

georgematthew commented 4 years ago

Is your feature request related to a problem? Please describe. PyCharm now supports using a WSL Python interpreter and WSL terminal. To complete the WSL development experience, I attempted to set the AWS Toolkit to use the SAM CLI executable from WSL under Settings -> Tools -> AWS -> SAM CLI executable: \\wsl$\Ubuntu-20.04\home\user\.local\bin\sam However, I am not able to save this configuration with the error: "Cannot Save Settings: Invalid sam executable: \wsl$\Ubuntu-20.04\home\user.local\bin\sam"

Describe the solution you'd like Support for using the SAM CLI executable in WSL for building, invoking locally, etc.

Describe alternatives you've considered The AWS Toolkit for VS Code in combination with Visual Studio Code Remote - WSL allows for using a SAM CLI executable in the remote development environment. I find the debugging tools and local Lambda invocation functionality to be much more mature in the AWS Toolkit for JetBrains and would prefer to use PyCharm over VS Code.

Additional context

abrooksv commented 4 years ago

Hmm.. sounds like the command line abstraction we use from the IntelliJ SDK does not handle WSL out of the box. Will need to be researched

abrooksv commented 4 years ago

Looks like we would need to enhance our ExecutableManager to be WSL aware and call https://github.com/JetBrains/intellij-community/blob/193/platform/platform-impl/src/com/intellij/execution/wsl/WSLDistribution.java#L179 to patch the CommandLine after we produce it.

yunghoy commented 4 years ago

I'm waiting for the fix.

levyndot commented 4 years ago

Any news on this issues ? Sam behaviour on windows 10. In Intellij AWS Toolkit settings, it's ok. But when create a Run configuration : image IntelliJ 2020.2.2 AWS Toolkit : 1.18-202

cameronwlewis commented 3 years ago

+1 I would love to see this get fixed.

piersgill312 commented 3 years ago

Any news on this?

cameronwlewis commented 3 years ago

+1 Please fix!

jadam1212 commented 3 years ago

+1

tgechev commented 3 years ago

+1

RobertCoop commented 3 years ago

+1

ggritzan commented 2 years ago

+1

BrazilianJoe commented 2 years ago

+1

dean-nls commented 2 years ago

+1

visomi-dev commented 2 years ago

+1

amarquez-tef commented 2 years ago

+1

aka-somix commented 2 years ago

+1

juicycool92 commented 2 years ago

this also pain my arse. any plan for fix?

Vidanilo10 commented 1 year ago

Hi everybody, I have same issue. index

MikeV2000 commented 1 year ago

Just encountered this problem, would love to see a fix!

Vajiya commented 1 year ago

Encountered the same problem. Need a fix.

image
conan commented 1 year ago

+1

I didn't have any path in the SAM executable setting when running AWS Toolkit in Intellij from WSL, and the file people seem to be using here doesn't exist. Would love to be able to use this tool

Juliaandavid commented 1 year ago

+1

longd3 commented 1 year ago

It's unbelievable how this issue is left out in the cold. I, among many growing users that uses WSL on Windows. pray you AWS cool lads fix this asap

image

justinmaurerdotdev commented 1 year ago

3 years on and this hasn't even been assigned. Can we get a progress update or an explanation of why this has been ignored/abandoned?

AgusCastro commented 1 year ago

Facing the same problem here +1

xfresh-aiRx commented 2 days ago

Still a problem, would be great to see a fix soon +1