Description
I was working on a repository and somehow it got conflicted. I tried to resolve it with jj resolve and it errored.
Steps to Reproduce the Problem
- Unclear how to get the repository into this state
- Run
jj resolve
Expected Behavior
It should resolve
Actual Behavior
$ jj resolve
Hint: Using default editor ':builtin'; run `jj config set --user ui.merge-editor :builtin` to disable this message.
Error: Failed to resolve conflicts
Caused by:
1: Failed to decode UTF-8 text for item conflicting hunk (this should not happen)
2: invalid utf-8 sequence of 1 bytes from index 3131
$Specifications
- Platform: mac
- Version: jj 0.46.0
Activity
4The issue appears to be that .DS_Store was conflicted (which I didn't notice) and I tried to do jj resolve to see what was conflicted.
Removing the file is enough to fix the conflict (and the file shouldn't have been added in the first place -- my fault), but seeing "this should not happen" seems like not a very good thing.
I tried to do
jj resolveto see what was conflicted
Note that you can do jj resolve --list to see the paths of the conflicted files. I guess this error occurred because the built-in diff editor (scm-record) tried to open .DS_Store, but just listing the conflicted paths should have worked.
Thanks for the tip, I should probably have done that instead. I think I was more caught off guard by the "this should not happen" message, which I see you're addressing.
I don't think the logs are very interesting, but here you go anyway: