Warp icon indicating copy to clipboard operation
Warp copied to clipboard

Launch configuration issue

Open beyerss opened this issue 2 years ago • 4 comments

Discord username (optional)

No response

Describe the bug

I have created a launch configuration but when I open launch configuration palette I just see "No matching launch configurations"

To Reproduce

  1. Setup a launch configuration (I just used the command palette to "Save New Launch Configuration"
  2. Restart warp
  3. open the launch configuration palette

Expected behaviour

I would see the available configurations

Screenshots

Results from the launch configuration palette: Screenshot 2022-12-02 at 12 15 57 PM

The configuration is in the proper directory: Screenshot 2022-12-02 at 12 16 26 PM

Configuration: Screenshot 2022-12-02 at 12 17 14 PM

Operating System

MacOS

OS Version

13.0.1

Shell Version

zsh 5.8.1

Warp Version

v0.2022.11.29.08.03.stable_01

Additional context

No response

Does this block you from using Warp daily?

No

Warp Internal (ignore): linear-label:b8107fdf-ba31-488d-b103-d271c89cac3e

None

beyerss avatar Dec 02 '22 18:12 beyerss

Hi @beyerss Sorry about this, can you try with the first two commands in double quotes? I'm curious if the . in the commands is preventing the launch config from showing up.

CleanShot 2022-12-02 at 11 23 32

dannyneira avatar Dec 02 '22 18:12 dannyneira

@beyerss Any luck with the above? Can we close this issue out or does the issue persist with the parenthesis?

dannyneira avatar Jun 26 '23 17:06 dannyneira

Running into this same issue. For me, it seems like adding commands is causing the issue. If I create a launch config without commands it shows in the palette. I tried your suggestion, @dannyneira, and wrapped my commands (the ones with . and the ones without) in parenthesis with no luck 😞

natew8 avatar Aug 09 '23 22:08 natew8

Second. This isn't working for me on mac

villagab4 avatar Oct 20 '24 17:10 villagab4

Third. This isn't working for me either. I was trying out this feature for the first time.

shadowrider17 avatar Nov 29 '24 08:11 shadowrider17

it works if you use quotes like @dannyneira said

felixsanz avatar Dec 03 '24 14:12 felixsanz

I'm having the same issue. Trying with exec: "..." and just quotes: "ssh ..." doesn't work As soon as I make ANY modification to the file that is exported with File > Launch Configurations > Save New, then the menu item disappears. Whenever I use the quotes yamllint complains that The line is too long:

19:81 error line too long (81 > 80 characters) (line-length) 23:81 error line too long (81 > 80 characters) (line-length)

~/.warp/launch_configurations/META.yaml

# Warp Launch Configuration

---
name: META
windows:
  - tabs:
      - title: META
        layout:
          split_direction: horizontal
          panes:
            cwd: /PATH_TO_PROJECT
            commands:
              - ssh -o 'IdentitiesOnly=yes' -i ~/.ssh/KEY.pem SSH_USER@XXXX
              - sudo docker ps
            split_direction: vertical
            panes:
              - cwd: /PATH_TO_PROJECT
              - commands:
                  - ssh -o 'IdentitiesOnly=yes' -i ~/.ssh/KEY.pem SSH_USER@XXXX
                  - htop
              - cwd: /PATH_TO_PROJECT
              - commands:
                  - ssh -o 'IdentitiesOnly=yes' -i ~/.ssh/KEY.pem SSH_USER@XXXX
                  - tail -f logs/output.log
        color: blue

TLMondo avatar Dec 16 '24 22:12 TLMondo

@TLMondo There are a few potential issues with your yaml file. You may need to use double quotes for commands with special characters. The commands section needs to use the exec: prefix for each command and the indentation of your panes structure is incorrect. Note that commands in separate lines are chained together with && when run, as such commands run after ssh commands may not execute. Try this code:

# Warp Launch Configuration

---
name: META
windows:
  - tabs:
      - title: META
        layout:
          split_direction: horizontal
          panes:
            - cwd: /PATH_TO_PROJECT
              commands:
                - exec: ssh -o 'IdentitiesOnly=yes' -i ~/.ssh/KEY.pem SSH_USER@XXXX
                - exec: sudo docker ps
            - split_direction: vertical
              panes:
                - cwd: /PATH_TO_PROJECT
                  commands:
                    - exec: ssh -o 'IdentitiesOnly=yes' -i ~/.ssh/KEY.pem SSH_USER@XXXX
                    - exec: htop
                - cwd: /PATH_TO_PROJECT
                  commands:
                    - exec: ssh -o 'IdentitiesOnly=yes' -i ~/.ssh/KEY.pem SSH_USER@XXXX
                    - exec: tail -f logs/output.log
        color: blue

For anyone else with issues, if you're unsure of the Launch Configuration yaml syntax, refer to the examples in our docs and/or "Ask kapa ai" in our docs, this should help correct your syntax. https://docs.warp.dev/features/sessions/launch-configurations

dannyneira avatar Mar 27 '25 20:03 dannyneira

@dannyneira thanks so much. This did the trick. I guess I never realized yaml was space sensitive.

TLMondo avatar Apr 01 '25 08:04 TLMondo

@beyerss was my earlier comment helpful? have you been able to use the launch configuration with some syntax fixes? if not please post the code here.

dannyneira avatar Apr 01 '25 14:04 dannyneira