warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
21.29k stars 371 forks source link

Can not ls on ~/Downloads after update #2051

Closed thearyanahmed closed 4 months ago

thearyanahmed commented 1 year ago

Discord username (optional)

No response

Describe the bug

After updating to the latest (as of today : v0.2022.11.01.08.03.stable_00) I can't use ls on ~/Downloads directory. Though I can use ls on other directories.

Did a restart but it is still there. I can do the same operation with other terminals.

To Reproduce

Expected behaviour

List files in the directory

Screenshots

image

Operating System

MacOS

OS Version

12.6 (21G115) (apple m1)

Shell Version

zsh 5.8.1 (x86_64-apple-darwin21.0)

Warp Version

v0.2022.11.01.08.03.stable_00

Additional context

No response

Does this block you from using Warp daily?

Yes

Warp Internal (ignore): linear-label:b8107fdf-ba31-488d-b103-d271c89cac3e

No response

dannyneira commented 1 year ago

Hi @thearyanahmed Sorry to hear about this. I can't quite reproduce this, but I just want to make sure. Run which ls just to confirm you're not using some alias for that command. I've noticed ls fail with double-dash flags in the alias like ls --color=auto

thearyanahmed commented 1 year ago

Right now, which ls returns /bin/ls. After creating this issue, I had to reboot my mac for some other reason. And it was fixed. I had to change nothing. But, right now, I just did an update (current version: v0.2022.11.08.08.07.stable_02) and here I am with the same issue again.

image

But before this update, operation was permitted.

dannyneira commented 1 year ago

@thearyanahmed we have another version released, are you still seeing the same issue with ls?

thearyanahmed commented 1 year ago

The problem is persistent. Last checked on version v0.2022.11.29.08.03.stable_06

fc7 commented 1 year ago

I am also having this issue with v0.2022.12.06.08.03.stable_02

fc7 commented 1 year ago

This is easy to fix manually however: under macOS Preferences -> Security & Privacy -> Files and Folders, for the application Warp, simply tick the checkboxes for Downloads and Desktop, as they are unchecked by default. After reloading Warp, you'll be able to access them. But I agree that this should be set during installation, as is the case e.g. with iTerm2.

juli4nb4dillo commented 1 year ago

@fc7 Solution worked for me, somehow if you miss the permissions prompt you'll have errors every time you ls a new folder. image

Christophe1997 commented 6 months ago

After upgrade My macOS version to 14.4 (23E214), the issue occurs with v0.2024.04.09.08.01.stable_01. BUT it's ok with my iterm2

jcrapet commented 4 months ago

You probably should add Warp on System Settings > Privacy & Security > Full Disk access

Screenshot 2024-06-05 at 14 11 42
thearyanahmed commented 4 months ago

Seems like there is a way around now. Not using it anymore myself. For others who are, see the comments above