Noovolari / leapp

Leapp is the DevTool to access your cloud
https://www.leapp.cloud/
Mozilla Public License 2.0
1.62k stars 147 forks source link

SSM Session Connection stopped to work after update to Version 0.24.1 that enable Warp terminal #519

Open Qbandev opened 10 months ago

Qbandev commented 10 months ago

Describe the bug SSM Session Connection stopped to work after update to Version 0.24.1

Leapp Version Version 0.24.1

To Reproduce Update to Version 0.24.1

  1. Go to 'Options --> General --> MacOS Terminal'
  2. Choose 'Warp' and save
  3. Login into your integration
  4. Go to 'View SSM Sessions' and Click on 'Connect'
  5. See error
    Command failed: /usr bin/osascript -e 'if application "Warp" is running then tell application "Warp" set newWindow to (create window with default profile) tell current session of newWindow write text "source
    /Users/xxxx/Leapp/ssm-env" delay 3.5
    write text "clear" delay 2.5 write text "aws ssm start-session --region --target xxxxx
    && unset
    AWS_SESSION_TOKEN && unset
    AWS_SECRET_ACCESS_KEY && unset
    AWS_ACCESS_KEY ID" end tell end tell else tell application "Warp" reopen delay 1 tell current session of current window write text
    "aws ssm start-session --region target xxxx
    && unset
    AWS_ SESSION_TOKEN && unset
    AWS_SECRET_ACCESS_KEY && unset
    AWS_ACCESS_KEY_ID" end tell end tell end if'
    132:138: syntax error: Expected", but found class name. (-2741)
  6. If I choose another MacOS Terminal still do not work
  7. If I revert to version 0.24.0 that worked before I get the same error.

Expected behavior SSM Session Connected as version 0.24.0 but in Warp terminal

Screenshots image

Desktop (please complete the following information):

Additional context It seems related to the #510 in these lines.

andreacavagna01 commented 10 months ago

@blyzer, I cannot reproduce this issue. Can you confirm that is working for you in 0.24.1?

Qbandev commented 10 months ago

I'm used a MacBook Pro with chip Apple M1 Pro and failed with Leapp-0.24.1-arm64.dmg installed.

andreacavagna01 commented 10 months ago

Thanks for the feedback! I have the same MacBook and it works as expected. Still need to be able to reproduce the issue!

lincetto commented 8 months ago

Hi, I've the same exact issue, I'm not able to use Warp terminal. I get the same error of the screenshot on the first submission. I'm using MBPRO with M2 Pro chip.

OS: macOS Sonoma OS Version 14.2.1 Leapp Version 0.25.0

image

dlm6693 commented 6 months ago

I just downloaded leapp for the first time and set it to use Warp which is my preferred Terminal emulator. Seeing this exact same error.

moemoeq commented 2 months ago

i got same error. when i tried find what line makes error and this line seems suspicious. set newWindow to (create window with default profile) but i don't any about apple script..

Pasted_Image_2024-09-11__7_34 PM