Skip to content

Cmd-v pasting any text causes panic crash #335

@sixhobbits

Description

@sixhobbits

Expected Behavior

When I press cmd-v while running cmd it should paste my clipboard contents into the prompt for Command Code

Actual Behavior

I'm running cmd inside a Lima VM on MacOS using iTerm2, so I picked Linux

Every time I press cmd-v, even with just a single character in my clipboard, Command Code hard crashes. Here's what I see with export RUST_BACKTRACE=full

thread '<unnamed>' panicked at src/lib.rs:72:37:
called `Result::unwrap()` on an `Err` value: DisplayParsingError(DisplayNotSet)
stack backtrace:
   0:     0xe02061ccbb60 - <unknown>
   1:     0xe02061b9ebd8 - <unknown>
   2:     0xe02061ca5c10 - <unknown>
   3:     0xe02061ccd310 - <unknown>
   4:     0xe02061cccb18 - <unknown>
   5:     0xe02061ccdbb0 - <unknown>
   6:     0xe02061ccd614 - <unknown>
   7:     0xe02061ccd57c - <unknown>
   8:     0xe02061ccd574 - <unknown>
   9:     0xe02061b72940 - <unknown>
  10:     0xe02061b72c80 - <unknown>
  11:     0xe02061bc6524 - <unknown>
  12:           0x804cc0 - _ZN6v8impl12_GLOBAL__N_123FunctionCallbackWrapper6InvokeERKN2v820FunctionCallbackInfoINS2_5ValueEEE
  13:          0x1818918 - Builtins_CallApiCallbackGeneric
fatal runtime error: failed to initiate panic, error 333249776
Aborted (core dumped)

Or without

thread '<unnamed>' panicked at src/lib.rs:72:37:
called `Result::unwrap()` on an `Err` value: DisplayParsingError(DisplayNotSet)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 811332096
Aborted (core dumped)

Command Code Version

0.25.2

Operating System

Linux

Terminal/IDE

iTerm2

Shell

bash

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions