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.04homeuser.localbinsam"
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
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
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.
I'm waiting for the fix.
Any news on this issues ? Sam behaviour on windows 10. In Intellij AWS Toolkit settings, it's ok. But when create a Run configuration :

IntelliJ 2020.2.2
AWS Toolkit : 1.18-202
+1
I would love to see this get fixed.
Most helpful comment
+1
I would love to see this get fixed.