Skip to content

L167 of sending-us-feedback.mdx incorrectly advises how to generate an archive of Warp Preview logs for Linux-based OSes. #16

Closed

Description

@0009-0009-1013-986X

Subject area or topic

I do not know.

Page or pages affected

I have attempted to do as docs/blob/c266423cd1ffcc5841a558b5331ce1b3e66c4f50/src/content/docs/support-and-community/troubleshooting-and-support/sending-us-feedback.mdx?plain=1#L167 advises, verbatim.

What is incorrect, outdated, missing, or unclear?

However, it fails, in bash-5.3.0-2.fc43 and pwsh:

**********************
PowerShell transcript start
Start time: 20260501150646
Username: Beedell\RokeJulianLockhart
RunAs User: Beedell\RokeJulianLockhart
Configuration Name: 
Machine: Beedell (Unix 6.19.14.200)
Host Application: /home/RokeJulianLockhart/.dotnet/tools/.store/powershell/7.5.4/powershell/7.5.4/tools/net9.0/any/unix/pwsh.dll
Process ID: 53560
PSVersion: 7.5.4
PSEdition: Core
GitCommitId: 7.5.4
OS: Fedora Linux 43 (KDE Plasma Desktop Edition)
Platform: Unix
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1, 6.0, 7.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
WSManStackVersion: 3.0
**********************
Transcript started, output file is /home/RokeJulianLockhart/PowerShell_transcript.Beedell.6rJXhcDx.20260501150646.txt
**********************
Command start time: 20260501150702
**********************
PS /home/RokeJulianLockhart> tar -czf $Home/warp_preview-logs.tar.gz -C $Home/.local/state/warp-terminal-preview warp_preview.log*
/usr/bin/tar: warp_preview.log*: Cannot stat: No such file or directory
/usr/bin/tar: warp_preview.log*: Cannot stat: No such file or directory
/usr/bin/tar: Exiting with failure status due to previous errors
/usr/bin/tar: Exiting with failure status due to previous errors

Suggested update

chatgpt.com/s/t_69f51f4814d881918d4eb77f5456bedb appears to accurately explain that the failure is due to shell glob expansion occurring before tar is invoked. Within the original command:

#!/usr/bin/env sh
tar -czf ~/warp_preview-logs.tar.gz -C ~/.local/state/warp-terminal-preview warp_preview.log*

…the pattern “warp_preview.log*” is expanded, by the shell, in one's pwd, rather than in $HOME/.local/state/warp-terminal-preview. If no files, matching that pattern, exist within the current directory, the glob remains unexpanded (depending on shell settings), so tar receives the literal string “warp_preview.log*”. It, then, searches, for that file, inside the -C directory, and fails, with:

Cannot stat: No such file or directory.

-C affects where tar looks for files, but it does not affect how the shell expands globs. To remediate this:

  • cd first, so that the shell correctly expands:

    #!/usr/bin/env sh
    cd $HOME/.local/state/warp-terminal-preview && \
    tar -czf $HOME/warp_preview-logs.tar.gz warp_preview.log*
  • Allow tar to cope with the pattern, internally:

    #!/usr/bin/env sh
    tar -czf $HOME/warp_preview-logs.tar.gz \
    	-C $HOME/.local/state/warp-terminal-preview \
    	--wildcards 'warp_preview.log*'

Activity

  1. added a commit that references this issue on May 7, 2026
    f9fd8fa
  2. dannyneira commented on May 7, 2026

    @dannyneira
    Member

    Thanks for submitting this bug in the suggested command for gathering logs @RokeJulianLockhart. I'll review this issue and the associated fix PR: #36

  3. dannyneira commented on May 8, 2026

    @dannyneira
    Member

    @RokeJulianLockhart the fix was merged, using the 1st cd method wrapped in a parenthesis. Tested working on bash, pwsh, and zsh on Ubuntu Linux.

    # Warp
    (cd ~/.local/state/warp-terminal && tar -czf ~/warp-logs.tar.gz warp.log*)
    
    # Warp Preview
    (cd ~/.local/state/warp-terminal-preview && tar -czf ~/warp_preview-logs.tar.gz warp_preview.log*)
  4. added a commit that references this issue on May 8, 2026
    296a21d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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