-
Notifications
You must be signed in to change notification settings - Fork 121
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
Revert clipboard to use json #582
Conversation
#485 still works after this change, FYI |
Saw this error just now:
|
@kendonB Could you please specify more closely when does the error occur and contents of |
I see it upon startup and I don't see |
Oh, (facepalm), I forgot that everyone will still have clipboard.toml in their settings.toml. If you change |
Shouldn't the PR try to do that itself? |
It does with settings.py, however it cannot touch your already generated user settings. It would be possible to create new constant in settings.py for this, but the old one would still hang in users' files, so I did not (it is the same as with moving to toml before) |
Although after some thought I can see its merit in reducing users' disturbance. What do you think? |
I think it's fine to change the path in |
@kendonB Do you mean like adding this specific check (probably in the |
I was thinking it would be in |
@kendonB Sorry for the delay. Is the migrate commit what you had in mind? It is ugly and duplicates I/O (because of impirting order; utilities have to be refactored), but I am hoping we will be able to remove it before merging into master. |
shouldn't it also remove the |
I am no longer seeing the error though |
@kendonB Sorry, yes, thanks, added. Note though that if you already have the path changed from trying this PR, it will not be touched. |
I updated this PR locally, changed my clipboard path back to the toml in settings, and now see the old clipboard file disappear. Great! I'm going to merge this. |
This error keeps popping back up. Looks like it's trying to read clipboard.json as Toml file.
|
@LexiconCode Can happen now if developers switch branches with and without this (and the opposite, if you remake toml clipboard on an old branch). I think for users it should be safe. |
That makes total sense. |
@comodoro should we keep using json for clipboard? Caster/castervoice/lib/settings.py Line 440 in 5aecbf0
|
Finally resolve #357 the least inventive way. Reasons in the issue, unable to fix toml. By the way if more exotic languages where Unicode is needed for dictation are supported, this will become an issue again with aliases, macros etc.