Fly crashes during interaction on word delete

Open
#2,882 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
go
Domain
cli

Research direction

Start by reproducing the crash in the fly apps create interactive app-name prompt on macOS with Option-Backspace, then trace the terminal escape-sequence handling that reports ['\x1b' '\x7f']. Done means the shortcut deletes the previous word or, at minimum, the interaction no longer crashes.

Written by the indexing model from the issue text.

Description

bug

Describe the bug
While typing a name for my new app, I made a typo, and (via muscle memory) hit option-backspace to delete the last word I had typed an try again. flyctl crashed with the error message Error: unexpected escape sequence from terminal: ['\x1b' '\x7f'].

  • macOS Ventura 13.6
  • fly v0.1.104 darwin/arm64 Commit: 682c341cb1b8fc0bc80589fd96d7cad34f1772f0 BuildDate: 2023-09-29T15:46:28Z

** Paste your fly.toml

none

** Command output: **

❯ fly apps create
? Choose an app name (leave blank to generate one): myapyError: unexpected escape sequence from terminal: ['\x1b' '\x7f']`

** Expected result: **

Delete one (1) word. Alternatively, please at least don't crash, I might have made a bunch of choices already!

Dominant language
Go
Stars
1.7k
Forks
311
Avg merge
12h 50m
Merged PRs (30d)
78

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from superfly/flyctl

All issues in superfly/flyctl

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.