Skip to content

Commit 0e6ed75

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 'Cannot stat: No such file or directory' because the shell expands the warp.log* / warp_preview.log* glob in the user's pwd, not in the directory passed to -C. As reported in the issue, this leaves users on Linux unable to follow the logs instructions as written. Switch to GNU tar's own globbing: quote the pattern so the shell leaves it alone, and pass --wildcards so tar expands it inside -C. Linux distros ship GNU tar as 'tar' by default, so this works out of the box on the Linux platform this tab targets. Also normalize the indentation in the Linux :::caution RUST_LOG block to the 4-space indent already used by the macOS and Windows tabs (the Linux block had inconsistent indent on a few lines). Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent d91c1b7 commit 0e6ed75

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

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

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,27 +158,31 @@ 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+
tar -czf ~/warp-logs.tar.gz \
162+
-C ~/.local/state/warp-terminal \
163+
--wildcards 'warp.log*'
162164
```
163165

164166
**Warp Preview logs on Linux**
165167

166168
Run the following to zip the Warp Preview logs to your home directory:
167169

168170
```bash
169-
tar -czf ~/warp_preview-logs.tar.gz -C ~/.local/state/warp-terminal-preview warp_preview.log*
171+
tar -czf ~/warp_preview-logs.tar.gz \
172+
-C ~/.local/state/warp-terminal-preview \
173+
--wildcards 'warp_preview.log*'
170174
```
171175

172176
:::caution
173177
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:
174178

175179
```bash
176-
# Run if Warp on Linux is installed
180+
# Run if Warp on Linux is installed
177181
RUST_LOG=wgpu_core=info,wgpu_hal=info MESA_DEBUG=1 EGL_LOG_LEVEL=debug warp-terminal
178-
182+
179183
# Run if Warp Preview on Linux is installed
180184
RUST_LOG=wgpu_core=info,wgpu_hal=info MESA_DEBUG=1 EGL_LOG_LEVEL=debug warp-terminal-preview
181-
```
185+
```
182186
:::
183187
</TabItem>
184188
</Tabs>

0 commit comments

Comments
 (0)