aws-toolkit-jetbrains icon indicating copy to clipboard operation
aws-toolkit-jetbrains copied to clipboard

Support for using Windows Subsystem Linux (WSL) SAM executable

Open georgematthew opened this issue 4 years ago • 17 comments

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

georgematthew avatar Jul 02 '20 16:07 georgematthew

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 avatar Jul 02 '20 17:07 abrooksv

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.

abrooksv avatar Jul 02 '20 17:07 abrooksv

I'm waiting for the fix.

yunghoy avatar Jul 30 '20 03:07 yunghoy

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

levyndot avatar Sep 22 '20 12:09 levyndot

+1 I would love to see this get fixed.

cameronwlewis avatar Dec 17 '20 01:12 cameronwlewis

Any news on this?

piersgill312 avatar Jun 02 '21 10:06 piersgill312

+1 Please fix!

cameronwlewis avatar Jun 07 '21 20:06 cameronwlewis

+1

jadam1212 avatar Sep 23 '21 20:09 jadam1212

+1

tgechev avatar Nov 08 '21 09:11 tgechev

+1

RobertCoop avatar Nov 23 '21 17:11 RobertCoop

+1

ggritzan avatar Jan 27 '22 08:01 ggritzan

+1

BrazilianJoe avatar Feb 18 '22 16:02 BrazilianJoe

+1

dean-nls avatar Mar 11 '22 11:03 dean-nls

+1

visomi-dev avatar May 11 '22 19:05 visomi-dev

+1

amarquez-tef avatar Jun 13 '22 11:06 amarquez-tef

+1

aka-somix avatar Jun 15 '22 20:06 aka-somix

this also pain my arse. any plan for fix?

juicycool92 avatar Sep 13 '22 01:09 juicycool92

Hi everybody, I have same issue. index

Vidanilo10 avatar Jan 17 '23 23:01 Vidanilo10

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

MikeV2000 avatar Mar 13 '23 14:03 MikeV2000

Encountered the same problem. Need a fix. image

Vajiya avatar Mar 14 '23 12:03 Vajiya

+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

conan avatar Mar 14 '23 14:03 conan

+1

Juliaandavid avatar Apr 03 '23 00:04 Juliaandavid

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

longd3 avatar May 10 '23 14:05 longd3

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?

justinmaurerdotdev avatar Jul 15 '23 22:07 justinmaurerdotdev

Facing the same problem here +1

AgusCastro avatar Aug 05 '23 04:08 AgusCastro