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
753 stars 217 forks source link

invalid sam executable - SAM CLI, version 0.39.0 #1593

Open asyba opened 4 years ago

asyba commented 4 years ago

Describe the bug Update to latest EAP version and got this error everywhere.

Screenshots

image

Your Environment

hunterwerlla commented 4 years ago

The error indicates that it longer than 5 seconds to run

sam --version

Do you happen to have any kind of virus/file scanning software running on your machine? Can you run a

time sam --version

from a terminal?

asyba commented 4 years ago

Upgrading to sam cli stable 0.44.0, it fixed. You should update the documentation to required a newer version.

asyba commented 4 years ago

time sam --version SAM CLI, version 0.44.0 sam --version 0,44s user 0,03s system 99% cpu 0,469 total

hunterwerlla commented 4 years ago

Our minimum is currently

0.38.0

(see here)

We will need to investigate why it is not working

Naturious commented 4 years ago

Same problem happening on Windows, and with Pycharm sam --version returns SAM CLI, version 0.46.2 I can build and invoke my lambda functions from the terminal inside PyCharm, just not from the Run interface. Updated awscli, samcli, nothing happened. I suspect the problem started happening when I changed the Python venv to python3.7, but I can't see how those things relate image

abrooksv commented 4 years ago

The next version (1.12) of the toolkit has improvements to the SAM executable handling.

You can try our EAP builds to see if it fixes the issue for you

Naturious commented 4 years ago

Updated to 1.12 EAP, still having the same issue.

Naturious commented 4 years ago

Fixed the issue by running where sam in the terminal and switching the executable, not sure why I have two though image