-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Beets is haunted, reads info from comment lines? #2565
Comments
Hmm; that's odd—this one I can't seem to reproduce.
Based on our experience last time, I also tried removing the newline from the end of the file—still no issue. I'm kind of stumped. Maybe it has something to do with Windows? |
Happens with or without the newline. Note the troublesome character is U+201D and not a normal quote (This first one fails on Powershell as well as normal CMD. I only tested with normal CMD for the others.)
This works:
So, maybe edit 2: Delete Maybe the latest Win10 Creators Update changed my console settings? Maybe not.
Still, because it may be a clue, I'll link to #2456. edit 3: I forgot that in #2456 I made my own patch to Beets and have been using it since today, when I updated from stable to latest Git. I'll check my fix against these latest issues. I'm guessing this issue is a dupe of 2456. |
Okay. Applying my fix from #2456 fixes my issue with the quotes and DEL and everything else. However, could error handling be improved for other unforseeable errors?
|
OK—that sounds like we're dealing with an encoding error. I'm guessing that the YAML parser is somehow giving up entirely when it encounters a character it doesn't understand. I'm still at a loss to explain why that leads to the configuration error you're seeing—it seems to throw off the whole configuration system, rather than just exiting with a parse error. It's hard to narrow down what's wrong without a way to reproduce the problem. |
Problem
A lot is going on here. May be many bugs combining? Some thoughts:
#
which is unintuitiveRunning this command in verbose (
-vv
) mode:Setup
My configuration (output of
beet config
) is:Causes issue:
Works fine:
The text was updated successfully, but these errors were encountered: