Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal error when a file is not accessible by the user #4576

Open
Grillo-0 opened this issue Oct 3, 2024 · 1 comment
Open

Internal error when a file is not accessible by the user #4576

Grillo-0 opened this issue Oct 3, 2024 · 1 comment
Labels
🐛bug Something isn't working

Comments

@Grillo-0
Copy link
Collaborator

Grillo-0 commented Oct 3, 2024

Description

Steps to Reproduce the Problem

  1. mkdir test && cd test
  2. jj git init
  3. echo aaaaa | sudo tee foo > /dev/null
  4. sudo chmod go-rwx foo
  5. sudo touch foo
  6. jj

Expected Behavior

Run default command

Actual Behavior

Hint: Use `jj -h` for a list of available commands.
Run `jj config set --user ui.default-command log` to disable this message.
Internal error: Failed to snapshot the working copy
Caused by:
1: Failed to open file /tmp/test/foo
2: Permission denied (os error 13)

Specifications

  • Platform: Linux
  • Version: acdc42f ("doc: add comment to explain the syntax of folded examples")
@PhilipMetzger PhilipMetzger added the 🐛bug Something isn't working label Oct 3, 2024
@yuja
Copy link
Collaborator

yuja commented Oct 4, 2024

Perhaps, the expected behavior is a better error message with a hint for --ignore-working-copy. If we add snapshot warning, permission errors might be turned into warning, but I'm not sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants