Skip to content

Commit f9fd8fa

Browse files
hongyi-chenoz-agent
andcommitted
fix(docs): make Linux tar log-collection commands actually work
Closes #16. The Linux tar commands in 'Gathering Warp Logs' fail with 'tar: warp.log*: Cannot stat: No such file or directory' on Linux: bash leaves the unmatched literal 'warp.log*' as the file argument to tar, and tar then looks for a literal file named 'warp.log*' inside the -C directory. Switch to 'cd into the directory first, then tar' so the shell expands the glob in the right pwd. Wrap the cd+tar in subshell parens so the user's pwd is preserved after the command finishes (the cd only affects the subshell). Verified with GNU tar 1.35 + bash: - OLD command reproduces the reporter's failure (exit=2, 'Cannot stat: No such file or directory'). - NEW command exits 0 and archives warp.log, warp.log.1, warp.log.2. - Caller's pwd is unchanged after the subshell exits. (Earlier draft of this fix used GNU tar's --wildcards flag, but --wildcards only enables glob matching during EXTRACTION/listing; in creation mode tar still treats arguments as literal paths. Reverted to the cd-then-tar approach the issue reporter suggested.) Also normalize the indentation in the Linux :::caution RUST_LOG block to the 4-space indent already used by the macOS and Windows tabs. Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent d91c1b7 commit f9fd8fa

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/content/docs/support-and-community/troubleshooting-and-support/sending-us-feedback.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,27 +158,27 @@ Warp's logs and crash reports _**do not**_ contain any console input or output.
158158
Run the following to zip the Warp logs to your home directory:
159159

160160
```bash
161-
tar -czf ~/warp-logs.tar.gz -C ~/.local/state/warp-terminal warp.log*
161+
(cd ~/.local/state/warp-terminal && tar -czf ~/warp-logs.tar.gz warp.log*)
162162
```
163163

164164
**Warp Preview logs on Linux**
165165

166166
Run the following to zip the Warp Preview logs to your home directory:
167167

168168
```bash
169-
tar -czf ~/warp_preview-logs.tar.gz -C ~/.local/state/warp-terminal-preview warp_preview.log*
169+
(cd ~/.local/state/warp-terminal-preview && tar -czf ~/warp_preview-logs.tar.gz warp_preview.log*)
170170
```
171171

172172
:::caution
173173
If your issue is graphical (e.g. no display of windows) or a crash, please run Warp with the following command to capture more log information:
174174

175175
```bash
176-
# Run if Warp on Linux is installed
176+
# Run if Warp on Linux is installed
177177
RUST_LOG=wgpu_core=info,wgpu_hal=info MESA_DEBUG=1 EGL_LOG_LEVEL=debug warp-terminal
178-
178+
179179
# Run if Warp Preview on Linux is installed
180180
RUST_LOG=wgpu_core=info,wgpu_hal=info MESA_DEBUG=1 EGL_LOG_LEVEL=debug warp-terminal-preview
181-
```
181+
```
182182
:::
183183
</TabItem>
184184
</Tabs>

0 commit comments

Comments
 (0)